Scenario:
I am developing an application using Telerik RadControls for ASPX.NET AJAX. I have tree
different Rad controls in the main page. A RadTreeview, a RadTabStrip and a RadGrid.
The basic functionality is: I select a node from the Treeview, that builds dynamic questions sourced from a database) in the RadTabStrip. And the answer to those questions is given by
selection an option in the single column RadGrid.
My questions are:
1. How can I set a default selection in the RadGrid?
2. When a node is selected the RadTabStrip is rebuilt but the page always blinks. How can I
avoid that blinking from the whole page running some server side code like the example here: http://demos.telerik.com/aspnet-classic/treeview/Examples/Programming/ServerSideApi/DefaultCS.aspx?
3. After a node selection and rebuilding the tabstrip pages, the RadTreeView loses the selected node focus. How can I keep the focus on the previously selected node? (it has something to do with that blink, can it be from the PostBack of the page?)
4. How can I load the grid having for each row a value and a text (value is an id related to the text element)?
Thank you all.
Regards
Bruno

<
telerik:RadSpell ID="spVenue" runat="server" ButtonText="Spell Check" ControlToCheck="txtVenueName"
AjaxUrl="~/Telerik.Web.UI.SpellCheckHandler.axd" />
<
httpHandlers>
<
add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
</
httpHandlers>
<
handlers>
<
add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler"/>
</
handlers>

GridButtonColumn myCommandButton = new GridButtonColumn();myCommandButton.ButtonType = GridButtonColumnType.PushButton;myCommandButton.CommandName = "MyCommand";myCommandButton.Text = "MyCommand";myGrid.Columns.Add(myCommandButton);function buildbluemenu(result) { contextMenu.get_items().clear(); var setupmenu = new Telerik.Web.UI.RadMenuItem(); setupmenu.get_groupSettings().set_offsetX(5); setupmenu.set_text("Setup"); setupmenu.set_imageUrl(rootPath + "Images/icons/Setup.gif"); contextMenu.get_items().add(setupmenu); var pointeditormenu = new Telerik.Web.UI.RadMenuItem(); pointeditormenu.get_groupSettings().set_offsetX(5); pointeditormenu.set_text("Point Editor"); setupmenu.get_items().add(pointeditormenu); var trendeditormenu = new Telerik.Web.UI.RadMenuItem(); trendeditormenu.get_groupSettings().set_offsetX(5); trendeditormenu.set_text("Trend Editor"); setupmenu.get_items().add(trendeditormenu); var alarmeditormenu = new Telerik.Web.UI.RadMenuItem(); alarmeditormenu.get_groupSettings().set_offsetX(5); alarmeditormenu.set_text("Alarm Editor"); setupmenu.get_items().add(alarmeditormenu); var runtimemenu = new Telerik.Web.UI.RadMenuItem(); runtimemenu.get_groupSettings().set_offsetX(5); runtimemenu.set_text("Runtime Chart"); runtimemenu.set_imageUrl(rootPath + "Images/icons/Runtime.gif"); contextMenu.get_items().add(runtimemenu); var schedulemenu = new Telerik.Web.UI.RadMenuItem(); schedulemenu.get_groupSettings().set_offsetX(5); schedulemenu.set_text("Schedules"); schedulemenu.set_imageUrl(rootPath + "Images/icons/Schedules.gif"); contextMenu.get_items().add(schedulemenu); var trendmenu = new Telerik.Web.UI.RadMenuItem(); trendmenu.get_groupSettings().set_offsetX(5); trendmenu.set_text("Trends"); trendmenu.get_groupSettings().set_offsetX(5); trendmenu.set_imageUrl(rootPath + "Images/icons/Chart.gif"); contextMenu.get_items().add(trendmenu); var alarmmenu = new Telerik.Web.UI.RadMenuItem(); alarmmenu.get_groupSettings().set_offsetX(5); alarmmenu.set_text("Alarms"); alarmmenu.set_imageUrl(rootPath + "Images/icons/Alarms.gif"); contextMenu.get_items().add(alarmmenu); var notesmenu = new Telerik.Web.UI.RadMenuItem(); notesmenu.get_groupSettings().set_offsetX(5); notesmenu.set_text("Notes"); notesmenu.set_imageUrl(rootPath + "Images/icons/Note.gif"); contextMenu.get_items().add(notesmenu); var commandmenu = new Telerik.Web.UI.RadMenuItem(); commandmenu.get_groupSettings().set_offsetX(5); commandmenu.set_text("Command"); commandmenu.set_imageUrl(rootPath + "Images/icons/Command.gif"); contextMenu.get_items().add(commandmenu); // Command menu if (commandable == true) { commandmenu.enable(); } else { commandmenu.disable(); } // Schedule menu var isSchedule = $(result).find('IsSchedule').text(); if (isSchedule == 1) { schedulemenu.enable(); } else { schedulemenu.disable(); } result = $(result); // Alarmmenu var counter = 0; alarmmenu.disable(); $(result).find('Alarm').each(function() { counter++; }); if (counter > 0) { alarmmenu.enable(); } // Trendmenu counter = 0; trendmenu.disable(); $(result).find('Trend').each(function() { counter++; var trendid = $(this).find('Id').text(); var childItem = new Telerik.Web.UI.RadMenuItem(); childItem.set_text($(this).find('Description').text()); childItem.set_value("TrendId:" + trendid); trendmenu.get_items().insert(i, childItem); }); if (counter > 0) { trendmenu.enable(); } // Done building, display the menu. contextMenu.showAt(x, y);}