setting of error message validation on gridview

3 posts, 0 answers
  1. cielo valdoz
    cielo valdoz avatar
    33 posts
    Member since:
    Dec 2009

    Posted 22 Feb 2012 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Feb 2012 Link to this post

    Hello,

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

    Thanks,
    Princy.
  3. DevCraft banner
  4. cielo valdoz
    cielo valdoz avatar
    33 posts
    Member since:
    Dec 2009

    Posted 22 Feb 2012 Link to this post

    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>

     

Back to Top