This is a migrated thread and some comments may be shown as answers.

RadgridView in Edit Mode and Add New Mode

5 Answers 120 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 19 Apr 2011, 06:05 PM
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

CellEditTemplateSelector


Thanks,
Shiras

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Apr 2011, 06:33 AM
Hello,

 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
0
Vlad
Telerik team
answered on 20 Apr 2011, 02:04 PM
Hello,

 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.
<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
Vanya Pavlova
Telerik team
answered on 25 Apr 2011, 01:14 PM
Hi David,

 

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.


Best wishes,
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
Tags
GridView
Asked by
Ravi
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ravi
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or