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

Scenario:

  • "page with modal window for upload multiple file";
  • in modal window there are two async controls:
    • One for browser with Drag&Drop enabled;
    • One for browser with NO Drag&Drop;
    • Each control is show/hide by jquery/CSS

We want:

  • to clear all uploaded/uploading file when user clic on "X" or close button of modal window (open/closed by jquery): but.. how we can find ALL asyncupload controls on the page without using (open/close/function to manage drag/drop are on a file .js !):

var upload1 = $find("<%= RadUpload1.ClientID %>");
var upload2 = $find("<%= RadUpload2.ClientID %>");

  • to disable "Submit" button if there is an uploading file

 

Hristo Valyavicharski
Telerik team
 answered on 13 Aug 2015
1 answer
104 views

Below is my Rad grid which is binding from sever side during Page_Load. But once I clicked the "Edit" command, all rows are seeing as cleared after that post back. My edit command is not inline, but it's showing the results on a separate page section. If I replace this grid with normal asp.net GridView, the rows are retaining for the same operation. This RadGrid is inside a usercontrols(ascx) and this usercontrol is inside a RadAjaxPanel of the container page. It appears like ViewState is not ​retaining for me once using RadGrid. Any suggestions?

<P><telerik:RadGrid runat="server" ID="grdItemEnquiry" Width="95%"
CssClass="gridview1" ShowFooter="false" AllowSorting="true" AllowPaging="true"
PageSize="20" EnableViewState="true" Visible="true"
OnItemDeleted="grdItemEnquiry_OnRowDeleting"
OnItemCommand="grdItemEnquiry_RowCommand"AutoGenerateColumns="false"ShowHeaderWhenEmpty="true"RowStyle-CssClass="alterwhite"OnItemDataBound="grdItemEnquiry_OnRowDataBound"AlternatingRowStyle-CssClass="altergrey"
HeaderStyle-CssClass="tableHeading br"
OnPageIndexChanged="grdItemEnquiry_PageIndexChanging"><BR>                                                      
<ClientSettingsAllowColumnsReorder="true"><BR>                                                             
<ClientEventsOnCommand="rgPublicationResults_Command"/><BR>                                                      
</ClientSettings><BR>                                                      
<MasterTableView><BR>                                                             
<Columns><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="S.No"ItemStyle-Width="3%"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblSRNO"runat="server"Text='<%#Container.ItemIndex +1
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="SerialNo"Visible="false"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblSerialNo"runat="server"Text='<%#Eval("SerialNo")
%>'></asp:Label><BR>                                                                                 
<asp:Label ID="lblItemID"runat="server"Text='<%#Eval("ItemID")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Item Description"
ItemStyle-Width="10%"
ItemStyle-CssClass="breakWord120"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblItemDescr"runat="server"Text='<%#Eval("ItemDesc")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Item Code" ItemStyle-Width="5%"
ItemStyle-CssClass="breakWord120"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblItemCode"runat="server"Text='<%#Eval("ItemCode")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Delivery Location"
ItemStyle-Width="7%"
ItemStyle-CssClass="breakWord120"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblDelLoc"runat="server"Text='<%#Eval("DelLoc")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Major Category" ItemStyle-Width="5%"
ItemStyle-Wrap="true" ItemStyle-CssClass="DisplayNone"
HeaderStyle-CssClass="DisplayNone"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:DropDownList
runat="server"ID="ddlcategory"Width="70px"BackColor="Cornsilk"AutoPostBack="true"OnSelectedIndexChanged="ddlcategory_SelectedIndexChanged"/><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Minor Category" ItemStyle-Width="5%"
ItemStyle-Wrap="true" ItemStyle-CssClass="DisplayNone"
HeaderStyle-CssClass="DisplayNone"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:DropDownList
runat="server"ID="ddlsubcategory"Width="70px"BackColor="Cornsilk"OnSelectedIndexChanged="ddlsubcategory_SelectedIndexChanged"AutoPostBack="true"/><BR>                                                                          
</ItemTemplate><BR>                          
                                          
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="UOM"ItemStyle-Width="4%"ItemStyle-Wrap="true"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblUOM" runat="server"Text='<%#Eval("UOM")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Need By Date" ItemStyle-Width="5%"
ItemStyle-Wrap="true"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblNeedDate"runat="server"Text='<%#Eval("NeedDate")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Quantity/Duration"ItemStyle-Width="3%"ItemStyle-Wrap="true"ItemStyle-HorizontalAlign="Center"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label
ID="lblQuantity"runat="server"Text='<%#Eval("Quantity_Duration")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                          
<FooterTemplate><BR>                                                                                 
<asp:Label ID="lblGTotal"runat="server"Style="font-weight: bold"Text="Grand
Total
 :"></asp:Label><BR>                                                                          
</FooterTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Unit Price" ItemStyle-Width="3%"
ItemStyle-HorizontalAlign="Right"><BR>                                                             
               
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblprice"runat="server"Text='<%# String.Format("{0} {1}",
 Eval("Currency"), Eval("UnitPrice", "{0:0.000}"))
%>'></asp:Label><BR>                                                                                 
<asp:HiddenField
ID="hdnUnitPrice"runat="server"Value='<%#Eval("UnitPrice") %>'
/><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Taxes"ItemStyle-Width="3%"ItemStyle-HorizontalAlign="Right"
Visible="false"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label
ID="lblTaxes"runat="server"></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Conversion Rate" ItemStyle-Width="3%"
ItemStyle-HorizontalAlign="Center"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label
ID="lblConvRate"runat="server"></asp:Label><BR>                                                                                 
<asp:Label ID="lbCurrencyValue"Style="display: none"
runat="server"Text='<%#Eval("Currency")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Total Price(QAR)" ItemStyle-Width="3%"
ItemStyle-Wrap="true"
ItemStyle-HorizontalAlign="Right"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblTotalPrice"Style="text-align: right; width: 70px"
runat="server"ReadOnly="true"Text='<%#Eval("TotalPrice", "{0:#,#.000}")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                          
<FooterTemplate><BR>                                                                          
       <telerik:RadNumericTextBox ID="lblTotal"
Style="text-align: right" runat="server" CssClass="textEntry" ReadOnly="true"
MaxLength="10"><BR>                                                                                        
<NumberFormatDecimalDigits="3"/><BR>                                                                          
        
</telerik:RadNumericTextBox><BR>                                                                          
</FooterTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="File Name" ItemStyle-Width="7%"
ItemStyle-Wrap="true"
ItemStyle-CssClass="breakWord120"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:LinkButton
ID="btnlineattach"OnClientClick="setFileDownLoadToken();"runat="server"ToolTip="View
 File" CommandName="ViewAttach" OnClick="btnviewattach_Click"
Text='<%#Eval("DocTitle") %>' Style="color: #630040 !important;"
Font-Underline="true" ForeColor="Blue"
CommandArgument='<%#Eval("DocumentFilePath")%>'><BR>                                                                                        
<asp:Label runat="server"ID="lblattachpath"Text='<%#Eval("DocTitle")
%>'></asp:Label><BR>                                                                                 
</asp:LinkButton><BR>                                                                          
</ItemTemplate><BR>                                                                          
<ItemStyleWidth="10%"/><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridBoundColumn
DataField="VirtualPath"Visible="false"HeaderText="Description"/><BR>                                                                    
<telerik:GridBoundColumn
DataField="Type"Visible="false"HeaderText="Action"/><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Is Urgent Requisition"
ItemStyle-Width="8%" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center"
Visible="false" ItemStyle-CssClass="hiddencol"
HeaderStyle-CssClass="hiddencol"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label ID="lblIsReqUrgent"runat="server"Text='<%#Eval("IsReqUrgent")
%>'></asp:Label><BR>                                                                    
        
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Future Requirement"
ItemStyle-Width="8%" ItemStyle-Wrap="true" ItemStyle-HorizontalAlign="Center"
Visible="true"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:Label
ID="lblFutureRequirement"runat="server"Text='<%#Eval("FutureRequirement")
%>'></asp:Label><BR>                                                                          
</ItemTemplate><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnItemStyle-Width="3%"HeaderText="Edit"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:ImageButton
ID="btnedit"runat="server"ImageUrl="~/Images/edit1.png"ToolTip="Edit"CommandName="Edit"CommandArgument='<%#Eval("SerialNo")
%>'
TabIndex="19"/><BR>                                                                          
</ItemTemplate><BR>                                                                          
<ItemStyleWidth="3%"HorizontalAlign="Center"></ItemStyle><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                                    
<telerik:GridTemplateColumnHeaderText="Delete"ItemStyle-Width="5%"><BR>                                                                          
<ItemTemplate><BR>                                                                                 
<asp:ImageButton
ID="btnDelete"runat="server"ImageUrl="~/Images/delete.png"ToolTip="Delete"CommandName="Delete"CommandArgument='<%#Eval("ItemID")
%>' OnClientClick="return confirm('Do you really want to delete?');"
/><BR>                                                                          
</ItemTemplate><BR>                                                                          
<ItemStyleHorizontalAlign="Center"Width="5%"></ItemStyle><BR>                                                                    
</telerik:GridTemplateColumn><BR>                                                             
</Columns><BR>                                                      
</MasterTableView><BR>                                               
</telerik:RadGrid></P>

Eyup
Telerik team
 answered on 13 Aug 2015
4 answers
189 views
Hi Telerik Team,

I think I've discovered a bug:

I have a RadPanelBar inside a GridTemplateColumn of a RadGrid, which is itself inside another RadPanelBar, which is inside the NestedViewTemplate of a containing RadGrid's MasterTableView.

Background

I used the NestedViewTemplate of a RadGrid to contain another RadGrid to show child records, because Telerik's default child record view implementation was very difficult to follow for my end users. This was because all the tables at a level were visible at the same time. So I embedded a RadPanelBar inside the NestedViewTemplate of the master RadGrid so that they would only see one RadGrid at a time by expanding/collapsing the RadPanelBar items for each child RadGrid in the NestedViewTemplate. This works beautifully.

Problem

One of the child RadGrids in the RadPanelBar in the NestedViewTemplate has a GridTemplateColumn. This GridTemplate column has a RadPanelBar. The RadPanelBar only has one item in it. It will neither expand nor collapse by clicking on the item header. It will however do so if you click the arrow for the item. Also, an attached OnItemClicked event does not fire.

If I move the RadPanelBar up one level (i.e. outside of the NestedViewTemplate, into a GridTemplateColumn of the master RadGrid), it will expand and collapse normally with only one RadPanelItem in the RadPanelBar. The OnItemClicked event also fires.

The bug (i.e. refusal to expand/collapse & no OnItemClicked event fire) only seems to appear when the RadPanelBar is inside a GridTemplateColumn of a RadGrid that is inside another RadPanelBar that is inside a NestedViewTemplate of a master RadGrid and it only has one RadPanelItem.

...I hope you are following me so far. If not, here's a sample code mockup:

<telerik:RadGrid ID="MasterRadGrid" runat="server">
   <MasterTableView CommandItemDisplay="Bottom">
      <NestedViewTemplate>
         <telerik:RadPanelBar ID="RadPanelBar1" runat="server">
            <Items>
               <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 1">
                  <ContentTemplate>
                     <telerik:RadGrid ID="ChildRadGrid1" runat="server">
                        <MasterTableView runat="Server" CommandItemDisplay="Bottom">
                           <Columns>
                              <telerik:GridTemplateColumn HeaderText="Column" UniqueName="Column">
                                 <EditItemTemplate>
                                    <telerik:RadPanelBar ID="RpbColumn" runat="server">
                                       <Items>
                                          <telerik:RadPanelItem runat="server" Owner="RpbColumn">
                                             <!-- Assorted controls. This RadPanelItem won't expand here, unless in MasterRadGrid -->
                                          </telerik:RadPanelItem>
                                       </Items>
                                    </telerik:RadPanelBar>
                                 </EditItemTemplate>
                              </telerik:GridTemplateColumn>
                           </Columns>
                        </MasterTableView>
                     </telerik:RadGrid>
                  </ContentTemplate>
               </telerik:RadPanelItem>
               <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 2">
                  <!--- Another RadGrid -->
               </telerik:RadPanelItem>
               <telerik:RadPanelItem runat="server" Owner="RadPanelBar1" Text="Child Table 3">
                  <!--- Another RadGrid -->
               </telerik:RadPanelItem>
            </Items>
         </telerik:RadPanelBar>
      </NestedViewTemplate>
   </MasterTableView>
</telerik:RadGrid >

If I add another RadPanelItem to the deeply nested RadPanelBar (ID = "RpbColumn" in the above example) and set its ExpandMode = "SinglePanelItem", it will expand & collapse normally. I'm using Telerik v. 2011.3.1115.40.

Can someone please confirm that this is indeed a bug? Thanks in advance.
Denny
Top achievements
Rank 1
 answered on 12 Aug 2015
1 answer
118 views

I am using RadFilter on a page connected to a RadGrid in the simplest way.  The RadGrid built in filter generates a correct filterexpression for use in dynamic linq.  However the RadFilter gets everything correct except for the fact that the field names are prefixed with "it."  

I also decompiled the RadFilter and related code and came across the following code in which it appears that the "it" prefix is very intentional and also very hard-coded.  This is forcing me to put in an event handler to search for the prepended 'it' and remove it.  What is happening here?

 

:

public string FormatFieldName(string fieldName, Type dataType, bool isCaseSensitive)
{
dataType = RadFilterTypeHelper.GetNonNullableType(dataType);
if (dataType == typeof (string))
{
string str = isCaseSensitive ? "" : ".ToUpper()";
return string.Format("iif(it.{0}==null,\"\",it.{0}).ToString(){1}", (object) fieldName, (object) str);
}
if (!(dataType == typeof (char)))
return string.Format("it.{0}", (object) fieldName);
string str1 = isCaseSensitive ? "" : ".ToUpper()";
return string.Format("Char(iif(it.{0}==null,'''',it.{0})).ToString(){1}", (object) fieldName, (object) str1);
}

Charles
Top achievements
Rank 1
 answered on 12 Aug 2015
20 answers
1.1K+ views
Hello!!

I need to allow exporting all the rows of my RadGrid to .CSV, however after i tested the exportToCSV button, it only exports the results of the first page(showed on the webpage).

It's possible to export all the GRID data ?? Can you tell me how?

Another thing I need to know, is how can i export only one column values to a pdf or excell..instead of all the collumns unformatted??
Jayesh Goyani
Top achievements
Rank 2
 answered on 12 Aug 2015
1 answer
201 views

Hey Guys,

So I setup a basic RadGrid (see below) with a few columns only to discover that both the GridEditCommandColumn, PerformInsertButton and CancelButton don't do anything when clicked. Any ideas?

 ASPX

<telerik:RadGrid ID="rgIssuers" runat="server" AutoGenerateColumns="False">
    <MasterTableView DataKeyNames="ID" EditMode="InPlace" CommandItemDisplay="Top">
        <CommandItemSettings
            ShowAddNewRecordButton="true"
            ShowRefreshButton="true"                        
            ShowExportToExcelButton="false"
            ShowExportToWordButton="false"
            ShowExportToPDFButton="false"
            ShowExportToCSVButton="false"
            AddNewRecordText="Add New Issuer" />
        <Columns>
 
            <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditColumn" >
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="35px" />
            </telerik:GridEditCommandColumn>
                     
            <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                UniqueName="DeleteColumn" ConfirmText="Delete this Issuer?" ConfirmDialogType="RadWindow"
                ConfirmTitle="Delete" >
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="35px" />
            </telerik:GridButtonColumn>
 
            <telerik:GridBoundColumn DataField="Name" UniqueName="Name" DataType="System.String" HeaderText="Name"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AccessCode" UniqueName="AccessCode" DataType="System.String" HeaderText="Access Code"></telerik:GridBoundColumn>
            <telerik:GridTemplateColumn DataField="SupportedAssertions" UniqueName="SupportedAssertions" DataType="System.Int32" HeaderText="Supported Assertions">
                <ItemTemplate>
                    <asp:Label id="lblSupportedAssertions" runat="server"></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
                    <telerik:RadListBox ID="lbSupportedAssertions" runat="server" SelectionMode="Multiple"></telerik:RadListBox>
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Target">
                <ItemTemplate>
                    <asp:Label id="lblTarget" runat="server"></asp:Label>
                </ItemTemplate>
                <EditItemTemplate>
 
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

ASPX.VB

Protected Sub rgIssuers_NeedDataSource(sender As Object, e As GridNeedDataSourceEventArgs) Handles rgIssuers.NeedDataSource
 
    'get our issuers
    rgIssuers.DataSource = Issuer.FindByCLC(_csAC, _strCLC)
 
End Sub

infoweshanney
Top achievements
Rank 2
 answered on 12 Aug 2015
5 answers
310 views

With version 2012.2.607.35 of the Telerik.Web.UI.dll

<td>
    <telerik:RadListBox runat="server" ID="RadListBoxF" Height="230px" Width="98%" ButtonSettings-AreaWidth="35px" CheckBoxes="true" EmptyMessage="No Key Sets Added">
    </telerik:RadListBox>
</td>

 

The ListBox was fixed at the height, and any extra height needed was got to by a scroll bar. Empty message appears in the center of the box.

With version 2014.3.1024.35 of the dll.

The list box is the height of the items, and keeps growing. the empty message is at the top (but this is the only item in the box).

This is on IE9.

Ivan Danchev
Telerik team
 answered on 12 Aug 2015
1 answer
105 views

Hello,

I have a RadTreeList cotrol. Within this is a TreeListTemplateColumn.
Inside this I have two DIVs and radbutton configured as a custom toggle.  What I’d like to do is is when the user clicks the toggle button the system hides one div and shows the other.

I’ve had a go at this with little success.  Here is the code for the buttons

 

<telerik:RadButton ID="RadButton2" runat="server" ButtonType="LinkButton" Checked="True"
        Skin="Metro" ToggleType="CustomToggle" OnClientToggleStateChanged="SetVisibility"
        AutoPostBack="False">
        <ToggleStates>
            <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckboxChecked" Text="Existing" />
            <telerik:RadButtonToggleState PrimaryIconCssClass="rbToggleCheckbox" Text="New" />
        </ToggleStates>
    </telerik:RadButton>

 

And here is the associated JavaScript:

            function SetVisibility(sender, args)
    {
        switch (args.get_currentToggleState().get_text())
        {
            case "Existing":
                showstuff('existing');
                hidestuff('new');
                break;
            case "New":
                showstuff('new');
                hidestuff('existing');
                break;
            default:
                hidestuff('new');
                hidestuff('existing');
                break;
        }
    }
 
    function showstuff(boxid){
   document.getElementById(boxid).style.visibility="visible";
}
  
function hidestuff(boxid){
   document.getElementById(boxid).style.visibility="hidden";
}

 

The problem with this is that is doesn't matter which button (row) within the treelist you click, the only DIVs that get changed are those within the first row.
Any ideas how I can overcome this?

Eyup
Telerik team
 answered on 12 Aug 2015
2 answers
227 views
We have a scenario, with a batch-mode grid page, that is inserted into multiple pages (via an IFrame) on the site.  Depending upon the containing page, the grid will show different (but related) columns.  In most cases, we have the grid freeze the first three columns ​which works fine.  However, in a two cases, the frozen columns are hidden and horizontal scrolling is not necessary.  As such, we would like to simply remove the FrozenColumnsCount (or possibly just set it to 0?).  How can I do this using both client-side and code-behind code?
Eyup
Telerik team
 answered on 12 Aug 2015
2 answers
68 views

Hi,

I'm using this example - http://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/replace-the-edit-form

when the AppointmentEditing event fires the apt object is blank?

function AppointmentEditing(sender, eventArgs) {
        var apt = eventArgs.get_appointment();
        var oWindow = window.radopen("CalenderAdvancedForm.aspx?Mode=Edit&AppointmentID=" + apt.ID, "AdvancedForm");
        oWindow.Maximize();
        oWindow.SetTitle("Edit Appointment");
        oWindow.Center();
        eventArgs.set_cancel(true);
    }

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataDescriptionField="Description" DataEndField="End" DataKeyField="ID" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataReminderField="Reminder" DataSourceID="SqlDataSource1" DataStartField="Start" DataSubjectField="Subject" Height="700px" SelectedView="WeekView" Skin="Metro" TimeZoneID="Central Standard Time" Width="990px" WorkDayEndTime="18:00:00" CustomAttributeNames="Type" EnableCustomAttributeEditing="True" TimeZoneOffset="-06:00:00" StartInsertingInAdvancedForm="false"
     OnClientAppointmentEditing="AppointmentEditing" 
     OnClientAppointmentInserting="AppointmentInserting" >

Ivan Danchev
Telerik team
 answered on 12 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?