RadgridView in Edit Mode and Add New Mode

6 posts, 0 answers
  1. Ravi
    Ravi avatar
    104 posts
    Member since:
    Oct 2012

    Posted 19 Apr 2011 Link to this post

    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
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Ravi
    Ravi avatar
    104 posts
    Member since:
    Oct 2012

    Posted 20 Apr 2011 Link to this post

    Can you please give me an example how to do it.

    Thanks,
    Shiras
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 20 Apr 2011 Link to this post

    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
  6. Ravi
    Ravi avatar
    104 posts
    Member since:
    Oct 2012

    Posted 25 Apr 2011 Link to this post

    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>
  7. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Apr 2011 Link to this post

    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
Back to Top
DevCraft banner