or
<telerik:RadTabStrip ID="tabstrip1" runat="server" SelectedIndex="0" MultiPageID="multipage1" OnClientTabSelected="OnSelected">function OnSelected(sender, args) { var ajaxManager = $find("<%= ajax1.ClientID %>"); ajaxManager.ajaxRequest("test");}<telerik:RadAjaxManager ID="ajax1" runat="server" OnAjaxRequest="ajax1_AjaxRequest"> <AjaxSettings> blablabla code here </AjaxSettings> </telerik:RadAjaxManager>function GridCreated(sender, args) { var scrollArea = sender.GridDataDiv; var masterTable = sender.get_masterTableView(); var itemCount = masterTable.get_dataItems().length; if (itemCount == 0) { scrollArea.style.height = 17 + "px"; }else if (itemCount < 10) { scrollArea.style.height = Math.round((itemCount * 24)) + "px" } }if (RadTabStrip1.FindTabByValue(keyword) == null){
// Create new tab and corresponding pageview and then select it. RadTab SearchTab = new RadTab(String.Format("Search: {0}", keyword), keyword); RadPageView SearchPage = new RadPageView(); SearchPage.ID = keyword; SearchPage.Controls.Add(new Calendar()); SearchTab.PageViewID = SearchPage.ID; RadMultiPage1.PageViews.Add(SearchPage); RadTabStrip1.Tabs.Add(SearchTab); RadTabStrip1.FindTabByValue(keyword).Selected = true; RadMultiPage1.FindPageViewByID(keyword).Selected = true;}else{
// Select the already existing tab RadTabStrip1.FindTabByValue(keyword).Selected = true; RadMultiPage.FindPageViewByID(keyword).Selected = true;}I need to use the DockToggleCommand in order for the user to switch how the user will view the data within the dock. (ie. Grid Format vs. Chart Format). The command button would autopostback and switch views depending ont he State of the toggle button. How do I need to check for the state of the ToggleCommand server side so I can return the correct data format and change the command graphic to an appropriate icon?
The following code gets fired but always returns "Primary".
protected void RadDock_Command(object sender, DockCommandEventArgs e) { if (e.Command.Name == "MyCustomCommand") { RadDock rd = (RadDock)sender;
DockToggleCommand toggleCommand = e.Command as DockToggleCommand;
string strState = toggleCommand.State.ToString(); TextBox1.Text = strState; } }
Microsoft JScript runtime error: Unable to get value of the property 'tHead': object is null or undefinedTelerik.Web.UI.RadTreeList.prototype=..._getTableHeaderRow:function(b){var c=null;if(b.tHead){for(var a=0;a<b.tHead.rows.length;a++){if(b.tHead.rows[a]!=null){if(b.tHead.rows[a].cells[0]!=null){if(b.tHead.rows[a].cells[0].tagName!=null){if(b.tHead.rows[a].cells[0].tagName.toLowerCase()=="th"){c=b.tHead.rows[a];break;}}}}}}return c;},... <telerik:RadTreeList ID="myData" runat="server" DataSourceID="sqlData" DataKeyNames="ID" ParentDataKeyNames="ParentID" AutoGenerateColumns="false" OnDataBound="myData_DataBound"> <Columns>... </Columns> <NoRecordsTemplate> <span>There is no data selected!</span> </NoRecordsTemplate> </telerik:RadTreeList>