Data binding: FluidContentControl

3 posts, 0 answers
  1. Deepak Shakya
    Deepak Shakya avatar
    119 posts
    Member since:
    Aug 2007

    Posted 01 Dec 2010 Link to this post



    1. I have a data class. I create an instance of the class and populate the properties.
    2. I have a UserControl with telerik controls. e.g RadMaskedTextboxes.
    3. I create few instances of this usercontrol and in the process data bind the radmaskedtextbox to one of the properties in data class.
    4. The usercontrol is assigned to the LargeContent of the Fluidcontentcontrol
    5. Also, the maskedText of one of the controls within the usercontrol is used in the stackpanel, which in turn is assigned to Smallcontent
    6. Run.
    7. I can see that the data binding has worked and hence I can see the MaskedText in SmallContent
    8. But I cannot see anything in the MaskedTextBox. (This is the same control whose text I can see in small content)
    9. When I double click to change the small content to large content, even the value in the smallcontent dissappears or say, changes to zero.


    1. What am i doing wrong?
    2. What is the right way to achieve this?

    Thanking you in advance.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 06 Dec 2010 Link to this post

    Hello Deepak Shakya,

    I am not sure whether I understand your scenario correctly. Can you please have a look at the attached sample project and let me know if this is close to what you have in mind and if it works for you.

    Best wishes,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. Deepak Shakya
    Deepak Shakya avatar
    119 posts
    Member since:
    Aug 2007

    Posted 06 Dec 2010 Link to this post

    Hi Tina,

    Thank you so much for sending in the solution. It help me re-structure my code and understand the use of binding and resources better. I found out that I still had the binding value of zero in the "Loaded" event. Hence, I was still getting zero value instead of the value that I binded using the data class.

    I am also using the "TilesStateChanged" event rather than the Converter. Will this be a problem?

    Thank you once again for the great support and solution.

Back to Top