Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
130 views
We are using Hierarchy Grid, 1st lever is Client mode, send also same, but if we are using 3rd level also client.
we are getting MAX Script error. and also while loading very very slow. Can you please suggest me on this.

-- Shaik
Pavlina
Telerik team
 answered on 25 Jun 2009
4 answers
71 views
I just viewed the tutorial "Set alternating style to rows".  I can't seem to get that style to work on my code.  I can't find an rsRow or rsAltRow class used anywhere in the source either.  (I'm looking at the source code from a week view)

Thanks for any tips!
Matt
Top achievements
Rank 1
 answered on 25 Jun 2009
2 answers
331 views
Hi,

I have a asp.net gridview in a radpagepiew. The gridview has 3 editable textboxes. On the "onblur" event of the third textbox, I want to first execute a javascript code, and then a server side code. I need the postback to be ajaxified.
I have used the following code

<

 

asp:Button runat = "server" ID = "btnPsuedoButton" Visible="true" OnClick="btnPsuedoButton_Click" />

In the RowDatabound event of the gridview, I do

 

string

 

eventHandler = this.GetPostBackEventReference(this.btnPsuedoButton, "");

 

txtDescription.Attributes.Add(

"OnBlur", eventHandler);

My problems are
1. If I make the button btnPsuedoButton invisible, I get error on page
2. How do I make the postback ajaxified.
3. How to call a javascript before the btnPsuedoButton_Click event

Vanika
Top achievements
Rank 1
 answered on 25 Jun 2009
3 answers
205 views

Hi to all,

it is not possible for me to make a GridTemplateColumn sortable with a LinkButton - control inside?

For my RadGrid i have set the attributes AllowMultiColumnSorting="true" and have define a <SortExpressions> Tag for a default sortexpression.

I don´t know if this information is important for problem solving?


The GridTemplateColumn with the UniqueName="WText" is not sortable in my example code

            <telerik:RadGrid ID="rdgWI" 
                             runat="server"   
                             AutoGenerateColumns="False" 
                             GridLines="None" 
                             onneeddatasource="rdgWI_NeedDataSource"   
                             PageSize="8" 
                             AllowSorting="True" 
                             Width="100%">  
                <HeaderContextMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </HeaderContextMenu> 
 
                <ClientSettings> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="true" /> 
                    <ClientEvents OnGridCreated="GetGridObject"></ClientEvents> 
                </ClientSettings> 
 
                <MasterTableView ClientDataKeyNames="WRhText, WiRhTask, WId, WText" ShowHeadersWhenNoRecords="true" AllowMultiColumnSorting="true" ShowHeader="true" runat="server" Width="99%">  
                     
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                   <SortExpressions> 
                        <telerik:GridSortExpression FieldName="WRhText" SortOrder="Ascending" /> 
                    </SortExpressions> 
                    <Columns> 
                        <telerik:GridBoundColumn DataField="WId" UniqueName="WId" Visible="false">  
                        </telerik:GridBoundColumn> 
                        <telerik:GridTemplateColumn HeaderText="Category" SortExpression="WRhText"   
                            UniqueName="WCategory" DataField="WRhText" Visible="false">  
                            <ItemTemplate> 
                                <asp:Label ID="lblWCategory" runat="server" CssClass="DefaultText"   
                                    Text='<%# GetWorklistTypText(Eval("WRhTask")) %>' /> 
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                        <telerik:GridTemplateColumn HeaderText="Description" SortExpression="WText" 
                            UniqueName="WText" > 
                            <ItemTemplate> 
                                <asp:LinkButton ID="lbWText" runat="server" 
                                    CommandArgument='<%# Eval("WId") %>'   
                                    CommandName="ShowDetails"   
                                    Text='<%# Eval("WText") %>' OnCommand="btnShowDetails">  
                                </asp:LinkButton> 
                        </ItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                </MasterTableView> 
                <FilterMenu> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                </FilterMenu> 
            </telerik:RadGrid> 

Thank for your help
Pavlina
Telerik team
 answered on 25 Jun 2009
2 answers
168 views
Hi

   I am using RadMenu, I want a small triangle kind of icon on the righ end of each RadMenuItem and when I clik this triangle kind of icon it should display its child items..

  How can we do this with RadMenu. Can you please provide me a sample code

 Thanks
 Srikanthgn
srikanth
Top achievements
Rank 1
 answered on 25 Jun 2009
5 answers
253 views
Hello,

I have a gridtemplate column that is a label, but the value is a decimal value and I need the column to sort it like a number and not text (it sorts it as text).  I have read numerous posts and the online help but I don't understand exactly what I need to do in order to sort a gridtemplate column in this manner.  I can sort the bound number columns just fine.  Here is my grid column:

 

 

 

<telerik:GridTemplateColumn DataField="TRANS_AMOUNT" HeaderText="Amount" UniqueName="TRANS_AMOUNT"

 

 

 

 

 

AllowFiltering="false" SortExpression="TRANS_AMOUNT" DataType="System.Decimal">

 

 

 

 

 

<HeaderStyle HorizontalAlign="Left" Width="65px" Wrap="False" Font-Size="Smaller" />

 

 

 

 

 

<ItemStyle HorizontalAlign="Right" Width="65px" Wrap="False" />

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

<asp:Label runat="server" ID="lblTransAmount" CssClass="NormalNarrow" Text='<%#DataBinder.Eval(Container, "DataItem.TRANS_AMOUNT") %>'></asp:Label>

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

Pavlina
Telerik team
 answered on 25 Jun 2009
1 answer
188 views
Hi,

I was wondering what does really do the show/hide method client-side on a menuitem. It doesn't seem to put visibility to "false" neither to put display to "none" because when I put one of those properties server-side, when i use the show method client-side, it doesn't work.

Is there an equivalent server-side for the show/hide method on menuitem ? I want to initialize the menuitems visibles server-side, and then client-side i want to show/hide menuitems depending on what the client is doing. The client-side part works perfectly, but i can't initialize server-side like I want.

If anyone can explain to me how I can do the similar action than show/hide but server-side...

Regards,

[Nean]
Princy
Top achievements
Rank 2
 answered on 25 Jun 2009
1 answer
157 views
My application currently controls the visibility of the RadGrid filter row by having an HTML anchor whose href attribute points to a JS function. This function sets the filter row visibility by invoking either showFilterItem() or hideFilterItem(). Functionality-wise it works fine.

However, this HTML anchor is located on the CommandItems row and I've been asked to move this anchor to either above or "on" the FilterItems row itself. Our designers feel this is easier for the user to see (since we have several controls on the CommandItems row) and is more intuitive (since the "toggle" will be very close visually to the filters themselves). However, I have not been able to determine how to do this.

There is no programmatically-accessible row between HeaderItems and FilterItems. Additionally, if I add the anchor somehow to the FilterItems row itself, invoking "hideFilterItem()" will hide the anchor along with the filters.

This is how they want the RadGrid to look:

[CommandItems Row]
[HeaderItems Row]
["Toggle" control]
[FilterItems Row]
[GridItems Row(s)]
[FooterItems Row]

Is there anything I can do?

Thanks, Brian

Sebastian
Telerik team
 answered on 25 Jun 2009
1 answer
78 views
I have a requirement to invoke onClientNodeClicking event from onClientLoad event. How can I do that?
I am managing the toolbar buttons in the onClientNodeClicking event and it works fine when the User clicks on any Node in the TreeView.
The issue is when the page loads for the first time, I am loading the Default Nodes in the Tree using the Server side code and need to raise "onClientNodeClicking" in the client. How can we do this? Doesnt want to duplicate the code in the server side and in the client side.
Thanks
Sri K Gamini.
Sri
Top achievements
Rank 1
 answered on 25 Jun 2009
2 answers
37 views
1、I use the UpdatePanel control to replace RadAjaxPanel page, but lost RadGrid style
2、How to manually register all the required CSS files in the head tag of the page, How to manually register the default style :
<link href="<my_path_to_stylesheet>" rel="stylesheet" runat="server" >
Can you give me your Email ? I will send Page code by Email for help
Thank you very much! 
Dimo
Telerik team
 answered on 25 Jun 2009
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?