Two columns with RadListView holding errors

3 posts, 0 answers
  1. Rebecca Peltz
    Rebecca Peltz avatar
    22 posts
    Member since:
    Dec 2009

    Posted 29 Mar 2010 Link to this post

    I'm attaching a picture of my page.  It renders two columns with similar functionality.  When there is an error saving a list gets generated for each column.  Each column represents data that is to be saved separately.

    I want my columns to grow together, so that if there is an error on one side the other side grows with empty space.  In my picture you can see that the column with no error is shorter than the column with error.

    Is there a way for me to dummy up the list created by the rad list view so that is is the same height for both list views regardless of content?

    Current rendering for column  with error:
     <ul class="errorList"
                     
                <li> 
                    According to business rules, Assignment date must be between 9/1/2010 and 9/20/2010 
                </li> 
             
     </ul> 
     

    Current rendering for column without error:
    <ul class="errorList"
                     
                </ul> 
     

    specification for RadListView after the gridview pretty much the same for both:
     
    <br /> 
        <telerik:RadListView ID="RadListViewErrorNY" runat="server" ItemPlaceholderID="ErrorHolder"
            <LayoutTemplate> 
                <ul class="errorList"
                    <asp:Panel Width="150px" ID="ErrorHolder" runat="server" /> 
                </ul> 
            </LayoutTemplate> 
            <ItemTemplate> 
                <li> 
                    <%#Eval("Description") %> 
                </li> 
            </ItemTemplate> 
        </telerik:RadListView 

    If an error is found on post back a list is bound to the control:
     if (assignmentEdit != null) 
                { 
                    radListView.DataSource = assignmentEdit.BrokenRulesCollection; 
                     
                } 

    I really don't want to dummy up a brokenrules collection.  I'd like to be able to grab hold of the RadListview and set it's size.  Is this possible?

    Thanks for any help with this!
  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 02 Apr 2010 Link to this post

    Hello Rebecca,

    Please try the attached sample project. I hope it looks and behaves as your real project.

    Best regards,
    Daniel
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rebecca Peltz
    Rebecca Peltz avatar
    22 posts
    Member since:
    Dec 2009

    Posted 06 Apr 2010 Link to this post

    Your demo provided exactly the java script I needed to fix my problem. Thanks!
Back to Top