Hi Team,
In the RadGrid, I have to do drag and drop option as well as edit the row using batch edit mode. If I set the clientIDMode = "Static" while click on the edit buttonI can see the Update and Cancel button. But I cann't do drag and drop. So I changed the ClientIDMode="AutoID" now drag and drop is working fine but in edit mode the Update and Cancel button in the batch it is not displaying.
Please let me know how to resolve this issue.
Regards,
Rajesh
<telerik:RadGrid ID="Parts" runat="server" ClientIDMode="AutoID" AllowPaging="True" AllowSorting="True" ClientSettings-AllowAutoScrollOnDragDrop="true"
AutoGenerateColumns="False" GridLines="None" ShowStatusBar="True" CssClass="Parts" ClientSettings-AllowDragToGroup="true" ClientSettings-AllowRowsDragDrop="true">
<ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="false"></Selecting>
<ClientEvents OnRowDropping="onRowDropping"></ClientEvents>
<Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling>
</ClientSettings>
<MasterTableView Name="PartsTableView" DataKeyNames="InventoryID" AllowSorting="True" NoDetailRecordsText="No Items" HierarchyLoadMode="ServerBind"
NoMasterRecordsText="No Items Added" CommandItemDisplay="Bottom" EditMode="Batch">
<CommandItemSettings ShowAddNewRecordButton="false" />
<BatchEditingSettings EditType="Cell" />
<DetailTables>
<telerik:GridTableView Name="ComponentDetails" Caption="Component Details" DataKeyNames="InventoryID"
runat="server">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="ParentID" MasterKeyField="InventoryID" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn DataField="ParentID" Display="false" UniqueName="ParentID" />
<telerik:GridBoundColumn DataField="InventoryID" HeaderText="InventoryID" ReadOnly="true"
UniqueName="InventoryID" />
<telerik:GridBoundColumn DataField="FormNumber" HeaderText="Form #" UniqueName="FormNumber" />
<telerik:GridBoundColumn DataField="Description" HeaderText="Description" ReadOnly="true"
UniqueName="Description" Display="True" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn UniqueName="ThumbNail">
<ItemTemplate>
<asp:Image ID="imgThumbNail" runat="server" ImageUrl='<%#Eval("ImageUrl")%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="InventoryID" UniqueName="FormNumber" Display="false" />
<telerik:GridBoundColumn DataField="Text" ItemStyle-Width="150px" HeaderText="Product Code" />
<telerik:GridBoundColumn DataField="Description" Display="false" />
<telerik:GridTemplateColumn UniqueName="Description" HeaderText="Title">
<ItemTemplate>
<asp:Label ID="lblDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:Label>
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtDescription" runat="server" Text='<%#Eval("Description") %>'>
</asp:TextBox>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="Type" Display="false" />
<telerik:GridEditCommandColumn ButtonType="ImageButton" EditText="Edit" UniqueName="EditCommandColumn">
</telerik:GridEditCommandColumn>
<telerik:GridButtonColumn ButtonType="ImageButton"
CommandName="DeleteInventory" Text="Remove" UniqueName="Delete">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton"></ItemStyle>
<HeaderStyle ></HeaderStyle>
</telerik:GridButtonColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
<asp:XmlDataSource ID="XMLBookBuilderSource" runat="server" EnableCaching="false">
</asp:XmlDataSource>
<telerik:GridTextBoxColumnEditor ID="GridTextBoxEditor" runat="server" TextBoxStyle-Width="230px"></telerik:GridTextBoxColumnEditor>
Hello Team,
We are using telerik control for one of the product, application is hosted at client end and some external users uses the application from their environment using some kind of VPN. recently one of the client's contractor reported the issue that application is not loading properly ,where I find the telerik control CSS is not getting load only for certain user who are using the application through some kind of VPN.
Could you please help me out ,what can be the reason ,why CSS for telerik control is not getting load.
Note : Application is running on IE 9 and issue is appearing only for certain user
Hi guys.
I'm trying to hide the content's area tooltip of radeditor.
Doing some research in the forum I found the following links
http://www.telerik.com/forums/disable-title-on-content-areahttp://www.telerik.com/forums/hiding-radeditor-tooltip
But when I run my project it throws javascript error editorLoad is undefined
Here's the declaration of the editor:
01. <telerik:RadEditor runat="server" ID="desc" MaxTextLength="1500" Language="es-ES" EditModes="Design, Preview" Content='<%# DataBinder.Eval(Container, "DataItem.Descripcion") %>' OnClientLoad="editorLoad">02. 03. <CssFiles>04. <telerik:EditorCssFile Value="~/SalaPrensaAdmin.css"/>05. </CssFiles>06. <Languages>07. <telerik:SpellCheckerLanguage Code="es-ES" Title="Español" />08. </Languages>09. <Tools>10. <telerik:EditorToolGroup>11. <telerik:EditorTool Name="InsertLink" Text="Insertar vínculo"/>12. <telerik:EditorTool Name="ApplyClass" Text="Elegir clase"/>13. <telerik:EditorTool Name="AjaxSpellCheck" Text="Verificar ortografía" />14. <telerik:EditorTool Name="FormatBlock" Text="Elegir formato" />15. <telerik:EditorTool Name="InsertParagraph" Text="Insertar párrafo"/>16. </telerik:EditorToolGroup>17. </Tools>18. 19. 20.<TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings>21. </telerik:RadEditor>22. <script type="text/javascript">23. function editorLoad(editor) {24. var contentAreaEl = editor.get_contentAreaElement();25. contentAreaEl.removeAttribute("title");26. }27.</script>Can you please help me with this.
Hope your help.
Best regards.
Cristian
hi ! I´m new in this forum but I use Telerik by many years ago...
I changed by other computer my desktop, and install VS with Telerik, but this dont work in the designer of VB.. so sorry by my english.
this is the problem:
I add by reference
img1
I add the instance in the top of the page
img2
I add in the web.config
img3
but I can see the result in the browser, but dont work in the designer.
I upgraded my computer to windows 10, and I have VS 2012, and Ajax Control Tool Kit

Hi all,
I've a RadComboBox inside EditItemTemplate
1.<telerik:RadComboBox Skin="Silk" ID="cognome_sostituto_combo" runat="server" DataSourceID="SqlDataSourceGiocatori1" DataTextField="Cognome" DataValueField="Cognome" DropDownWidth="200px" MinFilterLength="2" Filter="StartsWith" AllowCustomText="false" Text='<%# Bind("Cognome_sostituto")%>' >- populate combo with items from SqlDataSourceGiocatori1 (that has a query like select cognome from ....) --> done
- set selected item from SqlDataSource connected to GridView --> not working using Text='<%# Bind... --> not working
If I use, for example, a TextBox and bind Text with Text='<%# Bind("Cognome_sostituto")%>' everything is ok but there's no autocomplete.
The error I get is "Databinding methods such as Eval(), XPath(), and Bind() can only be used in the context of a databound control"
Any ideas?
Thanks for your help
Hello!
I have a problem with horizontal scroll in grid. I generete programmatically columns with fixed width in HeaderStyle.Width on OnInit event, and this grid
<div style="width: 100%; display: block;"><telerik:RadGrid ID="gvMain" Width="100%" runat="server" OnNeedDataSource="gvMain_OnNeedDataSource" OnBatchEditCommand="gvMain_OnBatchEditCommand" AutoGenerateColumns="False" AllowPaging="True" PageSize="100" AllowSorting="True" AllowFilteringByColumn="True" Skin="Metro" Culture="ru-Ru"> <MasterTableView CommandItemDisplay="TopAndBottom" AllowAutomaticUpdates="True" EditMode="Batch" AllowAutomaticDeletes="False" AllowAutomaticInserts="False" DataKeyNames="PersonId" TableLayout="Fixed"> <BatchEditingSettings EditType="Cell"></BatchEditingSettings> <GroupByExpressions> <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="FacultyName" HeaderText="Факультет" FieldName="FacultyName" /> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="FacultyName" /> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <CommandItemSettings ShowAddNewRecordButton="False" SaveChangesText="Сохранить" CancelChangesText="Отменить изменения" RefreshText="Обновить"></CommandItemSettings> </MasterTableView> <PagerStyle AlwaysVisible="True"></PagerStyle> <ClientSettings AllowKeyboardNavigation="True"> <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="5"></Scrolling> </ClientSettings> </telerik:RadGrid> </div>When sum of columns width exceed the page width, I have the Page horizontal scroll instead grid scrolling. How can I fit Grid into parent div? (It's normally work with PivotGrid, but not with a Grid)
<telerik:GridTemplateColumn DataField="MyDataField" HeaderText="My Header" UniqueName="MyUniqueName"> <ItemTemplate> <%# Eval("MyBoundItem") %> </ItemTemplate> <EditItemTemplate> <telerik:RadListBox ID="MyRadListBox" runat="server" SelectionMode="Multiple" /> </EditItemTemplate></telerik:GridTemplateColumn>GridTableView masterTable = (sender as RadGrid).MasterTableView;RadListBox myRadListBox = masterTable.GetBatchColumnEditor("MyRadListBox") as RadListBox; // Suspicious Bind & null being returned
myRadListBox.DataSource = myDataSource;
myRadListBox.DataBind();Our solution is looking to clone items from a master list into a new list. We have this working on the server side but would like to move it client side if it is possible so we can prevent round trips taken.
protected void HandleDrop(object sender, RadTreeNodeDragDropEventArgs e) { RadTreeNode sourceNode = e.SourceDragNode; RadTreeNode destNode = e.DestDragNode; RadTreeViewDropPosition dropPosition = e.DropPosition; //var currentlesson = sourceNode.Value; //RadTreeNode foundNode = RadTreeView2.FindNodeByValue(currentlesson); if (destNode != null) { if (sourceNode.TreeView.SelectedNodes.Count <= 1) { var currentlesson = sourceNode.Value; RadTreeNode foundNode = RadTreeView2.FindNodeByValue(currentlesson); //this checks if node already exists in new list if (foundNode == null) { int? index = PerformDragAndDrop(dropPosition, sourceNode, destNode); if (index != null) { //Console.Error.WriteLine("NodeDrop: " + e.SourceDragNode.Text + " to " + e.DestDragNode.Text); //var currentindex = e.SourceDragNode.Index; var currentindex = index; var objectid = e.SourceDragNode.Value; var parentid = destNode.Value; var parentid2 = "Newlist"; var action = "moved"; if (parentid.Contains("LN")) { EventMovement.Add(action + currentindex + "," + objectid + "," + parentid2); result.Text += action + "," + currentindex + "," + objectid + "," + parentid2 + Environment.NewLine; } else { EventMovement.Add(action + currentindex + "," + objectid + "," + parentid); result.Text += action + "," + currentindex + "," + objectid + "," + parentid + Environment.NewLine; } } } } else if (sourceNode.TreeView.SelectedNodes.Count > 1) { int? index = PerformDragAndDrop(dropPosition, sourceNode, destNode); if (index != null) { foreach (RadTreeNode currentNode in sourceNode.TreeView.SelectedNodes) { var currentlesson = currentNode.Value; RadTreeNode foundNode = RadTreeView2.FindNodeByValue(currentlesson); //this checks if node already exists in new list if (foundNode == null) { PerformDragAndDrop(dropPosition, currentNode, destNode); //Console.Error.WriteLine("NodeDrop: " + currentNode.Text + " to " + e.DestDragNode.Text); var currentindex = index; var objectid = currentNode.Value; var parentid = destNode.Value; var action = "group-moved"; EventMovement.Add(currentindex + "," + objectid + "," + parentid); result.Text += action + "," + currentindex + "," + objectid + "," + parentid + Environment.NewLine; } } } } destNode.Expanded = true; } } private int? PerformDragAndDrop(RadTreeViewDropPosition dropPosition, RadTreeNode sourceNode, RadTreeNode destNode) { int? index = null; if (sourceNode.Equals(destNode) || sourceNode.IsAncestorOf(destNode)) { return null; } // clone the sourceNode List<RadTreeNode> sourceNodeClone = CloneNode(sourceNode); if (remove == false) { sourceNode.Owner.Nodes.Remove(sourceNode); } // add source node as a child of the destination node //if (!sourceNode.IsAncestorOf(destNode)) //{ // destNode.Nodes.Add(sourceNodeClone); // sourceNodeClone.AllowDrop = false; //} // this prevents items from being added as children when moved switch (dropPosition) { case RadTreeViewDropPosition.Over: // child if (!sourceNode.IsAncestorOf(destNode)) { foreach (RadTreeNode node in sourceNodeClone) destNode.Nodes.Add(node); } break; case RadTreeViewDropPosition.Above: // sibling - above foreach (RadTreeNode node in sourceNodeClone) destNode.InsertBefore(node); break; case RadTreeViewDropPosition.Below: // sibling - below foreach (RadTreeNode node in sourceNodeClone) destNode.InsertAfter(node); break; } var currentlesson = sourceNode.Value; RadTreeNode foundNode = RadTreeView2.FindNodeByValue(currentlesson); if (foundNode != null) { index = foundNode.Index; } return index; } private List<RadTreeNode> CloneNode(RadTreeNode sourceNode) { List<RadTreeNode> clonedNode = new List<RadTreeNode>(); RadTreeNode clone = new RadTreeNode(); clone.Text = sourceNode.Text; clone.Value = sourceNode.Value; clone.ImageUrl = sourceNode.ImageUrl; clone.ExpandedImageUrl = sourceNode.ExpandedImageUrl; clone.AllowDrop = sourceNode.AllowDrop; //this carries over the allow drop from the main list //check if parent node -- for each statement didnt work here if (sourceNode.ParentNode != null) { if (sourceNode.Nodes.Count > 0) { //grab and move children too for (int i = 0; i < sourceNode.Nodes.Count - 1; i++) { clone.Nodes.Add(sourceNode.Nodes[i]); } } } clonedNode.Add(clone); return clonedNode; }
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1" ShowBaseLine="true">
<Tabs>
<telerik:RadTab runat="server" Selected="True" Text="<u>T</u>ables" AccessKey="T">
</telerik:RadTab>
<telerik:RadTab runat="server" Text="<u>P</u>arameters" AccessKey="P">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0">
<telerik:RadPageView id="RadPageView1" runat="server" Selected="true">
Table List
</telerik:RadPageView>
<telerik:RadPageView id="RadPageView2" runat="server">
Parameter List
</telerik:RadPageView>
</telerik:RadMultiPage>
Am I missing something or is this feature (use of <TAB> key) not supported?
/Stan
