<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="massEditGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="massEditGrid"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
<ClientEvents OnRequestStart="showHourGlass" OnResponseEnd="hideHourGlass" />
</telerik:RadAjaxManager>
I am testing the trial version of Telerik controls and need to assess how it will handle a very specific situation. I am using a close derivative of the load on demand sample. The key differences are that each pageview uses the same control and I also have a public property that I set to control the pageview. The problem I am facing is that nothing displays onload or when I change tabs. Below is the code that is used on the tab page. Below I will mark the lines that are different from the Load on Demand Sample. Does anybody have an idea as to what I am doing wrong?
<telerik:RadAjaxLoadingPanel runat="server" ID="LoadingPanel1"> </telerik:RadAjaxLoadingPanel> <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadTabStrip1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadTabStrip1" /> <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="RadMultiPage1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadMultiPage1"
LoadingPanelID="LoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <script type="text/javascript"> function onTabSelecting(sender, args) { if (args.get_tab().get_pageViewID()) { args.get_tab().set_postBack(false); } } </script> <div style="float:left;"> <telerik:RadTabStrip OnClientTabSelecting="onTabSelecting" ID="RadTabStrip1" SelectedIndex="0" CssClass="tabStrip" runat="server" MultiPageID="RadMultiPage1" Skin="Sitefinity" OnTabClick="RadTabStrip1_TabClick" Orientation="VerticalLeft"> </telerik:RadTabStrip> </div> <div style="float:left;"> <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" OnPageViewCreated="RadMultiPage1_PageViewCreated" > </telerik:RadMultiPage></div>
and here is the Code Behind.
protected void Page_Load(object sender, EventArgs e){ if (!Page.IsPostBack) {
//This is different I am using a datasource to generate the tabs RSOracleData RSOD = new RSOracleData(); RSOD.ConnString = ConfigurationManager.ConnectionStrings["OracleConnection"].ToString(); DataSet DS = RSOD.GetPageTabs(Thread.CurrentThread.CurrentUICulture.ToString(), "Laws"); RadTabStrip1.DataSource = DS; RadTabStrip1.DataTextField = "TABNAME"; RadTabStrip1.DataValueField = "TABID"; RadTabStrip1.DataBind(); if (DS.Tables.Count > 0) { AddPageView(RadTabStrip1.FindTabByText(DS.Tables[0].Rows[0]["TABNAME"].ToString())); } } }
private void AddTab(string tabName){ RadTab tab = new RadTab(); tab.Text = tabName; RadTabStrip1.Tabs.Add(tab); } protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e) { webproject1.Controls.PageViewGrid PVControl = new webproject1.Controls.PageViewGrid(); PVControl.PageViewID = Convert.ToInt32(e.PageView.ID.Replace("PV", "")); PVControl.ID = e.PageView.ID + "_userControl"; e.PageView.Controls.Add(PVControl); } private void AddPageView(RadTab tab) { RadPageView pageView = new RadPageView();
//I am using a value to determine the tab instead of using the text pageView.ID = "PV" + tab.Value; RadMultiPage1.PageViews.Add(pageView); tab.PageViewID = pageView.ID; }
protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e) { AddPageView(e.Tab); e.Tab.PageView.Selected = true; }
function OnClientCommandExecuting(editor, args) { var commandName = args.get_commandName(); var editorParentSelection = editor.getSelection().getParentElement(); switch (commandName) { case "Indent": var editorParentSelection = editor.getSelection().getParentElement(); var currentSelection = editor.getSelection().getRange(); var wrapper = document.createElement("div"); wrapper.setAttribute("style", "margin-left: 30px"); wrapper.innerHTML = currentSelection.endContainer.textContent; output = $telerik.getOuterHtml(wrapper); editor.pasteHtml(output); console.log(editorParentSelection.outerHTML); args.set_cancel(true); break; case "Outdent": editorParentSelection.outerHTML; break; default: break; } }Danilo
I have a colorpicker that is formatted with a picker button. In Internet Explorer 6, when selecting a color from the palette, the selected color is not displaying. This works fine in Firefox or Safari. When I set the SelectedColor to any color, it does not work either.
<
telerik:RadColorPicker runat="server" ID="cpColor" Width="210px" SelectedColor="White" ShowEmptyColor="false" ShowIcon="true" PaletteModes="All" Style="float: left;">
</telerik:RadColorPicker>
GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;
MetricMeasureNumber =
Convert.ToInt32((item["MetricMeasureNumber"].Controls[0] as TextBox).Text);
to get the MetricMeasureNumber,but it is giving null,
please share your experiences,
thanks in advance.