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

List to grid

3 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 26 Jan 2011, 03:28 PM

Hi

I'm new to both sitefinity and radgrid.

How can I assign the list returned by this fluent api code;

App.WorkWith().Documents().Where(d => d.Status == 
Telerik.Sitefinity.GenericContent.Model.ContentLifecycleStatus.Live).Get().ToList();

to a grid such that first column of the grid displays retuned documents’ titles and second column is a column of buttons such that when a button is pressed it will open the relevant document in a radwindow for viewing?

Many thanks for the help.

Regards

3 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 31 Jan 2011, 05:33 PM
Hi John,

It is not possible to open the document in a RadWindow since each file type has a program that takes care of handling it and, therefore, it is that program that should open the file. However, I believe, what you need is the GridAttachmentColumn:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/gridattachmentcolumn/defaultcs.aspx

Furthermore, I'd recommend that you look at our online example of RadGrid, especially those pertaining to data-binding, i.e. populating the control with data.

Hope it helps.

All the best,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
John
Top achievements
Rank 1
answered on 31 Jan 2011, 06:48 PM

Hi Tsvetoslav

Is there a way to view html content in RadWinodw either directly or via another control and can a scroll bar be added to scroll the content such that when user scrolls to the bottom an event is fired??

Many Thanks

Regards


0
Tsvetoslav
Telerik team
answered on 04 Feb 2011, 12:29 PM
Hello John,

You can incorporate any control into a separate page, show that in RadWindow and use the control to display the html - there should be no problem with that.

As for the scrolling requirement - there is no out-of-the-box api that can achieve that, you need to attach an event handler to the onscroll event of the window client-side object and check the scrollTop property to determine if the scroll bar has reached the bottom.

Hope it helps.

Regards,
Tsvetoslav
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
John
Top achievements
Rank 1
Share this question
or