This is a migrated thread and some comments may be shown as answers.

Two columns with RadListView holding errors

2 Answers 106 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Rebecca Peltz
Top achievements
Rank 1
Rebecca Peltz asked on 29 Mar 2010, 07:17 PM
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 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 02 Apr 2010, 10:09 AM
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.
0
Rebecca Peltz
Top achievements
Rank 1
answered on 06 Apr 2010, 05:37 PM
Your demo provided exactly the java script I needed to fix my problem. Thanks!
Tags
ListView
Asked by
Rebecca Peltz
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Rebecca Peltz
Top achievements
Rank 1
Share this question
or