Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
244 views
Hi,
I am fairly new to Telerik controls ,I'm basically  trying to programmatically bind a RadGrid to  SharePoint SPDataSource control in a WebPart but after doing so the grid shows SPDataSource's properties such as "UseInternalName" instead of it contents, I don't have the code at the time but it looks something like this:

SPDataSource spdc =new SPDataSource();
spdc.DataSourceMode = SPDataSourceMode.List;
SPList list1=...
spdc.list=list1;
radGrid grid1=new radGrid();
grid1.DataSource =spdc;
// for columns I tried both generate automatically
//option and adding a field for "Title" for example
grid1.databind();



So my main question is :
Does RadGrid support SPDataSource? and if yes what am I doing wrong? If not ,are there any alternate ways of doing this?what are my options?

Thanks in Advance
baha2r
Top achievements
Rank 1
 answered on 11 May 2009
1 answer
129 views
Hi!

This is my problem:

I have a Grid with a User Control for editing and it works fine. However, i cannot get client-side validation to work.

In the User Control i have a couple of validators (Regular Expression, Required Field...) and a button with CommandName="Update". However, when the button is pressed a postback occurs even if the input is incorrect. With correct ValidationGroups, the validators will display after the postback.

The problem is that the validators should trigger client-side, as normal. What am i missing since the grid postbacks?
Iana Tsolova
Telerik team
 answered on 11 May 2009
3 answers
92 views
Hello,

This is probably embarrassingly simple, but I haven't been able to work it out... I've got some data that look like this:

Group        ItemID        ParentID
Things         1                0
Things         2                0          
Things         3                2
Stuff             4                0
Stuff             5                4

I get that I can put it in a treeview using the standard binding properties with itemID and parentID... but I want to have the group as the first level thing.

I've done this in code using a big/silly/messy procedure, and that works, but it's slower than I'd like, and it sometimes times out when the treeview is rendering.

So yeah - is it possible to create the 3 levels with that kind of data?

Thanks,

Mike

Veselin Vasilev
Telerik team
 answered on 11 May 2009
1 answer
173 views
Hi,

I have a Grid which is immediately editable on page load so the user does not need to click the "edit" button to start editing.

When the user has completed editing the row, I am planning on saving the row data to the database.

As the user may be editing other rows in the Grid, I do not want to refresh and rebind the Grid when the row is successfully saved to the database, but I would still like to indicate to the user somehow that the save was successful (or that the save was unsuccessful)

Is it possible to catch the successful save of the row and handle it using javascript?  I'd like to put a flag or a tick next to the row without having to refresh and rebind the Grid.  Is this possible?
Sebastian
Telerik team
 answered on 11 May 2009
3 answers
164 views
I have a page with rad editor. The content of the editor is collected on post back and persisted in database.
Now I copy a very large and formatted document (including tables, font colors, etc.) from MS-Word. On pasting it in rad editor, an alert prompts to remove word formatting. On accepting the prompt the content is pasted in the editor. Now on clicking a button, an alert comes with the following message:-  "Error while executing filter XHTML - [object error]"

Please advice what invokes this alert and it can be avoided. I am viweing in IE 6.
Rumen
Telerik team
 answered on 11 May 2009
1 answer
63 views
Hello,

I have a RadGrid on my page.
The databinding to the grid is dynamic: the dataset that we bind is dynamic and the columns change every time.
When I allow the filtering, the filter is working only for the string typed columns.
For date/number columns, I am getting the exception:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
I saw threads about this issue but didn't understand if there is a solution or it's just a known bug.
This feature of the Rad Grid was one of the reasons for buying the controls, so I hope we will see it working.

Here is the declaration of my grid:
<telerik:RadGrid ID="gridReviews" runat="server" Skin="WebBlue"
            AllowFilteringByColumn="True" AllowSorting="True">
            <HeaderContextMenu>
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </HeaderContextMenu>

            <MasterTableView>
            <RowIndicatorColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>

            <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            </MasterTableView>

            <ClientSettings AllowColumnHide="True" AllowColumnsReorder="True">
                <Scrolling AllowScroll="True" ScrollHeight="600px" UseStaticHeaders="True" />
                <Resizing AllowColumnResize="True" />
            </ClientSettings>

            <FilterMenu>
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
            </FilterMenu>
        </telerik:RadGrid>



Sebastian
Telerik team
 answered on 11 May 2009
1 answer
105 views
Hi,

I am using the telerik radscheduler, it is working very fine and i am a happy user of it.
In fact i want to enhance some functionality for this control. I want that when user click on an appointment the edit appointment form to open in a popup window. how i can do that. I neeed all that recurring options.

I have configured this successfully also with resource types.

Genady Sergeev
Telerik team
 answered on 11 May 2009
3 answers
112 views
Hi. I've got a TabStrip inside a MasterPage (not in the MasterPage iteself but the Default.aspx page that uses the MasterPage). I've followed the example for load on demand but can't seem to get it working. The first tab content appears okay but the subsequent tabs contents are just blank. The pages contain RadGrids and when I click on the tabs the second time the headings appear but no data (except first one).

Thanks.
Paul
Telerik team
 answered on 11 May 2009
1 answer
76 views
Please can someone tell me how to group a GridDropDownColumn and show the ListTextField value instead of the DataField value in the grouping text.
Iana Tsolova
Telerik team
 answered on 11 May 2009
2 answers
63 views
Hi,
Calling getWindowBounds() in OnClientDragEnd returns old window position. I do not believe this is valid behavior unless there is another way to get the new position?

How can I get new position?

Thank you.
Maxim
Top achievements
Rank 1
 answered on 11 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?