Checkbox not getting checked

2 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 23 Mar 2015 Link to this post


    I am using        
     this.chkComplianceStatus.Text = "{Fields.COMPLIANCE_STATUS_CODE} - {Fields.COMPLIANCE_STATUS_DESC}";     
    this.chkComplianceStatus.Value = "= IIf(Fields.RANK_NUM = Parameters.al_rank_num.Value,True,False)";
    for the checkbox to be checked.But the checkbox is not getting checked, the above expression is always returning false

    FalseValue = "= False";
    TrueValue = "= True";
    Fields.RANK_NUM is of type Number
    Parameters.al_rank_num is of type integer

    I also tried this.chkComplianceStatus.Value = "= IIf(Fields.RANK_NUM.ToString() = Parameters.al_rank_num.Value.ToString(),True,False" +
        ")"; to make sure bothe types are same so that it will return true, still this is returning false. Can i convert integer type to string this way in the expression itself?

    I don't know where i am going wrong.Please let me know

    Thanks in advance

  2. Nasko
    Nasko avatar
    1077 posts

    Posted 25 Mar 2015 Link to this post

    Hello Gopinath,

    You can show the Fields.RANK_NUM and Parameters.al_rank_num.Value inside a text box somewhere in the report in order to check if they are returning equal values.
    In case the difference is only in the data type of the values you can convert the values to the same type inside an expression using the built-in Conversion Functions.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top