Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
126 views
Howdy,

Something that has bothered me for a long time about how I've worked with grids (Telerik and non-Telerik alike) is when I have to specify things like DataKeyNames. I HATE how I essentially have them specified, MULTIPLE TIMES (both in the aspx and in the .cs when accessing them), with a hand-typed string. Obviously in the code behind I can put this string into a constant and access it that way. A better idea would be to use that same constant in the aspx file as well. Unfortunately, I can't seem to get that to work.

My ideal implementation would be readonly static KeyValuePair<string, string> objects where the key is the UniqueName and the value is the DataField. However, the DataKeyNames property will not take these as best as I can tell. Also, once I get THAT working, I'd also want to use this same technique when configuring my columns. I'm trying it as such:

DataKeyNames='<%=GridColumnID.Key%>, <%=GridColumnQty.Key%>, <%=GridColumnMax.Key%>' 

What is a way for me to do this such that these "magic strings" are only defined once in my constants section rather than being copied/pasted multiple times?

Mucho thanks!!
-Shane
Iana Tsolova
Telerik team
 answered on 04 Feb 2010
1 answer
122 views
Hi,
how to set ColumnEditorID for columns in radgrid from c# code? Which event?
Thanks.
Princy
Top achievements
Rank 2
 answered on 04 Feb 2010
1 answer
113 views
I have a RadAjaxManger in an aspx page,  after a Submit button click event, the Internet Explorer Progress Bar still shows that the page is loading, everything works fine but that IE Progress Bar does not stop until I click on any other tab or link on the page. Am I doing anything wrong with the Ajax setting?

Thanks
Veli
Telerik team
 answered on 04 Feb 2010
1 answer
183 views
Radgrid with custom filtering on it.  When the item_command function is fired I grab the Command argument and load some data into a session variable.  Once I leave the scope of this function the Session variable is null.  Remove the ajax part and it works correctly. This current issue has halted all production work. please advise.
Yavor
Telerik team
 answered on 04 Feb 2010
3 answers
107 views
The MVC demos page has all these control .css files coming down as .min versions, but our CDN has the full bloaty ones...why is that?
Rosen
Telerik team
 answered on 04 Feb 2010
1 answer
90 views
Hi, All

I have some problem when I clicked some item in contextMenu.
I want to put some text in textbox.

C# Code

protected void treeView_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
    {        
        RadTreeNode clickedNode = e.Node;

        switch (e.MenuItem.Value)
        {
            case "Add":
                textbox1.Text = clickedNode.Text;
               
                break;
            case "Edit":

                clickedNode.Text = textbox1.Text;
                break;
            case "Delete":
                clickedNode.Remove();
                break;
        }
    }

"Edit" case is working well
but "Add" case is not working 

I wanna some advice
thank you



Yoon-Ho Choi
Top achievements
Rank 1
 answered on 04 Feb 2010
3 answers
106 views

Hi all,

I couldn't think of a better wording for the post, so I'll try to explain a little better.  Simply put, when displaying a RadWindow, whose contents contains a splitter that scrolls content, and that content includes a RadListBox, we're seeing that, instead of the RadListBox staying in its original position, the RadListBox will scroll along.  I believe through my debugging, I've more or less ruled out it being an issue that is restricted to our application.  If the behavior cannot be easily reproduced, I can provide an example.

This looks to be tied to IE7 vs IE8.  In IE8, the positioning is fine.  However, in compatibility mode and/or normal IE7, this behavior occurs.  Also, occurs with both the SP1 and SP2 Q3 2009 releases.

Thanks a lot,
Adam.g
Georgi Tunev
Telerik team
 answered on 04 Feb 2010
1 answer
95 views
Hi there, I need to configure a grid that has three columns (User, Date, Notes).

I need the User and Date columns to display in the row as normal, but I need the Notes to display underneath the User and Date. Here is a crude drawing of what I need:

-----------------------------------------------------------------------------
| User                                                | Date                             |
-----------------------------------------------------------------------------
| The notes go here in this space.                                           |
|                                                                                               |
|                                                                                               |
-----------------------------------------------------------------------------
| User                                                | Date                             |
-----------------------------------------------------------------------------
| The notes go here in this space.                                           |
|                                                                                               |
|                                                                                               |
-----------------------------------------------------------------------------
etc...

Does this make sense? I am new to Telerik (in the trial) and have no idea of how to go about this, or even if it is possible.

Can someone help me?

Cheers!
Shinu
Top achievements
Rank 2
 answered on 04 Feb 2010
2 answers
196 views
Hi all,

  I create a default grouping in a grid and don't want the user to remove that grouping, but they can still add another grouping after the default grouping. Is there any method that can prevent the user to remove the default grouping?

  Thx.
Cloud
Top achievements
Rank 1
 answered on 04 Feb 2010
2 answers
157 views
Just i am placing rad controls in design. i got this error... but its functionality is working....
(using Rad controls for asp.net ajax Q3 2009) .i copied all dll in my bin folder & toolbox.
i missed anything ?...thx. in advance...
priya nallaperumal
Top achievements
Rank 1
 answered on 04 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?