I have tabs defined in this manner:
There is an action performed on Tab2 which requires a a webDropdown control to reload the data. How do I accomplish this? I know I can detect a selection changedevent either via Javascript or Server-side. With JAvascript, I can make a call to "tabs.set_SelectedIndex(tab1, true), but that appears to refresh the content in tab1 in a browser refresh sort of way (i.e., it flashes).
How can I simply reload the data associated to a specific control (i.e., an infragistics web drop down control to be exact)???
Thanks
Paul
Hello Pavel,
For the client id you should set ClientIDMode="static". Here is an example:
<ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px" ClientIDMode="Static">
</ig:WebDropDown>
The script should be executed from the page where WebTab resides.
Best regards,Martin PavlovInfragistics, Inc.
Finally getting to this....I suppose the only way to know the client id is to run the application, and inspect the object through Chrome (or Firefox), and then place the client ID statically in your statement above. I also think this javascript snippet is called on the same page where I define the webtab, right?
I didn't get a chance to apply the solution yet. I will be working on this during the evening hours today.
Let me know if you have further questions regarding this subject.
In JavaScript you can find a control in a tab which uses ContentUrl using the following code:
var drop_down = ig_controls.ApplicationMainTab.get_tabs()[0].get_iframe().contentWindow.$find("WebDropDown1");
Where "WebDropDown1" is the client id of the WebDropDown and 0 is the index of the tab.
From here you can re-bind the WebDropDown using its client-side data binding as demonstrated in "Using client binding to bind to hierarchical JSON" sample, but you'll need some service to get the data from as JSON.
You can also refer to the following forum post for more information: https://ko.infragistics.com/community/forums/f/ultimate-ui-for-asp-net/86636/webdropdown-web-service-client-side
Hope this helps,Martin PavlovInfragistics, Inc.