Can we change the diaplsy format of data from one kendo component to other on runtime in mvc? - asp.net-mvc-5

I have a page with two buttons in header. I need to display same data on click of both buttons resp. but in different layout, means at click of first button i want to display a kendo asp.net mvc grid and at click of second i want tot display that data in a form of listview. So the question is, is it possible to display the data initially as a grid or listview (any one ) and at runtime we can change the format from grid to listview so that we don't have to create seperate controls partial views for that. Or any better idea on how to implement it is also welcomed.

Related

How to display several photos in another layout by clicking on one layout?

When I'm in layout 5 and I click on a button, I want to make some images visible in layout 4. I also used the general boolean method but it didn't work, do you have a solution?

Filter telemetry data on dashboard from input entered in custom widget textbox - Thingsboard

I have created a custom widget with open textbox and search button in Thingsboard IoT open-source platform. On click of button i want to filter the telemetry rows listed in thermometers widget.
e.g. In attached image, if i enter Thermometer-1A in red highlighted textbox then on click of search button Entity Name highlighted in blue color should be filtered with the input value in Thermometers widget.
Any help would be greatly appreciated.
Thingboard Dashboard custom widget
Intercommunication is only possible between custom widgets. Our standard widgets do not provide an API for communication.
If you only want to filter data in the table widget, the easiest way is to use 'search' button in the top right corner of the table widget.
If the first option does not work for you, you should implement your custom table widget and add an API for intercommunication. For example, Search widget will broadcast some event when a button is pressed. And custom table widget will listen to messages of a specific type and acts accordingly.
Here is a link that describes to messaging works inside AngularJS
https://toddmotto.com/all-about-angulars-emit-broadcast-on-publish-subscribing/

Are there Radio Buttons Group and Dropdownlists in Orchard Dynamic Forms?

I'm developing a form using Orchard Dynamic Forms module. There is no option for a Radio Button Group controls and a dropdownlist to be used on form.
I have used Text fields, single radio buttons successfully.
How to use Radio button groups and dropdownlists in orchard Dynamic Forms?
Yes the Radio button Groups and Dropdownlists are available in Orchard.Dynamic Forms. Such elements are actually treated as Enumerations.
When creating a form, Under Form elements there is an Enumeration element as seen below.
Drag it to your Form , when the Edit Window open up. As seen below, from the Input Type option you can create a dropdown or a radio button list.
If you want to learn more, check the .CSHTML files at location: Orchard.DynamicForms -> Views -> Elements and the code at location:Orchard.DynamicForms -> Elements

Lotus xpages: xpage containing multiple views

I have a xpage which contains one big table with 1 row and 2 columns. I created this table to separate the xpage into 2 parts: the left one where I have some buttons and the right one where I want to display some views.
From the container controls I drag a View on the right column, but is there any chance to do this in such a way that 1st button clicked => 1st view is shown, 2nd button clicked => 2nd view is shown and so on.
Or every xpage should contain one view?
I raise this question considering the fact that in Lotus Notes if you had one frameset with 2 frames, you could easily create an outline in one frame, and some views that will be open by every outline entry in the 2nd frame. What I want to do is quite the same thing.
I appreciate your time. If you think this question isn't 'good' enough, I will just delete it. I'm new in XPages development.
Use simple table with one row and two columns. Place your buttons inside the left cell. Put the switch control (mentioned by Tim) to the right one.
More about the control in extlib demo DB... online demo here
Create separate custom control for each view and drag and drop "Include Page" from container control to the right column of your table and compute the page name instead of selecting an XPage. You can compute like this sessionScope.CCName + ".xsp". And onclick of the button set appropriate custom control(which contains the view) name as the value to the sessionScope variable and reload the page. This will do what you want. I hope this too helps.
You could do this on a single XPage using a xe:navigator control in the left column and an xe:dynamicViewPanel control in the right. These controls are available in the Extension Library if you are running 8.5.3 and natively available in release 9.
The Dynamic View Panel control is the dynamic content control for displaying one of several Domino views. Only the component for the displayed view is loaded in the component tree so it is highly efficient compared to alternative designs (like an xp:viewPanel control in each facet of an xe:switchFacet control as each viewPanel is loaded in the component tree on the server, not just the one that is rendered).
See this online demo http://xpages.jp/demos/xpagesext.nsf/Domino_DynamicView.xsp
put each content on a seperate panel in a custom control.
Have those custom controls in seperate divs and show/hide divs based on button click.
If you are using different xpages, you can use IncludePage(from container controls), which will act like a computed subform.

Clicking the DataGrid row to Open Details Dialog

My project consists of two Dialogs.
The first one contains ado data control and datagrid used for searching a specific record.
The result is displayed in DataGrid
Double clicking the row of the Grid suppose to opens the details Dialog with the record in the row which clicked.
I'm using mfc visual c++6
Any help would be appreciated.
you can use MFC Grid control for grid display and you can catch double click event of grid control.
detail implementation of mfc grid is given in following link.
http://www.codeproject.com/Articles/8/MFC-Grid-control-2-27

Resources