This question is locked. New answers and comments are not allowed.
Hi,
I have a grid with 4 columns, I have ShowInsert = True, After the grid is populated If i double click on any row, the first column should be NON-Editable and should remain as TextBlock. and If the user clicks on the Add new button , the new row should have the first column editable. how do I achieve this functionality.
Please let me know if I can do anything with
Thanks,
Shiras
I have a grid with 4 columns, I have ShowInsert = True, After the grid is populated If i double click on any row, the first column should be NON-Editable and should remain as TextBlock. and If the user clicks on the Add new button , the new row should have the first column editable. how do I achieve this functionality.
Please let me know if I can do anything with
CellEditTemplateSelector
Thanks,
Shiras
5 Answers, 1 is accepted
0
Hello,
Vlad
the Telerik team
Indeed you can return different template depending on your value.
Greetings,Vlad
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Ravi
Top achievements
Rank 1
answered on 20 Apr 2011, 02:01 PM
Can you please give me an example how to do it.
Thanks,
Shiras
Thanks,
Shiras
0
Hello,
Vlad
the Telerik team
The example of CellEditTemplateSelector can be found here.
Best wishes,Vlad
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0

Ravi
Top achievements
Rank 1
answered on 25 Apr 2011, 12:57 PM
Hi
Thanks for your update, I looked at the sample you mentioned. I was unable to find the Examples namespace code. please provide a sample application.
Code for ConditionalDataTemplateSelector, appreciate if you could send a sample application.
Thanks for your update, I looked at the sample you mentioned. I was unable to find the Examples namespace code. please provide a sample application.
Code for ConditionalDataTemplateSelector, appreciate if you could send a sample application.
<
Examples:ConditionalDataTemplateSelector
x:Key
=
"selector"
ConditionConverter
=
"{StaticResource converter}"
>
<
Examples:ConditionalDataTemplateSelector.Rules
>
<
Examples:ConditionalDataTemplateRule
DataTemplate
=
"{StaticResource HighUnitPriceTemplate}"
>
<
Examples:ConditionalDataTemplateRule.Value
>
<
sys:Boolean
>True</
sys:Boolean
>
</
Examples:ConditionalDataTemplateRule.Value
>
</
Examples:ConditionalDataTemplateRule
>
<
Examples:ConditionalDataTemplateRule
DataTemplate
=
"{StaticResource LowUnitPriceTemplate}"
>
<
Examples:ConditionalDataTemplateRule.Value
>
<
sys:Boolean
>False</
sys:Boolean
>
</
Examples:ConditionalDataTemplateRule.Value
>
</
Examples:ConditionalDataTemplateRule
>
</
Examples:ConditionalDataTemplateSelector.Rules
>
</
Examples:ConditionalDataTemplateSelector
>
0
Hi David,
Vanya Pavlova
the Telerik team
Please download our demos to check this. The template selector is not in the demo folder and that is why our code viewer cannot display it.
Vanya Pavlova
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items