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

TextBoa with aggregate function in gridViewCell

3 Answers 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bhavin
Top achievements
Rank 1
Bhavin asked on 01 Oct 2009, 04:30 PM
I am trying to show textbox in grid cell performing aggregate function.
These underneath Xaml show textboxes but while editing  value in textbox,textbox disappear on double-click and when done with editing it re-appear again.and aggregate functions seem to work sometime.

Please help me..hoe to achieve textboxes in a gridcell with aggrgate functionality for that datacolumn

  <telerik:GridViewDataColumn Header="Term Leased"  ToolTip="Term Leased" HeaderTextAlignment="Center" DataMemberBinding="{Binding TERM_LEASED}" IsReadOnly="False"  >
  <telerik:GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBox HorizontalAlignment="Center" VerticalAlignment="Top" Width="40" x:Name="TxtTermLeased" Margin="5,0" Text="{Binding TERM_LEASED}" >

                                            </TextBox>
                                        </DataTemplate>
                                    </telerik:GridViewColumn.CellTemplate>
                                    <telerik:GridViewDataColumn.AggregateFunctions>
                                        <telerik:SumFunction Caption="Term Leased: "  SourceField="TERM_LEASED" />
                                    </telerik:GridViewDataColumn.AggregateFunctions>
                                </telerik:GridViewDataColumn>

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Oct 2009, 05:47 AM
Hi bhavin patel,

If you want to can set IsReadOnly to True for this column and the TextBox will not disappear or you can define desired CellEditTemplate.

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Bhavin
Top achievements
Rank 1
answered on 04 Oct 2009, 07:24 PM
Can u provide me with an cellEdittemplate example/sample??
0
Vlad
Telerik team
answered on 05 Oct 2009, 06:13 AM
Hi bhavin patel,

I strongly suggest you to check our online demos:
http://demos.telerik.com/silverlight/#GridView/CellEditTemplate

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Bhavin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Bhavin
Top achievements
Rank 1
Share this question
or