telerik-grid

Telerik Radgrid Can we save a unique value against each column?

∥☆過路亽.° 提交于 2019-12-12 03:16:15
问题 I am generating columns dynamically in my RadGrid, so column count and their names are generated on the fly and so is the datatable that the grid is to be bound to. Each column either represents an object in my system, or an empty one for user to create a new object. Each object is identified by a unique value property. I would like to set this value to the column, so, when the grid is edited, I would like to use this value and update the object. I am open for suggestions. For now I am

Accessing RadComboBox in codebehind from a RadGrid

百般思念 提交于 2019-12-12 01:33:15
问题 I´m having trouble grabbing RadComboBox when editing inline from a RadGrid. When I try to find the correct control through this GridEditableItem I always receive null. Can anyone throw me some pointers in how to access the RadCombobox from my code below? My ascx.cs file: <telerik:RadGrid runat="server" ID="grid_AccessRecords" AllowPaging="True" AllowSorting="True" Visible="False" Width="100%" PageSize="25" OnItemCommand="AccessRecordsGridOnItemCommand" OnNeedDataSource=

Telerik MVC Grid filterBy not working

此生再无相见时 提交于 2019-12-11 22:09:50
问题 I am facing a similar problem to this question has anybody found a solution to it http://www.telerik.com/community/forums/aspnet-mvc/grid/grid-does-not-filter-when-filterby-major-startswith-mba.aspx#1795473 the sample application here is also not filtering http://www.telerik.com/community/forums/aspnet-mvc/grid/is-there-a-way-to-save-grid-stage.aspx#1224347 回答1: The application you have referred uses hidden fields that are updated through js on DataBound event of the grid like $('#currentPage

Add new record to Telerik RadGrid

喜夏-厌秋 提交于 2019-12-11 19:54:10
问题 I have the following Telerik RadGrid, which I'm using in C#: <MasterTableView Width="100%" EditMode= "InPlace" ClientDataKeyNames="menuID" CommandItemDisplay= "Top"> <Columns> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"></telerik:GridBoundColumn> <telerik:GridTemplateColumn UniqueName="Type" HeaderText="Type"> <ItemTemplate> <asp:TextBox ID="Type" Text='<%# DataBinder.Eval(Container.DataItem, "Type") %>' runat="server"></asp:TextBox> <

Telerik radgrid with Hierarchy doesn't run client javascript on OnHierarchyExpanding event

假如想象 提交于 2019-12-11 19:46:41
问题 I have a javascript, that I need to be run on expand link click <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> function RowExpanded(sender, eventArgs) { alert(123); } </script> </telerik:RadCodeBlock> I use HierarchyLoadMode="Conditional" for inner grid data load on my aspx page. <telerik:RadAjaxPanel runat="server"> <telerik:RadGrid ID="rgUsersInSessions" ShowStatusBar="true" OnNeedDataSource="OnNeedDataSourceForGrid" OnDetailTableDataBind=

Reordering Telerik Column after Grouping

柔情痞子 提交于 2019-12-11 19:10:10
问题 I am using a Telerik Grid to display data to the client. I have to show priority values first and then display non priority values. When the user group base on priority, the priority values should group first follow by the non priority group. I have a default descending grouping. When the user first access the page, it works fine. However, if the user remove the default grouping and try to group that column again, the non priority values are shown in the first group following by the priority

How to bind a telerik grid column to a child data object that is a list?

谁说我不能喝 提交于 2019-12-11 14:55:43
问题 I have a grid that binds a number of child data objects to columns with no issue, using the syntax defined at http://www.telerik.com/help/aspnet-ajax/grdbindingtosubobjects.html. What I can't figure out, however, is how to aggregate a child object that is a list or collection. For example, if I have a Customer object and I want to get the customer's first street address, I would use DataField="Customer.Addresses[0].Street" on a standard GridBoundColumn . How can I get the count of the

How do you read the chosen value from a RadComboBox?

烈酒焚心 提交于 2019-12-11 14:48:43
问题 Inside a RadGrid, I have a drop RadComboBox that is populated by a web service. I am using an EditItemTemplate nested inside a GridTemplateColumn to hold it, as shown: On the server side, how can I access the value chosen by the user from the RadComboBox? <telerik:GridTemplateColumn UniqueName="UserCol" HeaderText="proto user" DataField="UserID"> <EditItemTemplate> <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="false" CausesValidation="true" Width="240" MaxHeight="200px"

Accessing Telerik RadGrid edit mode from javascript

假装没事ソ 提交于 2019-12-11 08:21:50
问题 I invoke one function in javascript. When I call this function rad grid row is already in edit mode . In that function I get reference to RadGrid: var masterTable = $find("<%= RadGrid1.ClientID %>").get_masterTableView(); In edit mode I have edit item: I have a problem here to get/set value of txtName from this javascript function. I have tried: var item = masterTable.selectItem(masterTable.get_dataItems()[0].get_element()); var item = masterTable.selectItem('txtName'); var item = masterTable

asp.net MVC 4 Telerik Grid Ajax issue

て烟熏妆下的殇ゞ 提交于 2019-12-11 07:37:51
问题 i am facing an issue with mvc telerik grid there is my view : @(Html.Telerik().Grid(Model.EmployeeList) .Name("EmployeeGrid") .Columns(colums => { colums.Bound(e => e.First_Name); colums.Bound(e => e.Last_Name); colums.Bound(e => e.Hire_Date); colums.Bound(e => e.Home_Phone); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Home")) .Groupable() .Sortable() .Pageable(paging=>paging.PageSize(10)) .Filterable() ) and there is my controller code [AcceptVerbs(HttpVerbs