Hi
I would like to integrate the navigation menu into a site that does not have telerik dlls. I looked to see if there is a Kendo version of this control but without that I'm back to this one.
In my main site I have it working just fine so that as the page reduces in width items drop into the hamburger (or sandwich) menu.
I'd like to know what css & js files I would need to use. I am happy to create this from the client side as this site doesn't have much in the way of .net server side stuff.
Regards
Jon
Hi, I have a situation like this (see the attach image), and I have some dilemma.
I have in my page several radgrids, populated with the Advanced Databinding. I use OnNeedDataSource correctly for taking data from my database.
In my scenario the user can press on the "Add row" button and, through a EditForm, create a new row for the grid. The user can see this row, but this row is not saved immediatly on the database. I want to save this new row (and other changes and informations in the page) only after pressing the Save button.
But I have encountered many problems to do this. For example I have some difficulties with managing rebinds and postback... So, I'm here to ask you if exist some "Best practice" to do this kind of stuff.
Thank you for your attention.

i have Radgrid with 4 level, in level1 and 2 i have using SqlDatasource (drop drop)
Even RadGrid1_DetailTableDataBind i want to bingding data source of level 3 and 4.
<telerik:RadGrid ID="RadGrid1" OnDetailTableDataBind="RadGrid1_DetailTableDataBind" runat="server" DataSourceID="SqlDataSource1" CellSpacing="0" GridLines="None">
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="id">
<DetailTables>
<telerik:GridTableView runat="server" DataKeyNames="id2" DataSourceID="SqlDataSource2">
<DetailTables>
<telerik:GridTableView runat="server">
<DetailTables>
<telerik:GridTableView runat="server"></telerik:GridTableView>
</DetailTables>
</telerik:GridTableView>
</DetailTables>
<ParentTableRelation>
<telerik:GridRelationFields MasterKeyField="id" DetailKeyField="id_cha2"></telerik:GridRelationFields>
</ParentTableRelation>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
</telerik:RadGrid>
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString='<%$ ConnectionStrings:default %>' SelectCommand="sp_getproduct" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:SessionParameter SessionField="month" DefaultValue="9" Name="thang" Type="Int32"></asp:SessionParameter>
<asp:QueryStringParameter QueryStringField="nsd" DefaultValue="cuongcp" Name="nsd" Type="String"></asp:QueryStringParameter>
<asp:Parameter DefaultValue="1" Name="action" Type="Int32"></asp:Parameter>
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource runat="server" ID="SqlDataSource2" ConnectionString='<%$ ConnectionStrings:default %>' SelectCommand="sp_getproduct" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:SessionParameter SessionField="month" DefaultValue="9" Name="thang" Type="Int32"></asp:SessionParameter>
<asp:QueryStringParameter QueryStringField="nsd" DefaultValue="cuongcp" Name="nsd" Type="String"></asp:QueryStringParameter>
<asp:Parameter DefaultValue="2" Name="action" Type="Int32"></asp:Parameter>
</SelectParameters>
</asp:SqlDataSource>
and code behind
protected void RadGrid1_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
if (e.DetailTableView.DataSourceID == "")
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
string OrderID = dataItem.GetDataKeyValue("id2").ToString();
e.DetailTableView.DataSource = GetDataTable(OrderID);
}
if (e.DetailTableView.DataSourceID == "")
{
GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
string id = dataItem.GetDataKeyValue("id3").ToString();
e.DetailTableView.DataSource = GetDataTable_detailt(id);
}
}
but at level 4 error. plz help me, thanks in advance
Hello,
I have a rad grid where grouping is being used. The first column is a linkbutton which after 1 layer of being clicked into is then replaced with text to both disable and remove the link.
When I collapse and then re-expand the group the column values are now all gone.
Prior to collapsing my markup looks like
<td class="GrdBtn">
<span style="cursor:default;">Sept 2016</span>
</td>
After clicking the collapse and then expanding the markup is
<td class="GrdBtn">
<a href="javascript:__doPostBack('ReportGrid$ctl00$ctl05$ctl00','')"></a>
</td>
I cannot identify an event to which this occurs. The column is defined in the apsx as
<telerik:GridButtonColumn ButtonType="LinkButton" ImageUrl="" HeaderText="Region" DataTextField="RegionName" ItemStyle-CssClass="GrdBtn" CommandName="Select" UniqueName="btnSelect" SortExpression="RegionName" HeaderStyle-Width="150px" />
The event to which changes the linkbutton to a span is within the RadGrid_DataBound event and looks like
btn = CType(CType(Page.Form.FindControl("ReportGrid"), RadGrid).MasterTableView.Items(i).Cells(3).Controls(0), LinkButton)
CType(Page.Form.FindControl("ReportGrid"), RadGrid).MasterTableView.Items(i).Cells(3).Controls.Remove(btn)
Dim finalTxt As String = String.Format("<span style='cursor:default;'>{0}</span> ", btn.Text)
Dim litControl As New LiteralControl(finalTxt)
What event could be causing this? Or how can i prevent this behavior from happening?

Hi,
I am creating tabs dynamically through AddTab, AddPageView approach (http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/dynamic-pageview-creation/defaultcs.aspx). I have 8 tabs in which last tab is just a image.. I want disable the Click event on last tab.
Could you please tell me how to approach?
Thanks and Regards,
Puru
I have a situation where I have some very long columns. In ItemDataBound I just substring the first 80 characters and put it in the item.text, and the full in the ToolTip. The problem is when I export to Excel I want to get the entire contents of the data item, not the truncated version that's in the cell. How can I avoid this It seems that in ItemDataBound I can't test on
The other option I've thought of is to somehow put the entire contents of the data item in the cell and maybe not have it wrap.
What would be the recommended solution?
Rodney


Hello,
I am using a RadDropDownTree control. And my items look like this:
1. Statements
-Allocations
-Tax
2.Other
-Other Reports
-Tax Estimates
I want to prevent the user from selecting the parent items. In the above example, that would be the "Statements" and "Other". I want users to be able to only select the children.
Another issue i am having is on child selection, the control does not collapse it's dropdown.
Any idea on how to achieve this?
Thanks,
I have noticed some very peculiar behavior when setting the folder of the FileExplorer from a record selected on a RadGrid. The behavior is consistent so should be able to be determined why.
Each row on the RadGrid points to a project which has as one of its not visible fields a url to its project folder on AWS.
The code to change the folder location is contained in a method that is called from RadGrid2_ItemCommand.
The FileExplorer shows the contents of the changed folder all the time but with one exception. If the currently selected Project is the first on the list, then the FileExplorer does not show the contents of the new folder whenever a different Project is selected. Reselecting the same Project will get FileExplorer to show the contents of the new folder. If the currently selected Project is anything other than the first Project, the FileExplorer will show the contents of the new folder.
I have logged the value of FileExplorer1.CurrentFolder before the change and then again after the change. When selecting away from the first Project, this value does not change. All other times the value changes. What may be relevant is that on the Page_Load, I also log the value of FileExplorer1.CurrentFolder, if it is a Postback, and saw that the value has since been changed but the visual aspect of the FileExplorer still shows the first Project's folder.
On Page_Load (not a Postback), the Forward, NewFolder and Open are all removed from the ToolBar,ContextMenus[0] and GridContextMenu.
How do I get the FileExplorer to show the contents of the new folder when selecting away from the first Project?
<telerik:RadFileExplorer RenderMode="Lightweight" runat="server" ID="FileExplorer1"
Width="595px" Height="350px" AllowPaging="true" PageSize="10"
VisibleControls="ContextMenus,Grid,Toolbar">
<Configuration EnableAsyncUpload="true"></Configuration>
</telerik:RadFileExplorer>
protected void RadGrid2_ItemCommand(object sender, GridCommandEventArgs e)
{
if (e.CommandName == "RowClick")
{
GridDataItem item = (GridDataItem)e.Item;
switch (e.Item.OwnerTableView.Name)
{
case "Missions":
// do something else
break;
case "Projects":
string tempLocation = item["colFullDirectory"].Text;
string newDrive = String.Format("~/aws/{0}", tempLocation.Substring(9));
SetFileExplorerPaths(newDrive);
...
private void SetFileExplorerPaths(string folderPath)
{
string[] paths = new string[]
{
folderPath
};
FileExplorer1.InitialPath = Page.ResolveUrl(folderPath);
FileExplorer1.Configuration.UploadPaths = paths;
FileExplorer1.Configuration.ViewPaths = paths;
FileExplorer1.Configuration.DeletePaths = paths;
}
