or
protected void grdMyGrid_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e){ ((RadGrid)sender).DataSource = sqlDs;}protected void grdMyGrid_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e){ if (e.Item is GridDataItem) { var item = e.Item as GridDataItem; if (item["ValidationState"].Text == "UNMATCHED") { item.BackColor = System.Drawing.Color.Red; item.ForeColor = System.Drawing.Color.White; } } }<telerik:RadFacebookButton ButtonType="FacebookLike" Font="Verdana" ShowFaces="False" TitleToShare="The Conference Board of Canada" UrlToShare="http://www.conferenceboard.ca" Width="40" /><telerik:RadTwitterButton CounterMode="Horizontal" TitleToShare="The Conference Board of Canada" UrlToShare="http://www.conferenceboard.ca/" /><telerik:RadGoogleButton AnnotationType="Bubble" ButtonSize="Medium" TitleToShare="The Conference Board of Canada" UrlToShare="http://www.conferenceboard.ca/" Width="40" />ColumnCreated
DataBinding
DataBound
<telerik:RadGrid ID="rgResults" Skin="Vista" runat="server" AutoGenerateColumns="true" AllowFilteringByColumn="True" AllowPaging="false" AllowSorting="True" ShowGroupPanel="true" OnItemCommand="rgresults_ItemCommand" ShowFooter="true" OnDataBound="rgResults_DataBound" OnDataBinding="rgResults_DataBinding" OnColumnCreated="rgResults_ColumnCreated"> <MasterTableView Width="100%" GroupLoadMode="Client" TableLayout="Fixed" UseAllDataFields="true"> <CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="false" /> </MasterTableView> <GroupingSettings CaseSensitive="false" /> <ClientSettings AllowGroupExpandCollapse="True" ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True"> <Resizing AllowColumnResize="true" /> <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> <Scrolling AllowScroll="true" UseStaticHeaders="true" /> </ClientSettings> <GroupingSettings ShowUnGroupButton="true" /> <ExportSettings HideStructureColumns="true" /> <FooterStyle /> </telerik:RadGrid>
This is the brief code behind for the data bind:
'Bind resultsDim Results As DataTable = objUDR.UserDefinedReports_RunReport(ViewState("SelectedUDR").ToString, Fields, GroupBy, Where, True) rgResults.DataSource = Results rgResults.DataBind()
All of the other onBninding subs etc are standard and as mentioned are hit when an action is applied ot the grid after binding.
Any help would be great.
Thanks
protected void RadChart2_Load(object sender, EventArgs e) { foreach (ChartAxisItem axisItem in this.RadChart2.PlotArea.XAxis.Items) { axisItem.ActiveRegion.Tooltip = "Click Me"; //axisItem.ActiveRegion.Url = "Default.aspx"; axisItem.ActiveRegion.Click += new RegionClickEventHandler(ActiveRegion_Click); } }