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

setting of error message validation on gridview

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
cielo valdoz
Top achievements
Rank 1
cielo valdoz asked on 22 Feb 2012, 09:25 AM
Hi,

Is there a way on how to set the error message being displayed when validating data inside the gridview?
The datatype defined is in double so if the user entered string, the error message should be translated.
Kindly check the attached image.

<telerik:GridViewDataColumn  DataMemberBinding="{Binding QtyOrder, Mode=TwoWay}" DataFormatString="{}{0:0.00}"  Width="50" IsGroupable="False" TextAlignment="Right" UniqueName="QtyOrder" >
                                         <telerik:GridViewColumn.Header>
                                             <TextBlock  Text="{Binding Source={StaticResource DataContextProxy}, Path=DataSource.TextQtyOrder}" />
                                         </telerik:GridViewColumn.Header>
                                         </telerik:GridViewDataColumn>


Thanks,
Cielo

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 22 Feb 2012, 10:15 AM
Hello,

Check the following help documentation which explains the same.
Validation.

Thanks,
Princy.
0
cielo valdoz
Top achievements
Rank 1
answered on 22 Feb 2012, 10:23 AM
Hi,

Can i call radGridView_CellValidating even if i'm using MVVM? Not sure how to pass CommandParameter

 

 

 

<i:Interaction.Triggers>

 

 

 

 

    <i:EventTrigger EventName="CellValidating">

 

 

 

 

    <i:InvokeCommandAction Command="{Binding CellValidatingCommand}"></i:InvokeCommandAction>

 

 

 

 

</i:EventTrigger>

 

 

 

 

</i:Interaction.Triggers>

 

Tags
GridView
Asked by
cielo valdoz
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
cielo valdoz
Top achievements
Rank 1
Share this question
or