Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
308 views
Hi. I would really appreciate some guidance to show me how to read the state of a control property in a list. I have a simple list that has a user control within the item template.

I want to have a checkbox for each item so that the user can select one or more items. I can easily add the checkbox to the user control and provide code to get/set the checkbox (it is not linked to any datasource data but would be simply to enable the user to select items).

External to the listView I have a button. In the codebehind for the button I want to:

foreach (var i in myList.items) { }

to parse through the displayed items in the listView. My first question is will myList.items return the displayed items (after paging) or all of the items (ie if I have 100 items displayed as 10 pages of 10 items does myList.items return the displayed items or all 100 items - if it returns all is there a way to only get the displayed items in the current page).

within my foreach loop how can I reference the user control. I want to just read a property from the user control; ie. myItem.isChecked

Thanks


<telerik:RadListView ID="myList" runat="server" ItemPlaceholderID="PlaceHolder1"
    DataKeyNames="ListingId" ConvertEmptyStringToNull="False" AllowPaging="True"
    PageSize="15">
    <LayoutTemplate>
        <asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="rlvI">
            <uc:uListItem ID="myItem" runat="server" ListingId='<%# Eval("ListingId") %>' Title='<%# Eval("Title") %>'
                Description='<%# Eval("Description") %>' Owner='<%# Eval("Owner") %>' image='<%# Eval("ThumbImg") %>'
                Rating='<%# Eval("Rating") %>' Reviewers='<%# Eval("NoRate") %>' HasMail='<%# Eval("mail") %>' />
        </div>
    </ItemTemplate>
    <EmptyDataTemplate>
        <div>
            <div>
                There are no items to be displayed.</div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>

Paul
Top achievements
Rank 1
 answered on 28 Feb 2011
1 answer
89 views
Hello,

I take the default install, and have permanent crash with readonly db because they are in the system disk
I am running SQL 2008R2, could it be the reason ?

Database 'C:\PROGRAM FILES (X86)\TELERIK\RADCONTROLS FOR ASP.NET AJAX Q3 2010\LIVE DEMOS\APP_DATA\NORTHWIND.MDF' cannot be upgraded because it is read-only or has read-only files. Make the database or files writeable, and rerun recovery.
An attempt to attach an auto-named database for file C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX Q3 2010\Live Demos\App_Data\Northwind.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

What to do ?
I would appreciate not being forced to de/reinstall, why this read only attribute ?

Thanks
CS

Erjan Gavalji
Telerik team
 answered on 28 Feb 2011
1 answer
168 views
Is it possible to use CDN of Telerik if RadScriptManager is not used on page (regular asp Script Manager + RadAjaxManager are used instead)? I read in documentation CDN can be enabled globally via web.config, but is it gonna work in my case?
Simon
Telerik team
 answered on 28 Feb 2011
4 answers
128 views
As explained above, it does not close the Insert mode although it works like a charm in Edit mode. 
It inserts the data properly but then when Insert mode needs to be cleared it remains rather. Any ideas?
Thanks
El
Top achievements
Rank 1
 answered on 28 Feb 2011
7 answers
318 views
UPDATE: Fixed!  See my post about 5 message down...

I'm having a unique problem that I can't seem to resolve.  I have a project that contains the Q2 Rad Controls for AJAX, but I cannot add any of them to my web forms.  No one else on the team seems to have this problem.  They can just open a web form, double-click on a RadGrid, RadTextbox, RadTreeView, etc. and the controls appear on the page.  This doesn't work for me.

HOWEVER... and here's the thing that has me scratching my head... if I start any new projects, I can add the Rad Controls to the web forms just fine.  It's only on this one project.

Any ideas?  Thanks in advance.

Erjan Gavalji
Telerik team
 answered on 28 Feb 2011
1 answer
48 views
Hi,

We are using RAD controls in one of our application. In RAD Scenario form page AJAX modal extender stops working whereas it is working correctly in ASP.Net web page.
I also added two test pages, in RAD ASP.net Scenario page the ModalPopupExtender AJAX control does not work as expected.
Appreciate if anybody could tell me if we are doing anything wrong...
Erjan Gavalji
Telerik team
 answered on 28 Feb 2011
1 answer
76 views
Following on from this thread:
http://www.telerik.com/community/forums/aspnet-ajax/chart/chart-xaxis-datalabelscolumn-display-problem.aspx

There is another Bug Chart XAxis DataLabelsColumn in telerik reports, If you choose a field of type DataTime Type it also wont bind!

As it wouldnt bind to a field of datetime, the work around I found was to create a Calculated Field Called CompletedDateStr of DataType String, and add an expression to correctly format the date (to the correct locale) in the Telerik Report SQLDataSource.

ie add this to your SQL datasource
= Format("{0:d}", Fields.CompletedDate)
Evgenia
Telerik team
 answered on 28 Feb 2011
3 answers
58 views
I'm loading about 2000 child nodes under a single parent. It works fine with Firefox 3.6 and with Chrome 9, but IE 8 is incredibly slow... not only loading the child nodes, but after the child nodes are loaded the whole interface slows down and turns unresponsive.

I'm using Q1 2010. Any tips to solve this performance issue with IE 8? Should I try to upgrade to Q3 2010?

Thanks,
Santiago.
Dobromir
Telerik team
 answered on 28 Feb 2011
3 answers
584 views
Hi,
I am Yogesh. I am new to asp.net with c#. I am working with asp.net ajax rad controls.... I want display a rad message box. also for confirm and alert.
Could anyone help me to get through this plz.....
yogesh
Top achievements
Rank 1
 answered on 28 Feb 2011
3 answers
67 views
Hi there.

I have a RadComboBox in an EditItemTemplate in a radgrid with SelectedValue='<%# Bind("OrgClassification3") %>'. If the value of OrgClassification3 is empty or matches a value in the combo then everything works fine and I can edit the row and save changes. If the value of OrgClassification3 does not match any of the values in the combo the grid row will not even go into edit mode.

Please help. Thanks.
Nikolay Rusev
Telerik team
 answered on 28 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?