Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
162 views
Hello, good day.

Is there a way to export a chart to excel like the grid control?
Schlurk
Top achievements
Rank 2
 answered on 30 Mar 2010
5 answers
432 views
my application has lots of grids. i find that the filters are case sensitive and do not work with the apostrophe character unless i set
EnableLinqExpressions="false"

in the grid definition. naturally, i dont want to have to do this for every grid in my application. i'm wondering why the default would be set to true when it has such an impact on existing functionality?
cheers,
rob

Nikolay Rusev
Telerik team
 answered on 30 Mar 2010
6 answers
142 views
I have some RadDocks (dynamically loaded to a RadDockZone) within a hidden RadDockZone more specifically with it's attributes on the RDZ set to display:none;
When I display the hidden RDZ it shows up properly, but the RadDocks within it are missing their respective collapse bars and only appear after i click on each one of them and unclick.  Any idea how to fix this issue?

<

 

telerik:RadDockZone ID="RadDockZone4" CssClass="RDZ" Runat="server" Skin=""></telerik:RadDockZone>

 

.RDZ

 

 

 

{

 

position:absolute;

 

 

left:500px;

 

 

top:20px;

 

 

display:none;

 

 

}

Pero
Telerik team
 answered on 30 Mar 2010
1 answer
114 views

Hi,

I m having drag and drop operation using radgrid in my application. It is very much slow even i have commented the server side coding sections like RowDrop, ItemDataBound, prerender.  Now i dont have any operations in server side, simply i drag and drop but  then too it takes 30 secs.

Here is my code snippet..

 

 <telerik:RadGrid runat="server" ID="grd_CommercialDetails" OnRowDrop="grd_CommercialDetails_RowDrop" AllowFilteringByColumn="true"   
                     AllowPaging="True"  AllowMultiRowSelection="true" DataSourceID="CommercialDataSource"  AutoGenerateColumns="false" 
                   PageSize="5"  AllowSorting="true" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnNeedDataSource="grd_CommercialDetails_NeedDataSource" >     
                <MasterTableView DataKeyNames="Commercial_Id" AutoGenerateColumns="false" DataSourceID="CommercialDataSource" AllowFilteringByColumn="true">  
                <Columns> 
                <telerik:GridClientSelectColumn UniqueName="Commercial_Select" HeaderStyle-Width="20px" /> 
                <telerik:GridBoundColumn DataField="ReleaseOrderNo" HeaderText="ReleaseOrderNo" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Commercial_Id" HeaderText="CommercialId" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Company" HeaderText="Company" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommercialName" HeaderText="Commercial" FilterControlWidth="40px" HeaderStyle-Width="80px" Resizable="true" Display="true"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Client" HeaderText="ClientName" Display="false"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="Duration" HeaderText="Duration (secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                <telerik:GridDateTimeColumn UniqueName="DateTime"  DataFormatString="{0:d}" FilterControlWidth="82px" HeaderStyle-Width="110px" 
                        SortExpression="DateTime" HeaderText="Date" DataField="Date">  
                 </telerik:GridDateTimeColumn>   
                  <telerik:GridBoundColumn DataField="Date" HeaderText="Date" Display="false" DataFormatString="{0:d}"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommericalTime" HeaderText="Total Duration(secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                <telerik:GridBoundColumn DataField="CommTimeAvail" HeaderText="TotalAvailable Duration(secs)" Display="true" FilterControlWidth="25px" HeaderStyle-Width="60px"></telerik:GridBoundColumn> 
                </Columns> 
                 
                </MasterTableView> 
                <SelectedItemStyle BackColor="BurlyWood" Font-Bold="true" ForeColor="Black" /> 
                <ClientSettings AllowRowsDragDrop="True">  
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false"/>  
                     
                    <Scrolling AllowScroll="true" UseStaticHeaders="true"/>  
                </ClientSettings> 
                <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" AlwaysVisible="true"  /> 
            </telerik:RadGrid> 

Pleas give any suggestions,

Thanks in advance.

Regards,
Maha:)

 

.

Yavor
Telerik team
 answered on 30 Mar 2010
2 answers
104 views
I have an issue with the Scheduler on a content page wherein when changing views of opening an AdvancedEdit form will cause a Radmenu control on the underlying master page to lose the color on the menu.  The menu items are still there and the behavior is present in the IE series, 8 in particular, browsers, not Firefox or Chrome.  Wondering if anyone else out there has seen this behavior.
Cliff
Top achievements
Rank 1
 answered on 30 Mar 2010
15 answers
206 views
I'm attempting to get my RadGrid to show the NestedTemplate when the row is clicked, but show the edit template when the Edit button (created via a GridEditCommandColumn) is clicked.

In my ItemCommand handler, I have the following code:

if(e.Item is GridDataItem)  
{  
  if(e.CommandName == "RowClick")  
  {  
      if(e.Item.Selected)  
      {  
          e.Item.Selected = false;  
          e.Item.Expanded = false;  
      }  
      else 
      {  
          e.Item.Selected = true;  
          e.Item.Expanded = true;  
      }  
 
      e.Item.Edit = false;  
  }  
  else if(e.CommandName == "Edit")  
  {  
      e.Item.Selected = true;  
      e.Item.Expanded = false;  
      e.Item.Edit = true;  
      myGrid.Rebind();  
  }  

This code works fine for selecting the row via a RowClick, but the ItemCommand fires twice for the Edit button click, once with a CommandName of Edit, and then once with a CommandName of RowClick. This results in the row showing the NestedTemplate instead of the EditTemplate.

Futhermore, it appears that the state from the first ItemCommand event does not exist for the second ItemCommand event. In other words, the fact that I set the row to Selected and Expanded does not show up when the second ItemCommand event is handled, so I can't check this information and prevent the RowClick from messing things up.

What am I doing wrong?
Tsvetoslav
Telerik team
 answered on 30 Mar 2010
6 answers
649 views
Hello,

I want to center the radAjaxLoadingPanel in my browser (adaptable to the size of the window).

I try to do something like that :

<telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Transparency="20" BackColor="#E0E0E0">  
    <img src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading6.gif") %>' 
            alt="Loading..." style="margin: 383px 500px 383px 500px" /> 
</telerik:RadAjaxLoadingPanel> 

When this is the radajaxmanager that starts the radajaxloadingpanel, it is almost centered...
but when this is another control in the page that starts the radajaxloadingpanel, it is not centered at all.

How can I do that ?

Thanks,

Sabrina
Manuel Ortiz
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
154 views
Hi,
I've tried to set the HorizontalAlign of the "Size" column to "Right":
GridColumn c = theExplorer.Grid.Columns.FindByUniqueNameSafe("Size");  
if (c != null)  
{  
  c.ItemStyle.HorizontalAlign = HorizontalAlign.Right;  
  c.HeaderStyle.HorizontalAlign = HorizontalAlign.Right;  
It works but... up to the 11th row (starting with 1). The 12th row is an invisible "No record to display" row and starting from the 13th row the alignment is "Left". It is so in the case of any column, not "Size" only.
See the attached print-screens of the markup and its result.
Could you do something with it :-) ?

Regards
Tomasz

PS. I'm using 2009 Q3 and "Simple" skin - if it matters.
Tomasz M.Lipiński
Top achievements
Rank 1
 answered on 30 Mar 2010
1 answer
342 views
I have a radajaxpanel and a radscriptmanager in the master page. So all my content pages inherits them.

<body id="bodymaster" runat="server" style="background-image:url(../../img/titlebg.jpg); background-attachment:fixed"
    <form id="frm01" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePageMethods="true"
            <Scripts>  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />  
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
            </Scripts>          
        </telerik:RadScriptManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" /> 
        <telerik:RadAjaxPanel ID="radAjaxPanel01" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" ClientEvents-OnRequestStart="onRequestStart">             
            <div style="width: 100%; height:20px;top:0px; left:auto;" class="div03"
                <table class="tbl12"
                    <tr> 
                        <td width="50%" style="text-align:left"
                            <asp:Label ID="lblMessage" runat="server" CssClass="txt08r" Visible="false" EnableViewState="false" /> 
                        </td> 
                        <td width="50%" style="text-align:right"
                            <asp:Label ID="lblApp" runat="server" style="color:#FFFFFF" /> 
                            <asp:Image ID="imgApp" runat="server" ImageUrl="~/img/spacer.gif"/>&#160;&#160;<asp:Label ID="lblAppTitle" runat="server" CssClass="txt09s" />                                 
                        </td> 
                    </tr> 
                </table> 
            </div>            
            <div id="pnlContentMain01_01" name="pnlContentMain01_01" style="PADDING-RIGHT: 0px;PADDING-LEFT: 0px;PADDING-BOTTOM: 0px;OVERFLOW: auto;WIDTH: 100%;PADDING-TOP: 0px;moz-box-sizing: border-box;box-sizing: border-box">  
                <asp:contentplaceholder id="mpContentMain01_01" runat="server" />                     
            </div> 
        </telerik:RadAjaxPanel>   
    </form> 
</body> 
</html> 
 

After each callback all the contentplaceholder elements from each of the content pages are included in the callback refresh. Is it possible to have an nested radajaxpanel in the content page, so in some cases refresh just some controls inside the contentplaceholder instead of the whole content page?



robertw102
Top achievements
Rank 1
 answered on 30 Mar 2010
2 answers
132 views
Hello,

If anyone can guide me what the best solution I should do to achieve the following:

I have a master page.
In the master page I have a dropdownlist and a textbox
I wannna be able to select an item from the dropdownlist and type the text to search for according to the selected item

then pass that select statement to the RadGrid in the ContentForm.

Musab Alghzawi
Top achievements
Rank 1
 answered on 30 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?