<script type="text/javascript"> /*********************************************** Sliding Zone examples ***********************************************/ function GetZoneState () { var slidingZone = $find("SlidingZone1"); var zoneState = slidingZone.get_clientState(); alert(zoneState); } /*********************************************** Pane examples ***********************************************/ function ToggleEnableResize(paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; pane.set_enableResize(!pane.get_enableResize()); slidingZone.collapsePane(pane.get_id()); slidingZone.expandPane(pane.get_id()); } function ToggleEnableDock(paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; pane.set_enableDock(!pane.get_enableDock()); slidingZone.undockPane(pane.get_id()); slidingZone.collapsePane(pane.get_id()); slidingZone.expandPane(pane.get_id()); } function GetPaneState(paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; var paneState = pane.get_clientState(); alert(paneState); } function ToggleExpandPane(paneID) { var slidingZone = $find("SlidingZone1"); var expandedPaneId = slidingZone.get_expandedPaneId(); if (expandedPaneId == null || expandedPaneId != paneID) { slidingZone.expandPane(paneID); } else { slidingZone.collapsePane(paneID); } } function ToggleDockPane(paneID) { var slidingZone = $find("SlidingZone1"); var dockedPaneId = slidingZone.get_dockedPaneId(); if (dockedPaneId == null || dockedPaneId != paneID) { slidingZone.collapsePane(paneID); slidingZone.dockPane(paneID); } else { slidingZone.undockPane(paneID); } } function TogglePaneTabVisibility(paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (pane.isTabDisplayed()) { pane.hideTab(); } else { pane.showTab(); } } function ChangePaneContent (paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; pane.setContent('This is the NEW pane content ...'); slidingZone.collapsePane(pane.get_id()); slidingZone.expandPane(pane.get_id()); } function ChangePaneWidth (paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; var newWidth = (pane.get_width() == 200) ? 100 : 200 ; pane.set_width(newWidth); // set the width slidingZone.collapsePane(pane.get_id()); slidingZone.expandPane(pane.get_id()); } function ToggleClickToOpen () { var slidingZone = $find("SlidingZone1"); slidingZone.set_clickToOpen(!slidingZone.get_clickToOpen()); alert("'ClickToOpen' property set to [" + slidingZone.get_clickToOpen() + "]"); } function ToggleDockOnOpen (paneID) { var slidingZone = $find("SlidingZone1"); var pane = slidingZone.getPaneById(paneID); if (!pane) return; pane.set_dockOnOpen(!pane.get_dockOnOpen()); alert("'DockOpen' property set to [" + pane.get_dockOnOpen() + "]"); } </script><telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="AttorneyPanel" /> <telerik:AjaxUpdatedControl ControlID="ButtonsPanel" /> <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" /> <telerik:AjaxUpdatedControl ControlID="FundingsPanel" /> <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" /> <telerik:AjaxUpdatedControl ControlID="RemindersPanel" /> <telerik:AjaxUpdatedControl ControlID="ReductionPanel" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="AttorneyPanel"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="FundingsPanel" /> <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" /> <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" /> </UpdatedControls> </telerik:AjaxSetting> <telerik:AjaxSetting AjaxControlID="ButtonsPanel"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="FundingsPanel" /> <telerik:AjaxUpdatedControl ControlID="DocumentsPanel" /> <telerik:AjaxUpdatedControl ControlID="CaseCountsPanel" /> <telerik:AjaxUpdatedControl ControlID="RemindersPanel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings></telerik:RadAjaxManager><telerik:RadAjaxPanel ID="CaseListPanel" runat="server" ClientEvents-OnRequestStart="requestStart" EnableAJAX="true" OnAjaxRequest="CaseListPanel_AjaxRequest"> <div class="box" style="width:95%;" align="center"> <div class="boxheader">Attorney Case List</div> <telerik:RadGrid ID="CaseListGrid" runat="server" AllowSorting="True" AllowPaging="False" OnNeedDataSource="CaseListGrid_NeedDataSource" OnPreRender="CaseListGrid_PreRender" OnItemDataBound="CaseListGrid_ItemDataBound" Skin="Oasis" EnableEmbeddedSkins="false" Width="100%" AllowFilteringByColumn="true" SortingSettings-EnableSkinSortStyles="false" OnItemCreated="CaseListGrid_ItemCreated" > <ClientSettings AllowColumnsReorder="true" > <Scrolling AllowScroll="False" UseStaticHeaders="True" /> <Resizing AllowColumnResize="true" /> <ClientEvents OnGridCreated="GridCreated3" /> </ClientSettings> <MasterTableView AllowMultiColumnSorting="True" AutoGenerateColumns="False" AllowFilteringByColumn="true" TableLayout="Auto" CommandItemDisplay="Top" ClientDataKeyNames="CaseId"> <CommandItemTemplate> <asp:Button ID="DownloadPDF" runat="server" Text="Create Pdf" OnCLick="downloadPdf_Click" /> <asp:Button ID="DownloadExcel" runat="server" Text="Create Excel" OnClick="downloadXLS_Click" /> <asp:Button ID="showsum" Text="Show All" OnClick="show_all_Click" runat="server" /> </CommandItemTemplate>protected void downloadXLS_Click(object sender, EventArgs e){ CaseListGrid.MasterTableView.ExportToExcel();}<
telerik:RadComboBox ID="ddlCustomer" runat="server" EnableVirtualScrolling="true"
ItemsPerRequest="10" Width="245px" TabIndex="1" EnableTextSelection="False"
AutoPostBack="true" Filter="StartsWith"
onselectedindexchanged="ddlCustomer_SelectedIndexChanged1">
</telerik:RadComboBox>
thanks,
Jagdish
I am using the RadChart control to display a pie chart on my page.
However, it seems to be ignoring the LegendDisplayMode and StartAngle that I am setting on the series.
The RadChart is added to the page with the following:
1.<telerik:RadChart ID="ComplianceActionsChart" runat="server" SkinsOverrideStyles="true"2. ChartTitle-TextBlock-Text="Compliance Actions Pie Chart" AutoLayout="True" Skin="DeepRed"3. Width="330px" Height="200px" PlotArea-EmptySeriesMessage-TextBlock-Text="There is no data available yet."4. DefaultType="Pie"> 5.</telerik:RadChart>The code to create the series is:
1.ChartSeries dataSeries = new ChartSeries("Current Data", ChartSeriesType.Pie); 2.dataSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels; 3.dataSeries.Appearance.StartAngle = -90; 4. 5.ChartSeriesItem free = new ChartSeriesItem(aCurrentData.Item1); 6.free.Name = "Item 1"; 7.free.Label.TextBlock.Text = "#%"; 8.dataSeries.AddItem(free);When it displays, the legend only contains "Current Data" instead of the item names and the pie chart has the default rotation.
I tried creating the series in the aspx file with the appearance values set, but this produced the same result.
Is there anything I am missing in setting this up?
Take the following (simple) datasource for a grid:
Restaurant Food
------------------------
joe's pizza pizza
taco bell salad
mcdonalds burger
mcdonalds salad
taco bell tacos
Now, I want each restaurant to display only once in a radgrid with only a single column (restaurant name), but I also want to programatically filter on 'food'. I've written a simple function to go through every row in a radgrid and 'hide' rows that have duplicate entries for the 'restaurant' column:
Public Sub RemoveDuplicateGridRows(ByVal grid As Telerik.Web.UI.RadGrid, ByVal columnIndex As String) 'Array of column items to compare against for duplicates Dim aColumns As New ArrayList Dim value As String Dim gridRows As GridDataItemCollection = grid.MasterTableView.Items For Each row As GridDataItem In gridRows value = row.Cells(columnIndex).Text If Not aColumns.Contains(value) Then aColumns.Add(value) Else row.Visible = False End If NextEnd Sub
This function works perfectly. The issue is that the paging feature on the RadGrid will still count the 'hidden' rows (where row.visible=false) when it generates the 'pager'. For example, if the paging is set to 10 items, but on page1 there are 4 rows 'hidden', it will only show 6 rows on the page. The 'alternating' line theme gets all messed up as well.
I've attached a screenshot of what the end result looks like. Completely removing the rows altogether is not an option, since I would not be able to get the desired result if i applied a filter for 'salad' and the 'mcdonalds' entry had been deleted since it was the 2nd 'mcdonalds' row.
The new client has given me new design(CSS) of a site, I have shifted the my product on this new design and problems have begun... Here part of my code...
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
....
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server"> <asp:Panel ID="Panel1" runat="server"> <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true" OnTextChanged="CheckValues"> <Items> <telerik:RadComboBoxItem runat="server" Text="some1" Value="s1" /> <telerik:RadComboBoxItem runat="server" Text="some2" Value="s2" /> <telerik:RadComboBoxItem runat="server" Text="some3" Value="s3" /> <telerik:RadComboBoxItem runat="server" Text="some4" Value="s4" /> </Items> </telerik:RadComboBox> </asp:Panel> </telerik:RadAjaxPanel>
Well, what is interesting in Mozilla FireFox all works good, but in Internet Explorer or Opera not work!
In Internet Explorer, i select in ComboBox something value, and ComboBox reset again to initial value.
I dont understand whats is can be, i searched for similar problems at your forums but have not found.
Please help!
foreach
(DataRow oDR in oStructureDT.Rows)
{
oNormalDT.Columns.Add(
new DataColumn(oDR["ColumnName"].ToString(),
ConvertType(oDR[
"DataType"].ToString())));
}
The DataType field is in the db as date, time, varchar and so on...
I'm trying to get the RadTimePicker to display in the edit form for a time DataType but all i can get is the calendar
I have AutoGenerateColumns = true, so i may have to rethink that. Can any one confirm?
I'm guessing i need to make the adjustment in itemdatabound, but not sure how to go about it.
Regards
Rod
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3acf630f82-0e77-4618-bf5c-22b81f4ec1c5%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a8e6f0d33%3aaa288e2d%3aa7e79140%3a6a6d718d%3a874f8ea2%3a19620875%3a33108d14%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1, line 6 character 84093
Secondly i have robust error handling mechanism on server side (elmah), log4net at middle tier and database logger.
Can i implement some centralized error handling for ajax erros?
This error is driving me crazy
Line: 6
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Telerik.Web.UI 2010.'.
<telerik:RadGrid ID="rgHourlyPeople" runat="server"
onneeddatasource="rgHourlyPeople_NeedDataSource" GridLines="None" AllowPaging="True"
AutoGenerateColumns="False" AllowSorting="True"
onselectedindexchanged="rgHourlyPeople_SelectedIndexChanged">
I have set AllowSorting="True" for the grid, buton only the bound column get sorted, the GridButtonColumn column ( when ButtonType="LinkButton") sort function won't work.
Anynow knows how to sort GridButtonColumn column?
Thanks,
Jessie
