Binding Column in RadGridView

6 posts, 0 answers
  1. Roger
    Roger avatar
    16 posts
    Member since:
    Apr 2011

    Posted 01 May 2012 Link to this post

    In my case, I want to use/bind AutoCompleteBox and RadDatePicker in my RadGridView Column?

    How would I do it?
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 02 May 2012 Link to this post

    Hello Roger,

    You can define CellEditTemplate/ CellTemplate for the column as illustrated in our online documentation.
     

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Roger
    Roger avatar
    16 posts
    Member since:
    Apr 2011

    Posted 02 May 2012 Link to this post

    Thanks..


    I have one last question regarding RadGridView.

    How will I access the AutoCompleteBox for my binding from the database?

    And It seems that after I have edited the cell for my input will not reflect in the row... it goes to blank again.

    My inputs will not reflect in the radgridview and it goes to blank again. how would i fix it?

    <telerik:RadGridView  Name="promotionsGrid">
                                    <telerik:RadGridView.Columns>
                                        <telerik:GridViewDataColumn Header="Designation" HeaderTextAlignment="Center" x:Name="Designation">
                                            <telerik:GridViewDataColumn.CellEditTemplate>
                                                <DataTemplate>
                                                    <sdk:AutoCompleteBox ItemsSource="{Binding}" ValueMemberBinding="{Binding Name}" FontSize="12">
                                                        <sdk:AutoCompleteBox.ItemTemplate>
                                                            <DataTemplate>
                                                                <TextBlock Text="{Binding Name}" />
                                                            </DataTemplate>
                                                        </sdk:AutoCompleteBox.ItemTemplate>
                                                    </sdk:AutoCompleteBox>
                                                </DataTemplate>
                                            </telerik:GridViewDataColumn.CellEditTemplate>
                                        </telerik:GridViewDataColumn>
    </telerik:RadGridView>
  5. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 02 May 2012 Link to this post

    Hello Roger ,

    You should use two way binding in order to have the changes reflected back.

    Greetings,
    Pavel Pavlov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Roger
    Roger avatar
    16 posts
    Member since:
    Apr 2011

    Posted 02 May 2012 Link to this post

    How would I do it?
  7. naurah
    naurah avatar
    2 posts
    Member since:
    Mar 2011

    Posted 05 Feb 2014 Link to this post

    I also had the same problem.. huhu..
Back to Top
DevCraft banner