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

I have a RadAjaxManager on my page, and I'm trying to do some manula validation, which wont work.

I have narrowed down the broblem such that even the simplest confirm box doesn't work as expected.

I have the following on a Button -

OnClientClick

 

="return confirm('Are you sure you want to post back to the server?');"

 

 


When I click the button, I get the pop up but neither option (OK or Cancel) allows the page to postback.

This might not be an AJAX problem, but would be grateful for any help.

Andy

PS _UPDATE - I've just removed the RadAjaxPanel and it submits OK, so there is some interaction between the onclientclick of the button and the ajaxmanager.
Pavlina
Telerik team
 answered on 25 Sep 2009
1 answer
108 views
Hi All,

Im using the radupload to upload images to a site which will be used as images for a website. I want to prevent against GIFAR attacks and I'm wondering what action I can take to prevent these. I am currently using the radupload to only allow uploads of png,jpg and gif images, I then simply resave the images to my chosen destination, is this enough to prevent these attacks? If not what can I do?

Thanks in advance.
T. Tsonev
Telerik team
 answered on 25 Sep 2009
1 answer
143 views
Hi,

I would like to populate the recources client side instead of serverside.
Now the serverside method works fine for this.

But when i'm trying to add a javascript method to the OnClientResourcesPopulating property and remove the serverside method from the OnResourcesPopulating property.

This clientside event will not be handled. I tried to show a javascript alert in this javascript function but notting happens.
I have the same problem with the OnClientAppointmentInserting event.

All the other clientside events i'm using are working fine. For your information we are using the scheduler with webservices.
Peter
Telerik team
 answered on 25 Sep 2009
5 answers
383 views
I have a grid that is using Grouping but when it is rendered the Group By values are sorting alphabetically. I'm returning the data in the order that I would like to have it rendered. Is there anyway to disable the grouping from changing the order in which the data will be rendered? Thanks.
Pavlina
Telerik team
 answered on 25 Sep 2009
3 answers
125 views
Hi,
I wonder if this has been discussed before but after going through all the threads I still have this below mentioned issue unresolved

Scenario:

I have 4 Combo boxes and 2 datapicker controls on the page.
There are Submit and cancel buttons right below the above mentioned controls.

Functionality of the Page:
All the combo boxes are intially loaded with data. the 3rd combo box has 6000 records in it.
When the first combo is selected, it reloads the 2nd conbo and when a value from 2nd combo is selected then the 3rd combo is reloaded based on the values selected from the previous combos.
The 4th combo is independent and loaded when the page loads.

Problem:
When I run this page without adding ajax to the combo boxes, the page runs fast and as know it refresh and appears again with the selected data.
When I add ajax to these combo boxes as in the sequence they update, selecting the first combo updates the 2nd combo in 3 sec and selecting the 2nd combo updates the 3rd combo in 20 sec.

Question:
Why is this happening on adding ajax to the page? Is it happenign because of the record size of the third combo box? But still it should not be taking 20sec to do it.
Attime I see that it only happens when the combo boxes are seletc for the first time. Later when the are selected for 2nd or 3rd time then the workign is fast.

Few Details about the page:
> The page uses a master page
> I'm using RadAjaxManger and RadLoadingPanel (I used RagAjaxProxyManger but no use. The page reloads again and its not what I'm looking for)
> All the controls are put in a table and this table is in a Panel and the RadAjax controls are outside the panel
> The widths and heights are given in terms of pixels
> No layout is chosen for the table
> There are 2 image buttons on the page which on clicking opens a dialogue box using javascript
> All the datasources are loaded at the codebehind

With this information can you please tell why this is happening. There are other scenarios too where in updating date fields on a button click is also slowed by adding the ajax to the button and the datapicker fields to be updated.
I have problem understanding why adding ajax slows my page so badly

Please let me know and please do ask if you need any more information.

Thanks in Advance
Sowji
Pavlina
Telerik team
 answered on 25 Sep 2009
1 answer
139 views
On my master page I have some telerik controls so I setup the script manager/ajax manager etc on that page so they would work.  Now Im trying to build a content page that will have a ajax grid on it but I cant make it ajax because I cant modify the ajax manager (I even but the telerik definers/etc in to a content section and then just setting the content page to show the master page and such for that section but I still cant modify the ajax manager.

Because all the telerik is defined on the master page the grid etc load just fine on my content page but I cant define another ajax manager inside the content section because there is one already defined on the master page and the content is with in that form/section.

<%@ Master Language="VB" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Dresser Inc.</title> 
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" /> 
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen,projection" /> 
    <asp:ContentPlaceHolder id="Header" runat="server">  
    </asp:ContentPlaceHolder> 
</head> 
<body> 
    <form id="MasterForm" runat="server">  
<telerik:RadScriptManager ID="MasterRadScriptManager" runat="server">  
<Scripts> 
<asp:ScriptReference Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
Name="Telerik.Web.UI.Common.Core.js" /> 
<asp:ScriptReference Assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" 
Name="Telerik.Web.UI.Common.jQuery.js" /> 
</Scripts> 
</telerik:RadScriptManager> 
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
</telerik:RadAjaxManager> 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">  
</telerik:RadAjaxLoadingPanel> 
<telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Office2007">  
</telerik:RadSkinManager>      
 
    <div id="wrapper">  
<div id="innerwrapper">  
 
        <div id="header">  
                <h1><a href="#">Dresser Inc.</a></h1>  
                  
                <h2>Boundless Energy</h2> 
                  
                <div id="nav">  
<telerik:RadMenu ID="PrimaryNavigation" Runat="server">  
            <Items> 
                <telerik:RadMenuItem runat="server" Text="Home">  
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Corp Links">  
                            <Items> 
                                <telerik:RadMenuItem runat="server" Text="Oracle">  
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" Text="Help Desk">  
                                </telerik:RadMenuItem> 
                                <telerik:RadMenuItem runat="server" NavigateUrl="http://one.dresser.com"   
                                    Target="_blank" Text="One.Dresser.Com">  
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="Help Desk">  
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                  
                <telerik:RadMenuItem runat="server" Text="Becker">  
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="Canada">  
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="DPS/BH">  
                    <Items> 
                        <telerik:RadMenuItem runat="server" Text="Sales">  
                            <Items> 
                                <telerik:RadMenuItem runat="server"   
                                    NavigateUrl="~/bradford/sales/bfd_expidite.aspx" Text="Expidite">  
                                </telerik:RadMenuItem> 
                            </Items> 
                        </telerik:RadMenuItem> 
                    </Items> 
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="IPG">  
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="PRG">  
                </telerik:RadMenuItem> 
                <telerik:RadMenuItem runat="server" Text="" IsSeparator="True">  
                </telerik:RadMenuItem>                     
                <telerik:RadMenuItem runat="server" Text="Admins">  
                </telerik:RadMenuItem> 
            </Items> 
        </telerik:RadMenu> 
                </div> 
                <div id="subnav">  
                </div> 
        </div> 
          
        <div id="sidebar">  
          
                <h2>Latest News</h2> 
                  
       <telerik:RadDockLayout ID="RadDockLayout1" runat="server" 
            onsavedocklayout="RadDockLayout1_SaveDockLayout" 
            onloaddocklayout="RadDockLayout1_LoadDockLayout">  
                <telerik:RadDockZone ID="RadDockZone1" runat="server" Width="231px">  
                    <telerik:RadDock ID="RadDockDock1" runat="server" Text="RadDock1" 
                    Width="230px" Height="225px" UniqueName="Dock1" 
                    Title="RadDock1" AutoPostBack="true">  
                        <ContentTemplate> 
                        <div align="center">  
                            <telerik:RadCalendar ID="SideCal" runat="server" Font-Names="Arial,Verdana,Tahoma" 
                                ForeColor="Black" Style="border-color: #ececec" SelectedDate=""   
                                ViewSelectorText="x" AutoPostBack="true">  
                                <SpecialDays> 
                                    <telerik:RadCalendarDay Date="" IsSelected="True" IsToday="True" Repeatable="Today">  
                                        <ItemStyle CssClass="rcToday" />                                        
                                    </telerik:RadCalendarDay> 
                                </SpecialDays> 
                            </telerik:RadCalendar> 
                        </div>      
                        </ContentTemplate> 
                    </telerik:RadDock>                
                    <telerik:RadDock ID="RadDockDock2" runat="server" Text="RadDock2" 
                    Width="230px" Height="150px" UniqueName="Dock2" 
                    Title="RadDock2" AutoPostBack="true">  
                        <ContentTemplate> 
                            RadDock2  
                        </ContentTemplate> 
                    </telerik:RadDock> 
                    <telerik:RadDock ID="RadDockDock3" runat="server" Text="RadDock3" 
                    Width="230px" Height="150px" UniqueName="Dock3" 
                    Title="RadDock3" AutoPostBack="true">  
                        <ContentTemplate> 
                            RadDock2  
                        </ContentTemplate> 
                    </telerik:RadDock> 
                    <telerik:RadDock ID="RadDockDock4" runat="server" Text="RadDock4" 
                    Width="230px" Height="150px" UniqueName="Dock4" 
                    Title="RadDock4" AutoPostBack="true">  
                        <ContentTemplate> 
                            RadDock2  
                        </ContentTemplate> 
                    </telerik:RadDock> 
                </telerik:RadDockZone>     
    </telerik:RadDockLayout>                  
                  
                <h3>News Title</h3> 
                  
                <class="news">  
                    An example of a "latest news" type text area. Here would be the excerpt of the article. You can of course put anything you like here.  
                    <href="#" class="more">Read More &raquo;</a> 
                </p> 
                  
                <h3>News Title</h3> 
                  
                <class="news">  
                    An example of a "latest news" type text area. Here would be the excerpt of the article. You can of course put anything you like here.  
                    <href="#" class="more">Read More &raquo;</a> 
                </p> 
                  
                <h3>News Title</h3> 
                  
                <class="news">  
                    An example of a "latest news" type text area. Here would be the excerpt of the article. You can of course put anything you like here.  
                    <href="#" class="more">Read More &raquo;</a> 
                </p> 
                  
                <h2>Sub Navigation</h2> 
                  
                <ul class="subnav">  
                  
                        <li><a href="#"><b>&raquo;</b>Link Here</a></li>  
                          
                        <li><a href="#"><b>&raquo;</b>Link Here</a></li>  
                          
                        <li><a href="#"><b>&raquo;</b>Link Here</a></li>  
                          
                        <li><a href="#"><b>&raquo;</b>Link Here</a></li>  
                  
                </ul> 
                  
                <h2>Search</h2> 
                  
                <input name="" type="text" value="Search" /> 
          
        </div> 
          
          
          
        <div id="contentnorightbar">  
        <asp:ContentPlaceHolder id="PrimaryContent" runat="server">  
          
                <h2 id="Intro"><href="#">Introduction</a></h2>  
                  
                <p> 
                  
                        Hello and welcome to Aqueous, a liquid template created by <href="http://www,sixshootermedia.com">Six Shooter Media</a>. The template itself is designed for higher resolutions, 1024x768 and up, however with it being liquid, it will work in any resolution you can throw at it. It's written in XHTML and CSS and displays consistently on various web browsers.  
                  
                </p> 
                  
                <h2 id="About"><href="#">About the Author</a></h2>  
                <p> 
                          
                        <img src="http://www.sixshootermedia.com/ssm2/wp-content/themes/Six%20Shooter%20Media/images/logo.jpg" alt="" /> 
                        Hi! My names Jay and I'm a 20 year old web designer from England. My main projects are conducted through my website <href="http://www.sixshootermedia.com">Six Shooter Media</a>, but I (obviously) also enjoy creating Open Source web templates for general use! You can keep a check on my free templates <href="http://www.sixshootermedia.com/free-templates/">here</a> which is probably a link worth bookmarking as my templates appear there a couple of weeks before OWD/OSWD due to the design queues.  
                              
                </p> 
                              
                <p> 
      
                              
                        Another site of mine that you might find interesting if you're setting up a site with a free tmeplate like this is <href="http://www.buyabutton.net">Buy a Button</a>. There, for a great price you can purchase a link to your site in the form of a button. This link will obviously provide you site with some additional traffic which is always nice! Anyway, <href="http://www.buyabutton.net">Take a look</a>!  
          
                </p> 
                  
                <p> 
                  
                        If you want more of my free templates, they can be found <href="http://www.sixshootermedia.com/free-templates/">here</a>!  
                  
                </p> 
                  
                  
                <h2 id="Examples"><href="#">Some Examples</a></h2>  
                  
                <p> 
 
                          
                    OK, here I'll just put some example html elements that you will most probably be using in your blog.  
                          
                </p> 
      
                              
                <h3>Blockquote Example</h3> 
                              
                <blockquote> 
                              
                <p> 
                                      
                        Here's your blockquote text jfds jkndskf ndsknf sldnfjk sdnf jdsbf hdsbf jbsdjfk bdskj bdsjfb dsk bds bfsdj bfsjk bfsjdbf sbjd fjsbdk fsdbf sdb fksbd sb  
                                      
                </p> 
                              
                </blockquote> 
      
                              
                <h3>List Example</h3> 
                              
                <ul> 
      
                <li><span>Here</span></li>  
                <li><span>Is our friend</span></li>  
                <li><span>The list!</span></li>  
                              
                </ul> 
      
                              
                <h3>Image Example</h3> 
                  
                <img src="http://www.sixshootermedia.com/ssm2/wp-content/themes/Six%20Shooter%20Media/images/logo.jpg" alt="" />      
          
                <h2 id="Contact"><href="#">Contact</a></h2>  
                  
                <p> 
                    If you decide to use this template please <href="mailto:james%28at%29jameskoster.co.uk">drop me a line</a> to let me know! Don't hesitiate to get in touch if your interested in a custom template or just in any of my services in general. I look forward to hearing from you!  
      
                </p> 
                  
                <h3>Example Contact Form</h3> 
                  
                <form action="">  
                  
                        <label>Name</label> 
                        <input value="Your Name" /> 
                        <label>Email</label> 
                        <input value="Your Email" /> 
                        <label>You Comments</label> 
                        <textarea rows="5" cols="5"></textarea> 
                        <input type="submit" /> 
                  
                </form> 
        </asp:ContentPlaceHolder> 
        </div> 
          
        <div id="footer">  
            <p>© Dresser Inc.</p> 
        </div> 
          
</div> 
</div> 
    </form> 
</body> 
</html> 
 
Mira
Telerik team
 answered on 25 Sep 2009
0 answers
216 views
Hello,

At the moment, we are using RadFormDecorator to decorate the buttons, checkboxes etc.
The problem is that every time, we see the flickering while the decorator applies the skins to the controls.

The question is: Is it possible you can introduce the RadButton, RadCheckBox Rad_anything that replaces the ordinary controls ?

This could be implemented as merely control adaptors assembly or something.

The flickering that we have observed is  even more annoying while using update panels.
Roland
Top achievements
Rank 1
 asked on 25 Sep 2009
1 answer
202 views

I bind a list of business objects to a radgrad and I have a different usercontrol for the adding and editing of the object. This works fine. Now I want to add a custom command (EndLife), so I thought I would simply add it to the ItemCommand handler to perform different logic on it. This is code I have below:

Protected Sub MilkCrateListView_ItemCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles MilkCrateListView.ItemCommand  
        If (e.CommandName = Telerik.Web.UI.RadGrid.InitInsertCommandName) Then 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/AddMilkCrate.ascx" 
            e.Canceled = True 
            rgParts.EditIndexes.Clear()  
            e.Item.OwnerTableView.InsertItem()  
        ElseIf (e.CommandName = Telerik.Web.UI.RadGrid.EditCommandName) Then 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/EditMilkCrate.ascx" 
            e.Item.OwnerTableView.IsItemInserted = False 
        ElseIf (e.CommandName = MilkCrateView.EndLifeCommandName) Then 
            e.Item.Edit = True 
            e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/EndLifeMilkCrate.ascx" 
            e.Item.OwnerTableView.IsItemInserted = False 
        End If 
    End Sub 

The first time I click EndLife, the line item within the RadGrid is highlighted and put into EditMode, but the PopUp doesn't launched until I click EndLife. This is an issue itself, but because of this, the datagrid doesn't rebind inbetween calls, meaning the UserControl receives a null DataItem.

How can I get the PopUp to fire immediately? Would I fire an EditCommand from within the ItemCommand handler? If so, can someone give me an example of doing this?  

If not, how would I go about acheiving the functionality desired?

EDIT: Instead of using a Custom Command Name, I reused the CommandName Edit and added a CommandArgument 

ASP.NET
<telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" CommandArgument="Edit" HeaderText="Edit" Text="Edit" ></telerik:GridButtonColumn>                    
<telerik:GridButtonColumn ButtonType="LinkButton" CommandName="Edit" CommandArgument="Remove" HeaderText="Remove" Text="Remove"></telerik:GridButtonColumn> 

VB.NET
Protected Sub MilkCrateListView_ItemCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles MilkCrateListView.ItemCommand     
   If (e.CommandName = Telerik.Web.UI.RadGrid.InitInsertCommandName) Then    
      e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/AddMilkCrate.ascx"    
      e.Canceled = True    
      rgParts.EditIndexes.Clear()     
      e.Item.OwnerTableView.InsertItem()     
   ElseIf (e.CommandName = Telerik.Web.UI.RadGrid.EditCommandName) Then    
      e.Item.OwnerTableView.IsItemInserted = False    
      If (e.CommandArgument = MilkCrateView.EndLife) Then    
         e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/EndLifeMilkCrate.ascx"    
      Else 
         e.Item.OwnerTableView.EditFormSettings.UserControlName = "~/uc/EditMilkCrate.ascx"    
      End If    
   End If    
End Sub    
 


 
Mira
Telerik team
 answered on 25 Sep 2009
3 answers
154 views
Hello...

I 'm using RadControls for ASP.NET Q3 2007 and I have problems when exporting a grid to Excel. A strange gray square embracing some cells of the generated Excel is shown.

This is the Grid definition code:

                    <rad:RadGrid ID="grdUsuariosSinConexion" runat="server" AllowFilteringByColumn="True" AllowPaging="True" 
                        AllowSorting="True" AutoGenerateColumns="False" 
                        GridLines="None" Skin="WebBlue" Width="95%" EnableAJAX="True" EnableAJAXLoadingTemplate="True" OnNeedDataSource="grdUsuariosSinConexion_NeedDataSource" OnItemDataBound="grdSinUso_ItemDataBound" OnItemCommand="grd_ItemCommand" OnItemCreated="grd_ItemCreated">  
                        <ExportSettings OpenInNewWindow="True" FileName="ExportUsuariosSinConexion" IgnorePaging="True">  
                        </ExportSettings> 
                        <MasterTableView NoMasterRecordsText="No hay registros que mostrar." CommandItemDisplay="Top">  
                            <RowIndicatorColumn Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn Resizable="False" Visible="False">  
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                                <rad:GridBoundColumn DataField="Nombre" HeaderText="Nombre" UniqueName="column">  
                                    <ItemStyle Width="75%" /> 
                                </rad:GridBoundColumn> 
                                <rad:GridBoundColumn DataField="UltimaFecha" HeaderText="Ultima Fecha" UniqueName="colUltimaFecha" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime">  
                                    <ItemStyle Width="25%" /> 
                                </rad:GridBoundColumn> 
                            </Columns> 
                            <SortExpressions> 
                                <rad:GridSortExpression FieldName="Nombre" /> 
                            </SortExpressions> 
                            <CommandItemTemplate> 
                                <asp:ImageButton ID="btnExportUsoPorUsuario" runat="server" ImageUrl="~/Private/images/small_xls.gif" CommandName="ExportToExcel" ImageAlign="AbsMiddle" /> 
                            </CommandItemTemplate>                              
                        </MasterTableView> 
                        <HeaderStyle ForeColor="Gainsboro" HorizontalAlign="Center" /> 
                        <PagerStyle HorizontalAlign="Left" Mode="NextPrevAndNumeric" NextPagesToolTip="P&#225;ginas Siguientes" 
                            NextPageToolTip="P&#225;gina Siguiente" PagerTextFormat="Cambiar p&#225;gina: {4} &amp;nbsp;|&amp;nbsp; Mostrando p&#225;gina {0} de {1}, usuarios {2} al {3} de {5}." 
                            PrevPagesToolTip="P&#225;ginas Anteriores" PrevPageToolTip="P&#225;gina Anterior" /> 
                        <ItemStyle HorizontalAlign="Left" /> 
                        <FilterItemStyle HorizontalAlign="Left" /> 
                        <AlternatingItemStyle HorizontalAlign="Left" /> 
                        <ClientSettings> 
                            <ClientEvents OnRequestStart="mngRequestStarted" /> 
                        </ClientSettings> 
                        <CommandItemStyle HorizontalAlign="Right" /> 
                    </rad:RadGrid> 
 

And since the grid is controlled by RadAjaxManager, I placed the following code in HEAD section:

    <script type="text/javascript">  
    function mngRequestStarted(ajaxManager, eventArgs)    
    {    
        eventArgs.set_enableAjax(false);    
    }    
    </script> 
 

I have followed a document in this site that shows how to export to Excel in these scenarios, so I created a field named _exportExcel that is true when I press a export button placed in CommandItem of the grid. Therefore, these are the events I needed to implement:

    protected void grd_ItemCreated(object sender, GridItemEventArgs e)  
    {  
        e.Item.Visible = !_exportExcel || e.Item.ItemType == GridItemType.Header || e.Item.ItemType == GridItemType.AlternatingItem || e.Item.ItemType == GridItemType.Item;  
    }  
    protected void grd_ItemCommand(object source, GridCommandEventArgs e)  
    {  
        _exportExcel = e.CommandName == Telerik.WebControls.RadGrid.ExportToExcelCommandName;  
    }  
 

ItemCreated event makes invisible filter row and command item row and other rows that I don't want the grid to export.

Any help will be greatly appreciated,

Thanks
Jaime
Jaime
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
143 views
Hello... I am using an OnRequestStart client event to do some action before processing an Ajax request for a RadGrid. I am using eventArgs.get_eventTarget to know which button initiated the request (according to Telerik documentation), but that property or method does not exist.

How can I do it?
Thanks

My Telerik version is RadControls for ASP.NET Q3 2007

Jaime
Jaime
Top achievements
Rank 1
 answered on 25 Sep 2009
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?