Is there some issue when multiple RadHTMLChart are in Pagelayout?
If I put 2 Charts in a regular html table, they both show up fine. But when I put them in different LayoutColumn within the same Pagelayout, only 1 chart would show up, the other won't. The ONLY time it would show up is if I put both chart into the SAME LayoutColmn, but that's not what I want.
Thank you!
I have 2 ASPX pages that use the same simple Telerik RadGrid. Here is my ASP code for these RadGrids:
<div id="GridViewArea" style="border-style: solid; border-width:0px; margin-top: 10px; width: 600px;"> <telerik:RadGrid ID="RadGrid1" runat="server" OnItemCreated="RadGrid1_ItemCreated" OnInsertCommand="RadGrid1_InsertCommand" OnItemInserted="RadGrid1_ItemInserted" OnItemDataBound="RadGrid1_ItemDataBound" AllowAutomaticInserts="false" AllowAutomaticUpdates="false" OnUpdateCommand="RadGrid1_UpdateCommand" AutoGenerateColumns="false"> <MasterTableView AutoGenerateColumns="false" CommandItemDisplay="Top" NoMasterRecordsText="No Rides have been recorded for this rider." DataKeyNames="RideID" Font-Size="Medium"> <Columns> <telerik:GridBoundColumn HeaderText="RiderID" DataField="RiderID" ReadOnly="true" Visible="false"></telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="DateTemplateColumn" HeaderText="Ride Date"> <ItemTemplate> <asp:Label ID="DateEditItemTemplate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "RideDate","{0:MM/dd/yyyy}") %>'> </asp:Label> </ItemTemplate> <EditItemTemplate> <telerik:RadDatePicker ID="dpRideDate" UniqueName="dpRideDate" DateInput-DateFormat="MM/dd/yyyy" MinDate="1999/1/1" runat="server" DbSelectedDate='<%# Bind("RideDate") %>'> </telerik:RadDatePicker> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="DeputyTemplateColumn" HeaderText=" Deputy"> <ItemTemplate> <asp:Label ID="DeputyEditItemTemplate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Deputy") %>'> </asp:Label> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlDeputy" runat="server" UniqueName="ddlDeputy" DataTextField="Name" DataValueField="EID" /> </EditItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn UniqueName="SectorColumn" HeaderText="Sector"> <ItemTemplate> <asp:Label ID="SectorEditItemTemplate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "SectorDescription") %>'> </asp:Label> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlSector" runat="server" UniqueName="ddlSector" DataTextField="SectorDescription" DataValueField="SectorValue" /> </EditItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid> </div>
Note the RadGrid is within an asp:UpdatePanel
I have 2 DropDown Lists used to add a new record to the grid and I bind these DropDown Lists in the RadGrid1_ItemDataBound Method here is that code:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { using (var db = new RideTracker2018Entities()) { var sectors = (from c in db.LU_Sectors select new { c.SectorDescription, c.SectorValue }).ToList(); GridEditableItem item = e.Item as GridEditableItem; // access/modify the edit item template settings here DropDownList list = item.FindControl("ddlSector") as DropDownList; list.DataTextField = "SectorDescription"; list.DataValueField = "SectorValue"; list.DataSource = sectors; list.DataBind(); var deputies = (from c in db.VW_DeputyInfo select new { c.Name, c.EID }).ToList(); GridEditableItem item2 = e.Item as GridEditableItem; DropDownList list2 = item2.FindControl("ddlDeputy") as DropDownList; list2.DataTextField = "Name"; list2.DataValueField = "EID"; list2.DataSource = deputies; list2.DataBind(); } } }
The grid renders and works as planned on one page but on the second page the DDDLs will not bind. On the second page the code to bind the lists does not run because it fails to pass the if (e.Item is GridEditableItem && e.Item.IsInEditMode).
Can anyone explain why these identical RadGrids are not working the same?
Hi,
Is there any Telerik web control similar to wincontrol RadBrowseEditor.
In RadrowseEditor, we can dynamically set the file path in the Textarea of RadBrowseEditor through code.
In AsyncUpload , I could not find simiar functionality.
please suggest.
Thanks
Swarupa
Is it possible to insert a session variable in an SQLDataSource like so:
="SELECT * FROM Companies WHERE CompanyID = <%session(CurrentCompID)%>"
Hello,
so im trying to add a button to the first cell in the Filtermenu with a 'Clear all filters' functionality. However i cant seem to get a handle on the first cell.
Here's some testing that i've tried so far with various examples i've found over the internet.
Private Sub Grid_OnItemCreated(sender As Object, e As GridItemEventArgs) If e.Item.ItemType = GridItemType.FilteringItem Then Dim clearFilterButton = New RadButton() With {.ButtonType = RadButtonType.StandardButton, .Height = 22, .Width = 22, .Text = "Clear Filter", .ToolTip = "Clear all filters"} AddHandler clearFilterButton.Click, AddressOf ClearFilterButton_Click Dim grid As RadGrid = CType(sender, RadGrid) Dim firstcell = grid.Controls(0) firstcell.Controls.Add(clearFilterButton) End If End Sub Private Sub ClearFilterButton_Click(sender As Object, e As EventArgs) For Each grid As RadGrid In Controls.All().OfType(Of RadGrid)() grid.MasterTableView.FilterExpression = String.Empty grid.Rebind() Next End Sub
I cant seem to get it to do anything at all tho. Even just trying to hide the Filtermenu does not seem to do anything. And yes the event is firing, it is triggered in the basepage load. Is this the way to add a button to a filtermenu? Or is there a better way?
Regards
Hi,
While user tabbing through the toolbar.and then press enter or spacebar on any of the toolbar icon's to select(like bold,italic or underline),focus is moving to RadEditor.Instead focus should remain on the toolbar's icon which ever user selected.
Thanks
Geeta