Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
265 views



Hello Telerik :

I am using  a radgrid   and i have a column  of the type : GridClientDeleteColumn . Well when the user click this column  i want to play with the event OnItemCommand . Well when i click that column nothing happens , just this row dissapears , and the event isn't fired. I am using the same struture in other places and it's working, but not here.

But when i sort o change the page  this method is fired, but not when  i click in that column
Do you know what is wrong ?

I show you my code:

<
telerik:RadGrid

ID="_rggroupproducts"

runat="server"

AllowPaging="True"

AutoGenerateColumns="False"

AllowSorting="true"

Width="350px"

GridLines="None"

OnPageIndexChanged="RgGroupProducts_PageIndexChanged1"

OnSortCommand="RgGroupProducts_SortCommand"

OnItemCommand="RgGroupProducts_OnItemCommand"

EnableEmbeddedSkins="false" >

<FooterStyle Height="200px" />

<ClientSettings >

<Selecting AllowRowSelect="true" />

</ClientSettings>

<MasterTableView

DataKeyNames="ProductID"

PageSize="20" >

<SortExpressions>

<telerik:GridSortExpression FieldName="ProductID" SortOrder="Ascending" />

</SortExpressions>

<PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="5" PrevPageImageUrl= "../Web20/Grid/PagingPrev.gif" NextPageImageUrl="../Web20/Grid/PagingNext.gif"

Wrap="False" HorizontalAlign="Left" />

<Columns>

<telerik:GridBoundColumn DataField="ProductID" HeaderText="ID" ReadOnly="True" SortExpression="ProductID"

UniqueName="ProductID" >

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Description" HeaderText="Description" ReadOnly="True" SortExpression="Description"

UniqueName="Description2" >

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="BasePrice" HeaderText="BasePrice" ReadOnly="True" SortExpression="BasePrice"

UniqueName="BasePrice">

</telerik:GridBoundColumn>

<telerik:GridClientDeleteColumn CommandName="Add" Text="Add" ButtonType="ImageButton" ShowSortIcon="true" ImageUrl="../Images/Plus.gif" >

</telerik:GridClientDeleteColumn>

</Columns>

</MasterTableView>

</telerik:RadGrid>

and in the  RgGroupProducts_OnItemCommand Method

if (e.CommandName == "Add")

{}

Pablo Alejandre del Rio
Top achievements
Rank 1
 answered on 14 Jul 2008
1 answer
115 views
I realize this has been talked about already on the forums, and I understand the solution.  However, in a future release it would be really nice to have a simple server side property, much like IsEmpty of IsError...Just so we can easily tell that the user inputted something, but it was not a valid date.  The javascript work around works fine, but it is just extra hoops to go through that are annoying.
Missing User
 answered on 14 Jul 2008
4 answers
272 views
I have declared 31 generic DayTemplate controls each with an img src in the Content section.

In my Page_Load I dynamically assign the appropriate DayTemplate to my calendar using SpecialDays.Add.

The reason I do this dynamically is because I would like to manipulate each "img src" as needed.

Is there an easy way to change the "img src..." value for my DayTemplate items as I assign them to their special days?

(In other words, I have a unique image for every day of the month, so I need to change them on the fly.)

thanks for any thoughts on this.
plamen
Top achievements
Rank 1
 answered on 14 Jul 2008
5 answers
759 views
Hello,

I have just started with telerik controls. I have a requirement where I use RadGrid.
Now the problem in that the client wants to add a Title Header before Header.
Eg:
            Name                                     Contact
FirstName      LastName            Phone         Email
John               Bush                     7111          John@
Harry              Wilson                  8765         Harry@

Can anyone help me with "How to put Name and Contact title over the Header?"
I have tried a way. <RadGrid ....>
                              <MasterView ... Caption='<Table><tr><td>Name</td></tr><td>Contact</td></Table>.
                              </MasterView>
                               </RadGrid>

But it is not good idea at the moment...

Any help is appreciated

Thanks,
DIP
Sebastian
Telerik team
 answered on 14 Jul 2008
3 answers
273 views
Text in my panelbar doesn't wrap within one list item, using the Telerik skin. This forces the whole thing to be too wide. I can see that it is because of the "white-space" css attribute being "nowrap".

Two questions: how can I change this attribute? I want to just override the default setting, maybe by using !important?

Second, if I do change that attribute then the line height is far too big (I can test it via Developer Toolbar for example) - I don't see how to fix that.

I want wrapping and line spacing like in the Vista skin. But I want the "look" of the Telerik skin...

Can anyone help?
Alex Gyoshev
Telerik team
 answered on 14 Jul 2008
1 answer
146 views
Are there any plans at this point of adding the feature of allowing multiple file uploads? It's such a common task that every user asks for.
Veselin Vasilev
Telerik team
 answered on 14 Jul 2008
4 answers
115 views
Hi,

when I exported radgrid to excel ( html format), there is a blank column for the masterview and also detailtables. How can I remove that column?

Thanks
Pdd
Top achievements
Rank 1
 answered on 14 Jul 2008
1 answer
89 views
I seem to be struggling. I'm trying to get my Menu to have a down arrow next to my text in the main rootGroup when there are child items but I can't seem to get it to appear. I've looked  at the examples and on the screenshots the Web20 skin seems to do this BUT I've tried to implement that skin both using the embedded resources and by copying the files and whilst there is a down arrow in there, and one specified in the css it never appears. I've looked at the code and it seems these images don't get rendered, is there a problem or am I doing something wrong?

Here's my css code if that helps:
.RadMenu_ECargo{ font-family: Verdana, Helvetica, Arial, sans-serif; padding-left:20px; } 
 
.RadMenu_ECargo .rmRootGroup{} 
.RadMenu_ECargo .rmRootGroup .rmLink 
{ 
    color:#ffffff; text-decoration:none; 
    height:54px; padding:0 20px; line-height:54px; 
    background:transparent url('/Images/Global/nav-buttons-bg_normal.gif') repeat-x bottom left;  
    } 
.RadMenu_ECargo .rmRootGroup .rmSeparator 
{ 
    height:54px; width:2px; 
    background:transparent url('/Images/Global/nav-buttons-bg_seperator.gif') no-repeat bottom left;  
    } 
.RadMenu_ECargo .rmRootGroup .rmLink:hover, 
.RadMenu_ECargo .rmRootGroup .rmFocused, 
.RadMenu_ECargo .rmRootGroup .rmExpanded 
{ 
    background:transparent url('/Images/Global/nav-buttons-bg_over.gif') repeat-x bottom left;  
} 
 
.RadMenu_ECargo .rmRootGroup .rmExpandBottom, 
.RadMenu_ECargo .rmRootGroup .rmExpandTop, 
.RadMenu_ECargo .rmRootGroup .rmFocused .rmExpandBottom, 
.RadMenu_ECargo .rmRootGroup .rmFocused .rmExpandTop, 
.RadMenu_ECargo .rmRootGroup .rmExpanded .rmExpandBottom, 
.RadMenu_ECargo .rmRootGroup .rmExpanded .rmExpandTop 
{ 
    background:transparent url(/Images/Global/nav-arrow-down.gif) right center no-repeat; 
} 
 
.RadMenu_ECargo .rmGroup .rmLink, 
.RadMenu_ECargo .rmGroup .rmLink:hover, 
.RadMenu_ECargo .rmGroup .rmFocused, 
.RadMenu_ECargo .rmGroup .rmExpanded 
{ background:#ffffff none no-repeat 0 0; min-width:150px; border:1px solid #adadad; border-top:0; color:Black; 
    padding:5px 10px; height:20px; line-height:20px; } 
.RadMenu_ECargo .rmGroup .rmSeparator{ height:0; border-bottom:1px solid #adadad; border-top:1px solid black;} 
.RadMenu_ECargo .rmRootGroup .rmSlide 
{ 
    margin:-1px 0 0 0;} 

Lloyd
Alex Gyoshev
Telerik team
 answered on 14 Jul 2008
7 answers
222 views
Is there a way where we can "Insert a row before the Header" in the Event ITEMCREATED...


thanks,
DIP
Shinu
Top achievements
Rank 2
 answered on 14 Jul 2008
2 answers
142 views
I have a splitter set to 100% height. This has always worked fine across browsers. However, I recently added a bit of logic that automatically collapses a pane on certain criteria and therefore need to update the entire splitter via the AJAX manager to allow the pane to expand and collapse.

The problem is that when updating the splitter via the AJAX manager an additional div is rendered at runtime called a splitter panel, or in my case ctl00_ctl00_rspSplitterPanel. This does not have a height value of 100% but becomes the parent of the splitter control so the splitter loses it's height 100% value in all browsers except IE. Obviously, you can fudge it and set this div to height 100% from CSS but then this negates the height offset value I have.

So, basically you can't use AJAX to update a splitter with height 100% set in any browser but IE.

Also ref: http://www.telerik.com/community/forums/thread/b311D-bemdhg.aspx - I was unaware Alan was also posting.


Dimo
Telerik team
 answered on 14 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?