Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
Greetings, 

I've read on some old forum threads that a RadGrid's ClientSettings must set UseStaticHeaders to "true" in order for FrozenColumnsCount > 0 to take effect.

We've also observed this behavior in our use of the ClientSettings.

1) Please confirm : Must UseStaticHeaders be set to "true" in order for FrozenColumnsCount > 0 to take effect ? 

2) If #1 is confirmed, Why ?   Why was the control designed this way ? 


  • This dependency doesn't seem to make sense from a technical perspective either; in fact, it seems like it'd be harder (more complex) for Telerik to enforce/create the frozen column behavior in a UseStaticHeaders="True" scenario as compared to a UseStaticHeaders="False" due to the way UseStaticHeaders actually renders the RadGrid HTML (which is in separate HTML tables).
  • This dependency doesn't seem to make logical/ use case perspective. Isn't a common scenario one where a user doesn't want the headers fixed but does want a column or two fixed ?


3) If #1 is confirmed, is this strange, undocumented dependency already fixed in the 2013 release(s)? If not, will it be decoupled soon?
Andrey
Telerik team
 answered on 11 Jun 2013
4 answers
225 views
Hi,

I have a grid with a CommandItemTemplate. When I press the LinkButton "btCommand" I want first to treat the event on client side.
The behavior I'm getting is when I press the LinkButton the page immediatly does the PostBack without calling first the "gridCommand" function, thus I never get the alert('test') calle.


<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
         
        function gridCommand(sender, args) {
            alert('test');
             if (args.get_commandName().startsWith("DoSomething")) {
                  ....
                }
            }
          
    </script>
</telerik:RadScriptBlock>  
   
  <telerik:RadGrid ID="gv" runat="server" AllowFilteringByColumn="false"
        AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" 
        EnableAJAX="false" EnableEmbeddedSkins="false" GridLines="Horizontal" OnItemCommand="gv_ItemCommand"
        OnItemCreated="gv_ItemCreated" PageSize="30"   Width="100%"
        OnExcelMLExportRowCreated="gv_ExcelMLExportRowCreated" OnExcelMLExportStylesCreated="gv_ExcelMLExportStylesCreated">
        <ExportSettings IgnorePaging="false"></ExportSettings>       
        <MasterTableView AllowMultiColumnSorting="false" CommandItemDisplay="Top" DataKeyNames="ID"
            GridLines="None"  >
            <Columns>
                <telerik:GridBoundColumn AllowFiltering="false" AllowSorting="True" DataField="ID"
                    HeaderText="ID" SortExpression="ID" UniqueName="ID">
                    
                </telerik:GridBoundColumn>
               .....
            </Columns>
            <CommandItemTemplate>
                <table class="Normal" cellspacing="0" cellpadding="4" border="0" width="100%">
                    <tr>
                        <td align="right">
                            <asp:LinkButton ID="btCommand" runat="server" CommandName="DoSomething" >DoSomething</asp:LinkButton>
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
            <CommandItemStyle HorizontalAlign="Right" />
        </MasterTableView>
        <ClientSettings>
         <ClientEvents OnCommand="gridCommand" />
        </ClientSettings>
    </telerik:RadGrid>


Thanks in advance.
Eyup
Telerik team
 answered on 11 Jun 2013
3 answers
194 views
Hi,

I have used RadAjaxLoadingPanel in my page as following.
------------------------------------------------------------------------------
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">     <script type="text/javascript">          function requestStart(sender, args) {             if (args.get_eventTarget().indexOf("ExportToExcelButton") >= 0) {                 args.set_enableAjax(false);             }         }         function ValidateData() {                          return true;         }     </script>          <table style="width100%;">                 <tr>             <td class="TDInfoLabel" style="width20%;"></td>             <td class="TDInfoValue">                 <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="button" OnClientClick="return ValidateData();" />             </td>         </tr>     </table>     <br />     <div style="overflowautoheight100%font-size12px;">                 <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">         </telerik:RadAjaxLoadingPanel>         <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"             ClientEvents-OnRequestStart="requestStart">         <telerik:RadGrid ID="rgvUserData" runat="server" Skin="Hay" AutoGenerateColumns="False" CellSpacing="0" GridLines="None"             PageSize="50" AllowPaging="True" PagerStyle-Mode="NextPrevAndNumeric">             <ClientSettings AllowGroupExpandCollapse="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">                 <Selecting AllowRowSelect="True"></Selecting>             </ClientSettings>             <MasterTableView CommandItemDisplay="Top" GroupLoadMode="Client" AllowMultiColumnSorting="false" GroupHeaderItemStyle-ForeColor="Black"                 PageSize="50" UseAllDataFields="False">                 <CommandItemSettings ExportToPdfText="Export to PDF" ShowExportToExcelButton="true" ShowAddNewRecordButton="false"></CommandItemSettings>                 <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>                 <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>                 <EditFormSettings>                     <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>                 </EditFormSettings>                 <GroupHeaderItemStyle ForeColor="Black"></GroupHeaderItemStyle>             </MasterTableView>             <ExportSettings FileName="ExportedData" IgnorePaging="True" OpenInNewWindow="False">                 <Excel Format="Html"></Excel>             </ExportSettings>             <HeaderStyle ForeColor="White" />             <FilterMenu EnableImageSprites="False"></FilterMenu>         </telerik:RadGrid>         </telerik:RadAjaxPanel>     </div>     <br /> </asp:Content>

------------------------------------------------------------------------------
Now If I try to access any control in script section by following way
var btn = document.getElementById("<%= btnSearch.ClientID%>"); 
Or
var btn = $find("<%= btnSearch.ClientID%>"); 

then I am getting following errors when I try to run the page.
Crome: Error : The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). 

IE: 0x800a138f - JavaScript runtime error: Unable to get property 'notifyScriptLoaded' of undefined or null reference.

If I delete the lines accessing the controls from JavaScript section then it runs fine.

Regards,
John

msigman
Top achievements
Rank 2
 answered on 11 Jun 2013
1 answer
95 views
I am trying to create a appointment in month view when i select multiple date and in TimeSlotContextMenuItemClicked function it only returns end date as next day. Can anyone help me with this please?
Plamen
Telerik team
 answered on 11 Jun 2013
7 answers
174 views
The treeview has drag and drop functionality and works if there are a few drags and drops. If I keep on drag and drops (approx 10+) then the nodes do not expand. I have tried with multiselect = false (design time), EnableDragAndDrop = false and enabled = false in the nodedrop event while I am reordering items in the tree.

The telerik.web.ui version I am using is 2013.1.417.35 with Sharepoint site.

Has anybody else experienced this behavior? Is there any fix for it?
Plamen
Telerik team
 answered on 11 Jun 2013
8 answers
195 views
How does one go about adding/removing/disabling "nodes"  in the tree server-side? How does one specify that certain nodes should be checkable, and others not?
Kate
Telerik team
 answered on 11 Jun 2013
1 answer
96 views

Hi,

I have a radSplitter with two radPanes. In first pane I have a radGrid and in second I have a radScheduler with scroll bars and both are of same height. Now i want to synchronize the scrolling between radGrid and radScheduler.(i.e if i move the scroll bar in radGrid then radScheduler should also move and vice versa). I want it to be done in the client side javascript.I tried it but couldn't find what is the event that is getting fired when i scroll the radscheduler...Can anybody tell me how to achieve this?

Plamen
Telerik team
 answered on 11 Jun 2013
1 answer
112 views
Hi,

I have a radSplitter with two radPanes. In first pane I have a radGrid and in second I have a radScheduler with scroll bars and both are of same height. Now i want to synchronize the scrolling between radGrid and radScheduler.(i.e if i move the scroll bar in radGrid then radScheduler should also move and vice versa). I want it to be done in the client side javascript.Can anybody tell me how to achieve this?

Plamen
Telerik team
 answered on 11 Jun 2013
1 answer
116 views
Hi.

I have implemented a RadMenu system and noticed that the first and last menu item does not have any of the styling like the other menu items in between from this CSS:

 

.RadMenu_Default .rmRootGroup,

 

.RadMenu_Default a.rmLink,

 

.RadMenu_Default .rmGroup .rmText,

 

.RadMenu_Default .rmVertical .rmText,

 

.RadMenu_Default .rmLeftArrow,

 

.RadMenu_Default .rmRightArrow,

 

.RadMenu_Default .rmTopArrow,

 

.RadMenu_Default .rmBottomArrow

{

 

background-image: url('../Images/rmSprite.png');

 

background-color: transparent;

}

 

.RadMenu_Default .rmRootGroup

{

 

background: #0072C6 !important; /* Old browsers */

 

background: linear-gradient(to bottom, #0072C6 0%,#8eb92a 50%,#72aa00 51%,#003A66 100%) !important; /* W3C */

 

background-image: -ms-linear-gradient(bottom, #003A66 0%, #0072C6 100%) !important; /* IE 10 */

 

/*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0072C6', endColorstr='#003A66',GradientType=0 ) !important; /* IE6-9 */

 

color: White !important;

}

 

.RadMenu_Default .rmGroup, .RadMenu_Default .rmMultiColumn, .RadMenu_Default .rmGroup .rmVertical

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default .rmHorizontal .rmRootLink span.rmText:hover

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default a.rmExpanded, .RadMenu_Default a.rmExpanded:hover

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default .rmItem .rmFirst .rmLink .rmText:hover, .RadMenu_Default .rmItem .rmLast .rmLink .rmText:hover

{

 

background: #0072C6 !important;

 

color: White !important;

 

background-image: none !important;

}

 

.rmText

{

 

color : White;

}



I am wondering if there is a way to make the styling for the first and last menu item the same as what is being rendered/styled for the other menu items?

Ahmed Ilyas
Top achievements
Rank 1
 answered on 11 Jun 2013
3 answers
292 views
Tabs in Rad Editor is not working - it just not focus the next control when it doesn't have anything in content area. 
It works fine when there is content in the content area of RadEditor. Pressing tab moves the focus to the next control and works fine. 
When there is no content, pressing tab just starts adding following row to the 'DescriptionWrapper' table everytime. 
<tr><td class="reWrapper_corner reCorner_bottom_left"> </td><td class="reWrapper_center reCenter_bottom" colspan="3"> </td><td class="reWrapper_corner reCorner_bottom_right"> </td></tr>
Stamo Gochev
Telerik team
 answered on 11 Jun 2013
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?