开发者

Silverlight: Telerik RadGridView CellEditTemplate fetching controls issue

I am new to the Silverlight. At the runtime i am assigning cellEditTemplate to the cell, now when user double click on perticuler cell then it opens that perticuler cell in edit mode. now while entering to the edit mode, I have to fetch the control from edittemplate and need to assign the value开发者_如何学Go. But I am not able to fetch that control from edit template.

And main question is that, I don't no where should I write down the code means on which event.

col.CellEditTemplate = App.Current.Resources["datatemplate2"] as DataTemplate; 

In the App.Xaml

<DataTemplate x:Name="datatemplate2">
        <TextBox  />            
</DataTemplate>

Can anyone please help me?

Thanks, Mahesh.


You need to bind the Text of the TextBox to the property of the underlying object as shown in the Telerik online demo: http://demos.telerik.com/silverlight/#GridView/CellEditTemplate

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜