Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 views
I have a non-embedded skin defined on a radgrid but it's not being applied to the detail table gridtableview header.  It is being applied to the rows within the gridtableview.  Is there a property to set on the gridtableview or detail table to apply the GridHeader_ class the gridtableview header?
Dimo
Telerik team
 answered on 21 Jul 2008
3 answers
146 views

I have a treeview set with multi-Node selection.

When I make a single selection (click a node with no key pressed) I have a postback and it's OK.
When a hold a shift key and click a row to have multiple selections, I do not get a postback? Is there a way to get a postback in this situation? 
Veselin Vasilev
Telerik team
 answered on 21 Jul 2008
6 answers
133 views
Hi.

I'm using a RadGrid, every thing works fine in my development computer, but I'm afraid it doesn't happen the same way when upload it into the server. On server it doesn't display CommandItem images and the icon to expand hierarchical table. Do you know why could this be happening?
CarlosCisneros
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
187 views
Here i am using RadControl Asp.net Ajax Q1 2008

I am using Radgrid and refresh button
On refresh is used radajaxmanager and radloading panel .

when i click on refersh button it gives error as

Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method

The code are follows.


 
            
<telerik:RadAjaxManager ID="rdAjaxManagerHistoryGrid" runat="server" EnableAJAX="true" DefaultLoadingPanelID="LoadingPnlCustom" >
                <ajaxsettings>
                    <telerik:AjaxSetting AjaxControlID="rGridHistories">
                        <updatedcontrols>
                            <telerik:AjaxUpdatedControl ControlID="rGridHistories"
                    LoadingPanelID="LoadingPnlCustom" /></updatedcontrols></telerik:AjaxSetting>
       <telerik:AjaxSetting AjaxControlID="btnRefreshHistory">
                        <updatedcontrols>
                            <telerik:AjaxUpdatedControl ControlID="rGridHistories"
          

         LoadingPanelID="LoadingPnlCustom" /></updatedcontrols></telerik:AjaxSetting>

 </telerik:RadAjaxManager>
                   
         <telerik:RadAjaxLoadingPanel ID="LoadingPnlCustom" runat="server"
                    BackColor="control" Transparency="15">
                    <asp:Image ID="imgCustom" runat="server"
                    ImageUrl="~/images/loadingFinal.gif" />
         </telerik:RadAjaxLoadingPanel>

 

 <telerik:RadGrid ID="rgridHistories1" runat="server" Visible="false"
                    AllowAutomaticDeletes="True" AllowPaging="True" AllowSorting="True"
                    AutoGenerateColumns="False" BorderColor="AntiqueWhite"
                    ClientSettings-EnableClientKeyValues="true"
                     GridLines="None" Height="349px"
                    LoadingTemplateTransparency="15" PageSize="20" ShowStatusBar="True"
                    skin="Outlook" Width="91%">
                    <mastertableview clientdatakeynames="UniqueId,UserName"
                    DataKeyNames="UniqueId,UserName" editmode="InPlace" gridlines="Both">
            <parenttablerelation>
            <telerik:GridRelationFields />
            </parenttablerelation>
                        <rowindicatorcolumn visible="False">
                            <HeaderStyle Width="20px" />
                        </rowindicatorcolumn>
            <expandcollapsecolumn resizable="False" visible="False">
            <HeaderStyle Width="20px" />
            </expandcollapsecolumn>
                        <Columns>
                            <telerik:GridBoundColumn DataField="Uniqueid" HeaderText="UniqueId"
                                ReadOnly="True" UniqueName="Uniqueid" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn AutoPostBackOnFilter="True"
                                ColumnEditorID="chkHistoryReviewedID" DataType="System.Boolean"
                                HeaderText="Reviewed" UniqueName="Reviewed">
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkHistory" runat="server" AutoPostBack="True"
                                        Checked="false" OnCheckedChanged="History_CheckBox_Check" />
                                </ItemTemplate>
                           
                            </telerik:GridTemplateColumn>
                            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="EditHistory"
                                HeaderText="Edit" ImageUrl="~/images/ico_16_customEntity.gif"
                                Text="Update History" UniqueName="EditColumn">
                            </telerik:GridButtonColumn>
                            <telerik:GridBoundColumn DataField="ManagerNotes" HeaderText="Manager Note"
                                UniqueName="ManagerNotes" Visible="False">
                                <ItemStyle Font-Bold="False" Font-Italic="False" Font-Names="Verdana"
                                Font-Overline="False" Font-Size="X-Small" Font-Strikeout="False"
                                Font-Underline="False" ForeColor="DarkGray" HorizontalAlign="Center"
                                Wrap="True" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="UserName" HeaderText="User" ReadOnly="True"
                                UniqueName="UserName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Subject" HeaderText="Subject"
                                ReadOnly="True" UniqueName="Subject">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="RecordedForUserUniqueId"
                                HeaderText="Recorded For User                                                       Unique ID"
                                ReadOnly="True" UniqueName="UserUniqueId" Visible="False">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="RecordedwithContactUniqueId"
                                Display="False"
                                HeaderText="Recorded with                                                      Contact Unique ID"
                                ReadOnly="True" UniqueName="ContactUniqueID">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Company" HeaderText="Company"
                                ReadOnly="True" UniqueName="Company">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ContactName" HeaderText="Contact Name"
                                ReadOnly="True" UniqueName="ContactName">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="HType" HeaderText="Type" ReadOnly="True"
                                UniqueName="Type">
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="Notes" HeaderText="Details" ReadOnly="True"
                                UniqueName="Details">
                                <HeaderStyle Width="150px" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="RecordedTime" HeaderText="Recorded Time"
                                ReadOnly="True" UniqueName="RecordedDate">
                            </telerik:GridBoundColumn>
                            <telerik:GridHyperLinkColumn HeaderText="Attachment"
                                UniqueName="AttachmentColumn">
                            </telerik:GridHyperLinkColumn>
                        </Columns>
               
            <editformsettings>
            <editcolumn autopostbackonfilter="True" uniquename="EditCommandColumn1">
            </editcolumn>
            </editformsettings>
            </mastertableview>
           
                    <clientsettings allowcolumnsreorder="True">
                        <selecting allowrowselect="True" />
                        <scrolling allowscroll="True" usestaticheaders="True" /></clientsettings>
                    <PagerStyle Mode="NextPrevAndNumeric" Position="Top"
                    PrevPageText="&amp;lt;   " /><EditItemStyle BorderColor="#C0C0FF"
                    BorderStyle="Inset" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                    Font-Strikeout="False" Font-Underline="False" Wrap="True" />
                    <SelectedItemStyle BackColor="LightGray" Font-Bold="False"
                    Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" Wrap="True" /></telerik:RadGrid>

 

 

Maria Ilieva
Telerik team
 answered on 21 Jul 2008
4 answers
210 views
EDIT: Workaround: I just stuck it in a div and set the style to display:none. This can't be what we're extected to do???

I noticed a blank line at the bottom of my web page and using the IE Developer Toolbar I found out it's the RadWindowManager.

Why is it visible as surely it shouldn't be...???

Here is my code,

        <telerik:RadWindowManager ID="radWindowManager" runat="server" Skin="Web20" style="z-index: 90000;">  
            <Windows> 
                <telerik:RadWindow ID="radWindowAbout" runat="server" Animation="FlyIn" Overlay="True" KeepInScreenBounds="True" Behavior="Default" InitialBehavior="None" Left="" 
                    NavigateUrl="Dialogs/About.aspx" Style="display: none;" Top="">  
                </telerik:RadWindow> 
            </Windows> 
        </telerik:RadWindowManager> 

It ends up creating this HTML which is clearly showing as a blank line,

        <div id="ctl00_ctl00_ContentPlaceHolder_radWindowManagerPanel">  
 <div id="ctl00_ContentPlaceHolder_radWindowManager" style="z-index:90000;display:none;">  
  <div id="ctl00_ContentPlaceHolder_radWindowAbout" style="display:none;">  
     
                <input id="ctl00_ContentPlaceHolder_radWindowAbout_ClientState" name="ctl00_ContentPlaceHolder_radWindowAbout_ClientState" type="hidden" /> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_alerttemplate" style="display:none;">  
  <div class="windowpopup radalert">     
   <div class="dialogtext">  
   {1}      
   </div> 
     
   <div> 
    <a  onclick="$find('{0}').close();" 
    class="radwindowbutton" href="javascript:void(0);">  
     <span class="outerspan">  
      <span class="innerspan">##LOC[OK]##</span> 
     </span> 
    </a>      
   </div> 
  </div> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_prompttemplate" originalAttribute="href" originalPath="javascript:void(0);">  
     <span class="outerspan">  
      <span class="innerspan">##LOC[OK]##</span> 
     </span> 
    </a>      
   </div> 
  </div> 
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_prompttemplate" style="display:none;">  
  <div class="windowpopup radprompt">     
   <div class="dialogtext">  
   {1}      
   </div> 
     
   <div> 
    <input type="text"  class="dialoginput" value="{2}" /> 
   </div> 
   <div> 
    <a onclick="$find('{0}').callBack(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"      
     class="radwindowbutton" href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" ><span class="outerspan"><span class="innerspan">##LOC[OK]##</span></span></a> 
    <a onclick="$find('{0}').callBack('');" class="radwindowbutton"  href="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_confirmtemplate" originalAttribute="href" originalPath="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><div id="ctl00_ContentPlaceHolder_radWindowManager_confirmtemplate" style="display:none;">  
  <div class="windowpopup radconfirm">     
   <div class="dialogtext">  
   {1}      
   </div>        
   <div> 
    <a onclick="$find('{0}').callBack(true);"  class="radwindowbutton" href="javascript:void(0);" originalAttribute="href" originalPath="javascript:void(0);" ><span class="outerspan"><span class="innerspan">##LOC[OK]##</span></span></a> 
    <a onclick="$find('{0}').callBack(false);" class="radwindowbutton"  href="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><input id="ctl00_ContentPlaceHolder_radWindowManager_ClientState" originalAttribute="href" originalPath="javascript:void(0);"><span class="outerspan"><span class="innerspan">##LOC[Cancel]##</span></span></a> 
   </div> 
  </div>    
  </div><input id="ctl00_ContentPlaceHolder_radWindowManager_ClientState" name="ctl00_ContentPlaceHolder_radWindowManager_ClientState" type="hidden" /> 
 </div> 
Georgi Tunev
Telerik team
 answered on 21 Jul 2008
5 answers
222 views
Please can you help - I have a RadScheduler control linked to a provider based on the DbSchedulerProviderBase.

If I create a recurring appointment and then move one of the occurences the Update method is called (I guess to add the EXDATE section to the recurrence rule field) and then the Insert method is called to create the 'new' appointment.

However, if I create a recurring appointment and then resize one of the appointments, (after selecting "only this occurence") the Update method is called, but the Insert method is never called. The net effect is that the occurence I have resized disappears.

Can you help?
Thanks
Mark
Peter
Telerik team
 answered on 21 Jul 2008
1 answer
138 views
Hi

Is there a way to set the width of the Grouping Column for RadScheduler in timelineview.

I'm finding that with groupingdirection set to vertical if the names in the group wrap I'm experiencing formatting issues with the scheduler.

Thanks

Richard
Alex Gyoshev
Telerik team
 answered on 21 Jul 2008
3 answers
430 views
When i click Button1, it's just bind the data to RadGrid1,
and select export format from ExportList(RadComboBox) fire the event ExportList_SelectedIndexChanged do export.

But if i click Button1 again, the ExportList_SelectedIndexChanged fire again.
Any idea why? because it's should fire Button1_Click event.


Thanks!



Here is ASPX page

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="Default4" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!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>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
   <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
    <br /> 
    <telerik:RadComboBox ID="ExportList" AutoPostBack="true" runat="server"  
    onselectedindexchanged="ExportList_SelectedIndexChanged"> 
        <Items> 
            <telerik:RadComboBoxItem Text="Export" Value="Export" runat="server"/> 
            <telerik:RadComboBoxItem Text="Export to Excel" Value="Excel" runat="server"/> 
            <telerik:RadComboBoxItem Text="Export to ExcelML" Visible="false" Value="ExcelML"  runat="server"/> 
            <telerik:RadComboBoxItem Text="Export to Word" Value="Word"  runat="server"/> 
            <telerik:RadComboBoxItem Text="Export to CSV" Value="CSV" runat="server"/> 
            <telerik:RadComboBoxItem Text="Export to PDF" Value="PDF"  runat="server"/> 
        </Items> 
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </telerik:RadComboBox> 
     
    <br /> 
     
    <telerik:RadGrid ID="RadGrid1" GridLines="None" AllowSorting="true" runat="server"> 
    <MasterTableView DataKeyNames="CustomerID"> 
        <Columns> 
            <telerik:GridButtonColumn Text="Edit" HeaderText="Edit" CommandName="Select"> 
            </telerik:GridButtonColumn> 
        </Columns> 
        <ExpandCollapseColumn Visible="False"> 
         
        <HeaderStyle Width="19px"></HeaderStyle> 
        </ExpandCollapseColumn> 
 
        <RowIndicatorColumn Visible="True"> 
        <HeaderStyle Width="20px"></HeaderStyle> 
        </RowIndicatorColumn> 
    </MasterTableView> 
     
    <ClientSettings> 
        <Selecting AllowRowSelect="True" /> 
    </ClientSettings> 
</telerik:RadGrid> 
    </form> 
</body> 
</html> 

Here is code behind

using System; 
using System.Collections; 
using System.Configuration; 
using System.Data; 
using System.Linq; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.HtmlControls; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Xml.Linq; 
 
public partial class Default4 : System.Web.UI.Page 
{ 
    protected void Page_Load(object sender, EventArgs e) 
    { 
 
    } 
 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        DataClassesDataContext customers = new DataClassesDataContext(); 
 
        var query = from customer in customers.Customers 
                    select new { customer.CustomerID, customer.ContactName, customer.Address, customer.City }; 
 
        RadGrid1.DataSource = query; 
        RadGrid1.DataBind(); 
    } 
 
    public void ConfigureExport(bool ExportOnlyData, bool IgnorePaging, bool OpenInNewWindow) 
    { 
        RadGrid1.ExportSettings.ExportOnlyData = ExportOnlyData; 
        RadGrid1.ExportSettings.IgnorePaging = IgnorePaging; 
        RadGrid1.ExportSettings.OpenInNewWindow = OpenInNewWindow; 
        RadGrid1.ExportSettings.FileName = "12345"; 
    } 
 
    public void ConfigureExport() 
    { 
        ConfigureExport(true, true, true); 
    } 
 
    protected void ExportList_SelectedIndexChanged(object o, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e) 
    { 
        if (ExportList.SelectedIndex != 0) 
        { 
            switch (ExportList.SelectedValue) 
            { 
                case "Excel": 
                    ConfigureExport(); 
                    RadGrid1.MasterTableView.ExportToExcel(); 
                    break; 
 
                case "ExcelML": 
                    break; 
 
                case "Word": 
                    ConfigureExport(); 
                    RadGrid1.MasterTableView.ExportToWord(); 
                    break; 
 
                case "CSV": 
                    ConfigureExport(); 
                    RadGrid1.MasterTableView.ExportToCSV(); 
                    break; 
 
                case "PDF": 
                    ConfigureExport(); 
                    RadGrid1.ExportSettings.Pdf.AllowCopy = true; 
                    RadGrid1.ExportSettings.Pdf.AllowModify = true; 
                    RadGrid1.ExportSettings.Pdf.AllowPrinting = true; 
                    RadGrid1.ExportSettings.Pdf.PaperSize = Telerik.Web.UI.GridPaperSize.Letter; 
                    RadGrid1.MasterTableView.ExportToPdf(); 
                    break; 
 
                default: 
                    break; 
            } 
        } 
    } 
} 
 

Simon
Telerik team
 answered on 21 Jul 2008
3 answers
105 views
Is there a way to limit a Zone to only 1(or some number) of docks?

I found a post from last year, but the code did not work for me.
Sophy
Telerik team
 answered on 21 Jul 2008
1 answer
144 views
Hi

I'm looking for a Round Panel control to show text and images. Do you have this kind of control?

Regards
Sebastian
Telerik team
 answered on 21 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?