Completed
Last Updated: 20 Sep 2016 07:15 by David
David
Created on: 25 Jan 2016 14:05
Category: Grid
Type: Feature Request
1
RadGrid MasterTable OnCallingDataMethods
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.

4 comments
David
Posted on: 10 Jun 2016 15:00
Roger,

 then please update your documentation and ticket responses as I was directed via trouble ticket to use the OnInit method and pointed to the above forum link.
ADMIN
Vasil
Posted on: 10 Jun 2016 14:36
We just tested it again, and you don't need to handle the OnInit to attach the CallingDataMethods handler there. You can set the handler into the markup of both RadGrid and MasterTableView and it will work correct.
David
Posted on: 10 Jun 2016 12:04
Vasil,

 My apologies for not being clear.

Yes, OnCallingDataMethods is in the markup of the MasterTableView.  However, you then need to add an override to OnInit in the code behind that sets the MasterTableView calling data methods.

This request is to change the code so that you do not need to override OnInit to get the control to operate as listed in the markup.
ADMIN
Vasil
Posted on: 10 Jun 2016 11:51
OnCallingDataMethods is already presented into the MasterTableView, coming from the base DataBound control.