Adjust TextBox Location to Fill White Space

3 posts, 1 answers
  1. Phil
    Phil avatar
    47 posts
    Member since:
    Mar 2015

    Posted 02 Mar 2018 Link to this post

    I have 4 textboxes that correspond to a multi-select dropdown parameter.  The space for the textboxes is a set width on my report.  Depending on which options you choose from the parameter dropdown, the other textboxes visibility will toggle on and off.  I have also set the width of the text boxes to change depending on how many are selected (if 2 options are selected, each is 1/2 of the given space.  If 3 are selected, each will be 1/3 of the space.

    My problem now is I need to set the location of the textboxes depending on what is chosen.  If the first and third text box are shown and the second and fourth are hidden, the first and third will each be half of the space.  BUT I would need the third box to scoot over against the first.  Now, it stays at its original location and creates whitespace, causing the 3rd box to go onto a second page.

    box1 box2 box3 box4


    Is there a way to make box 3 move to the left up against box1 if box 2 is hidden?




  2. Phil
    Phil avatar
    47 posts
    Member since:
    Mar 2015

    Posted 18 Apr 2018 Link to this post

    Any news??  

    Maybe if I could access the selected values within my multi-valued parameter at run time it would help.  

    if report.ReportParameters["FactorLeaders"].Value.Contains(1)

      { true };


      { false };

    I need something like this... where I can check which values the user has selected and move/hide certain textboxes...

    Is this doable?  How to I access the values of the mulivalued parameter?  what if more than one value is selected?





  3. Answer
    Katia avatar
    760 posts

    Posted 23 Apr 2018 Link to this post

    Hi Phillip,

    Positions of report items will change when some of the items are hidden based on the rules described in

    In case there are items under/above the TextBoxes, the renderer will maintain the vertical space between those items and textBox3 which will prevent textBox3 from moving to the left.

    Solution can be to place all textBoxes inside a Panel item. This way the items that are under/below will not affect the position of the items inside the panel.

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top