开发者

Silverlight: Telerik RadGridView CellEditTemplate fetching controls issue

开发者 https://www.devze.com 2023-01-21 15:35 出处:网络
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 enter

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

精彩评论

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