| RadGrid rgrdSection = new RadGrid(); |
| rgrdSection.ID = "grd" + (i+1).ToString(); |
| rgrdSection.AutoGenerateColumns = false; |
| rgrdSection.AllowSorting = false; |
| rgrdSection.Width = Unit.Percentage(97.0); |
| rgrdSection.AllowMultiRowSelection = false; |
| rgrdSection.ShowStatusBar = true; |
| rgrdSection.AllowPaging = true; |
| rgrdSection.PageSize = 8; |
| rgrdSection.AlternatingItemStyle.BackColor = System.Drawing.ColorTranslator.FromHtml("#979EB8"); |
| // Add columns |
| GridBoundColumn boundColumn = new GridBoundColumn(); |
| boundColumn.DataField = "user_key_7"; |
| boundColumn.HeaderText = "Sub-Chapter"; |
| rgrdSection.MasterTableView.Columns.Add(boundColumn); |
| rgrdSection.PagerStyle.Mode = GridPagerMode.NumericPages; |
| rgrdSection.PagerStyle.Position = GridPagerPosition.TopAndBottom; |
| rgrdSection.ClientSettings.EnableRowHoverStyle = true; |
| rgrdSection.ClientSettings.EnablePostBackOnRowClick = false; |
| rgrdSection.ClientSettings.Selecting.AllowRowSelect = false; |
| protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem item = (GridDataItem)e.Item; |
| item.Height = Unit.Pixel(10); |
| } |
| } |


Hi,
I have 3 radtabs each one containing a radgrid. In the first tab you have all the to-be-classify registers, there can only be two types of registers ( A and R). So for example if you mark 10 registers on the first radgrid and classify them, the first radgrid rebinds (using the needDataSource event) and everything is fine, but if I change tab and look at any of the two other radgrids neither will be updated. I have to refresh the page if I want to see the changes.
In my code in the NeedDataSource event setting the DataSource for the 3 radgrids but only seems to be working for the selected radgrid (because if I change the classification from A to R in the second radgrid I wont see the registers that does not belong to this radgrid anymore but I don't see the changes on the R radgrid)
here is my code (I dont use any AjaxManager, all is being done only by Postbacks)
| Protected Sub setStatus(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGridClientes.ItemCommand |
| If e.CommandName = "rejectStatus" Or e.CommandName = "approveStatus" Then |
| Dim item As Telerik.Web.UI.GridEditableItem = DirectCast(e.Item, Telerik.Web.UI.GridEditableItem) |
| Dim newStatus As String = "0" |
| If e.CommandName = "approveStatus" Then |
| newStatus = "A" |
| ElseIf e.CommandName = "rejectStatus" Then |
| newStatus = "R" |
| End If |
| updateRecord(item, newStatus) |
| Me.RadGrid1.Rebind() |
| End If |
| End Sub |
| Protected Sub RadGrid_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource, RadGridA.NeedDataSource, RadGridR.NeedDataSource |
| Dim ws As New webService |
| RadGrid1.DataSource = wsNC.fillStatus("0") |
| RadGridA.DataSource = wsNC.fillStatus("A") |
| RadGridR.DataSource = wsNC.fillStatus("R") |
| End Sub |
Hi All,
i have used RadMenu for open the Popup(Radpoup). i am using OnClientItemClicked event to open the RadWindow. This is working fine. Now i have added one Button called "Export to Excel" for exporting the data in Excel. This also woking fine. My issue is After the export, f i clicked the radmenu, the radwindow not working. but the event OnClientItemClicked fired correctly.
| <asp:UpdatePanel ID="testPanel" runat="server"> |
| <contenttemplate> |
| <radM:RadMenu ID="mnuImport" Width="90%" runat="server" Skin="Default2006" OnClientItemClicked="ImportPopup" CausesValidation="false"> |
| <DefaultGroupSettings Height="160" Width="70" /> <Items> |
| <radM:RadMenuItem Text="Red" Value="Red"> |
| <Items> |
| <radM:RadMenuItem Text="Red" Value="Red"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Blue" Value="Blue"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Yellow" Value="Yellow"></radM:RadMenuItem> |
| <radM:RadMenuItem Text="Orange" Value="Orange"></radM:RadMenuItem> |
| </Items> |
| </radM:RadMenuItem> |
| </Items> |
| </radM:RadMenu> |
| <asp:Button ID="btnExport" runat="server" Text="Export to Excel" CssClass="searchbutton" CausesValidation="false"/> |
| </contenttemplate> |
| <triggers> |
| <asp:PostBackTrigger ControlID="btnExport" /> <!-- if i comment this line, the Popup is working fine. but the export is not working --> |
| </triggers> |
| </asp:UpdatePanel> |
| <div> |
| <radwindow:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista" Behavior="Close, Move" |
| Height="300px" Width="500px" Modal="true"> |
| <Windows> |
| <radwindow:RadWindow ID="radImport" runat="server" Title="Import" ReloadOnShow="true" |
| Height="300px" Width="500px" VisibleTitlebar="true" Skin="Vista"/> |
| </Windows> |
| </radwindow:RadWindowManager> |
| </div> |
| function ImportPopup(sender, eventArgs) |
| { |
| var selectedImportType = eventArgs.Item.Value; |
| window.radopen("../DocMgt/ImportPopup.aspx?ImportType=" + selectedImportType, 'radImport'); |
| return false; |
| } |