Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
154 views

Hello,

I am using the Client event 'OnRowSelected' of a RadGrid

I can read the value of a key on client-side using :

function Grid1_Select(sender, eventArgs) {

    alert(eventArgs.getDataKeyValue('Param1'));

}

But is there a way to set a new value for this Param1 on client-side?

Regards,

frank Quinty

 

Iana Tsolova
Telerik team
 answered on 11 Nov 2008
1 answer
87 views
i have downloaded the trial version and implementing controls as  my requirement and mostly all reqmts ofmy project are fulfilled but only thing is remaining that where is editing form content i am not at all getting it.

where should i find controls which are used for editing so that i can put my controls instead of them.


Thankx,
jaspreet

Daniel
Telerik team
 answered on 11 Nov 2008
0 answers
88 views
While trying to use your new treeview tool tip feature i could not display the linked control file on tool tip instead only the loading icon can be seen without anything happening.Please advise about the possible cause / solution.
Usman
Top achievements
Rank 1
 asked on 11 Nov 2008
5 answers
264 views
Because I use a tabstrip I have alot of radControls on my page. This slows down the perfomance extremly, especialy on slower machines. It seems to be the overhead each server controls added client side.

Because of that I had the idea to use a separate aspx page for each tab. Now the question is can I accomplish this the the radTabstrip with build in functionality (I see a PostPackUrl property but its only for whole tabstrip and not for each tab available) oder what is required to do that?
Missing User
 answered on 11 Nov 2008
3 answers
101 views
Hi,

I heard that there is a limitation with Rad Grid grouping when the header text of the column bound to the grid has a white space in it. For Eg: If the header text of a particular column is "Company Name", then on dragging the column header to perform grouping, an error was thrown. Reason is, it is grouping the column with name "Company" instead of  "Company Name".
I raised a forum earlier also regarding the same. I got reply that this was the limitation with Rad Grid and will be solved soon.
Was this problem solved in any of the latest release for Rad Controls?

Thanks,
Nataraj 
Vlad
Telerik team
 answered on 11 Nov 2008
3 answers
458 views
HI,

I have a datagrid that is using a custom user control for insert/edit. When the user clicks 'edit' on a row I want to pass the Id datakey into my user control so that I can use it to do a db lookup. I'm sure it can be done but can't figure out how. Can anyone provide me with a solution?

Thanks!
Princy
Top achievements
Rank 2
 answered on 11 Nov 2008
1 answer
118 views
I have a RadCalendar Control in one of my columns and the EditMode set to "InPlace".

On the CommandItemTemplate when the "InitInsert" event fires, javascript returns an error:

Line: 6
Char: 62099
Error: Sys.WebForms.PageRequestManagerServerErrorException: Specified Cast Not Valid.
Code: 0

If I remove the Calendar, the Init fires fine.

Any ideas?
Thanks,
Joshua
Vlad
Telerik team
 answered on 11 Nov 2008
1 answer
263 views
Anyone using this event?

I saw it from an example at
http://www.telerik.com/community/code-library/aspnet-ajax/grid/adding-custom-column-dynamically.aspx
For adding columns dynamically.

I need to provide editing for a PivotTable-like data structure.
I will have varying columns and rows, and I wanted to provide a grid full of textboxes for the user to do mass edit.
I'll iterate through the rows and columns to do a save on a button click.

The problem is, in my grid, the debugger never hits on the ColumnCreating event.
It will only hit on the ColumnCreated event.

here is the grid definition.
                                        <telerik:RadGrid ID="gridEvil" runat="server" GridLines="None" OnColumnCreating="gridEvil_ColumnCreating">  
                                            <MasterTableView> 
                                                <RowIndicatorColumn> 
                                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                                </RowIndicatorColumn> 
                                                <ExpandCollapseColumn> 
                                                    <HeaderStyle Width="20px"></HeaderStyle> 
                                                </ExpandCollapseColumn> 
                                            </MasterTableView> 
                                            <FilterMenu EnableTheming="True">  
                                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                                            </FilterMenu> 
                                        </telerik:RadGrid> 
 
It's pretty basic.  Please note that I get the same result with or without the OnColumnCreating="gridEvil_ColumnCreating" in the declaration

It also does not matter if I define the signature of the sub with or without  Handles gridEvil.ColumnCreating

Do I have to do something special to get this event to fire?
Vlad
Telerik team
 answered on 11 Nov 2008
3 answers
145 views
Hi,

The DetailTableBind is very slow..Actually we are using Dynamic databinding for a hierachial RadGrid.
The Hierarchy levels are dynamically created.

Whne i try to click the Plus sign it takes some time to display the child records.We chedk by loading just 2 records to even several thousand records..Both takes the same amount of time to open the child tables.

Any suggesstions on improving the performance of the RadGrid

Thanks
Bala
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2008
1 answer
88 views
I'm using Telerik RadControls for ASP.NET AJAX 2008 Q2 and ASP.net 3.5.

I use a GridButtonColumn to do something on call back to server and it works just fine. The problem arises when I try to do something on the client side when I click the ButtonColumn. After adding the the client side handler, e.Item.ItemIndex will always be set to zero on the server. It only occurs when the CommandName is "View", but "RowClick" works as expected. The problem does not depend on what the client side handler does and an empty client side handler also causes this effect.

Am I doing anything wrong or is there a workaround?

The grid:
                            <telerik:RadGrid ID="GridMessages" runat="server" OnItemCommand="GridMessages_ItemCommand"
                                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ID"
                                    <Columns> ...
                                        <telerik:GridButtonColumn CommandName="View" ImageUrl="Images/view.gif" ButtonType="ImageButton" 
                                            DataTextField="ID" UniqueName="view"
                                            <HeaderStyle Width="16px" /> 
                                        </telerik:GridButtonColumn> 
                                    </Columns> 
                                </MasterTableView> 
                                <ClientSettings EnablePostBackOnRowClick="true"
                                    <ClientEvents OnCommand="GridMessages_Command" /> 
                                    <Selecting AllowRowSelect="True" /> 
                                </ClientSettings> 
                            </telerik:RadGrid> 

The server side code:
    protected void GridMessages_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (!(e.Item is GridDataItem)) 
            return
 
        e.Item.Selected = true
        var id = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"].ToString(); 
 
        // ... 
        // Load the selected message from database 
 
        switch (e.CommandName) 
        { 
            case "RowClick"
                // Preview the message
                break
            case "View"
                // Open message in a new tab
                break
        } 

The client side code:
    function GridMessages_Command(sender, args) 
    { 
        // Sets the selected page view of a multipage 
    } 
 

Thanks,
Ilia


Nikolay Rusev
Telerik team
 answered on 11 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?