This should improve performance in this situation when client side data-binding can be used.
Currently RadGrid supports strongly typed binding to a model and the use of OnCalling DataMethods, but requires additional non-documented code to get it to work correctly. See forum post at http://www.telerik.com/forums/model-binding-selectmethod-defined-in-a-business-object#jyvrnG4qhEOdaXv_pBVt8g for the code requirements. Request putting the ItemType and OnCallingDataMethods into the MasterTableView markup and eliminate the need to override the OnInit call. The markup would end up looking like: <MasterTableView DataKeyNames="intOfficeId" ItemType="Models.OfficeModel" OnCallingDataMethods="grdAssignments_CallingDataMethods" SelectMethod="GetOffice" UpdateMethod="UpdateOffice" DeleteMethod="DeleteOffice" > This would also pave the way to strongly bind the detail grid.
It makes no sense that the GridButtonColumn does not have the Single Click feature just like the RadButton. Why would the web users not be double-clicking this button as opposed to a stand-alone button? It is not even consistent - the button in a RadGrid's GridButtonColumn should be a RadButton.
Think it'd be great (and probably pretty easy to do) to have a property on each gridcolumn for ShowFilterTextbox (similar to ShowFilterIcon). Right now my workaround is to hide them during ItemCreated or in styling, but it becomes messy, quickly.
It would be convenient to be able to specify default values for SortAscImageURL and SortDescImageURL at a level above the individual column elements At present the SortAscImageURL and SortDescImageURL attributes appear in the GridBoundColumn element. This requires specifying them for each column definition. Often the UI will use the same icons for all sort-able columns. An obvious choice might be the <SortingSettings> element, as is done for the sorting tool tip and sorted background color.
It would be useful for the header cell for Sort-able columns to display an indication that the column can be sorted. This is useful to users when not all columns are sort-able, so they know which header cells will trigger resorting. Elsewhere in our application, we use a double headed arrow icon to indicate use can click on header to resort on the column; the app displays the up or down arrow indicating when sort order is active. Suggest adding a third Sort-Image-URL attribute to specify an image to use when column is not sorted ascending or descending. At present, best I can do declaratively (w/o custom coding) is the set one of the HeaderStyle-Font properties (for example the HeaderStyle-Font-Underline) to provide a visual indication that column is sort-able.
In RadGrid, we can use the ClientSettings.Scrolling.UseStaticHeaders property to have a fixed header when scrolling the grid. This requires a fixed height of the grid. However, what if we do not want a fixed height of the grid, but rather want the grid to flow down the page, using as much space as necessary do display its records. In such a scenario, the grid header will disappear when we scroll down the page. I have implemented a kind of fix for this in one of my projects. Instead of trying to explain how it works, I have prepared an example. You can find it here: http://www.ifag.no/RadGridHeader.aspx Maybe some of you can suggest even better solutions to the scenario I have described. Comments are welcome!
Allow the possibility of saving the batch edit changes either from the server or together with another postback. Currently saving can be done through a button with client-side code but only if the button has no postback. When something on the form will cause a postback (e.g. tab change, combo box selection) it would be nice to be able to automatically save batch edit changes in the client-side code for that control. Right now that code will have no effect because of the postback. When other changes have to be made at the same time as the batch edit changes, with code that is in the batcheditcommand event on the server, the event will not fire unless there were changes to the grid, so those other changes could be lost.
Current RadGrid (Q3 2015) does supports model binding of master/detail records. Request the functionality to set ItemType on the detail gridview and pass the master's datakey as the id for the detail select method. Or, alternatively, if the model has a virtual IQuerable binding, set the detail view's datasource to the models virtual entity For example, a model with a one to many relationship to the color options for a car: Model Cars() { string name int colorRange virtual colorOptionsModel colorOptions } Model colorOptionsModel { int colorRange string colorName; } In the RadGrid: <mastertable DataKeyName = "colorRange"> <DetailView datasource="Item.colorOptions">
Hello Sir As I was workimg on Print functionality of RadGrid data. While working on this functionality I found issue of "Print Preview" in chrome. Its working fine in IE and Firefox but in Chrome blank screen is coming with Print Preview Failed. While searching on it I found "RadGrid Not Printing in Chrome" Post on telerik developer forum, I have created Telerik account and also reply to this post. Sir can you please help me regarding this issue. I look forward to hearing from you. Regards
<
telerik:RadGrid
ID
=
"RadGrid2"
runat
=
"server"
RenderMode
=
"Lightweight"
AllowSorting
=
"true"
>
<
ExportSettings
>
<
Excel
Format
=
"Biff"
/>
</
ExportSettings
>
<
ClientSettings
>
<
ClientEvents
OnCommand
=
"onCommand"
/>
</
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"True"
CommandItemDisplay
=
"Top"
>
<
CommandItemSettings
ShowExportToExcelButton
=
"true"
/>
</
MasterTableView
>
</
telerik:RadGrid
>
Applies to all model-bound controls; Tree-list, etc.. Current data-annotation support includes validation. Please include handling of the following attributes - Display Name defaults for databound columns - Text boxes and labels width based on max-length - Display attributes - auto-generation of drop-downs for enum datatypes and foreign keys - readonly based on editable attribute
It would be very useful if the GridDropDownColumn had some way of accessing the database value of the control when not in edit mode. It is very roundabout to have to add more controls or hidden fields just to access data that was already pulled from the database. Some kind of function that could get the value which corresponds to the shown text would be exceptionally useful.
Between filtering is not working when RadGrid is bound to ClientDataSource. Trying to programmatically filter a date range will cause a JS exception.