| <telerik:RadCaptcha CaptchaImage-BackgroundNoise="Medium" CaptchaImage-TextColor="DarkSlateGray" |
| EnableViewState="true" ProtectionMode="Captcha" CaptchaImage-TextChars="LettersAndNumbers" |
| ID="rcapContactUs" runat="server" ErrorMessage=" The code you entered is not valid." |
| Display="Dynamic" SetFocusOnError="True" ValidationGroup="MyContact" |
| EnableRefreshImage="true" |
| Font-Size="Smaller" CaptchaTextBoxCssClass="pageTextbox" |
| CaptchaTextBoxLabelCssClass="pageLabelsHead" Font-Names="Arial" |
| IgnoreCase="False"> |
| <captchaimage backgroundnoise="Medium" textcolor="DarkSlateGray" /> |
| </telerik:RadCaptcha> |
<
telerik:RadCaptcha ID="RadCaptcha1" runat="server" ValidationGroup="Group"
ErrorMessage="Page not valid. The code you entered is not valid." >
</telerik:RadCaptcha>
Hello,
I have a scrolling grid using static headers and no paging. I need to have the grid expand inside it's container but I've gone through the forums for the splitter and grid as well as the code library and I can't seem to get it to work correctly.
I want the grid to scroll, not the splitter pane so that the column headers stay on the screen. Also, if it's not too much to ask I'd like to be able to have the grid resize when the screen resizes and causes the splitter to resize.
The page is set up with a splitter as the main control set for a horizontal orientation. In the splitter there are 2 RadPanes. The top one contains header text and a toolbar. The bottom one contains the grid. Around the grid I added a div just for padding.
What is happening with this setup is the splitter occupies 100% of the page correctly. The bottom pane expands to fill the rest of the page under the header, which is correct. But the grid opens to around 200px high and 40px wide and then immediatly snaps to full width (which is correct) but only shows the column headers and another 10px (around 30px total height).
Attached is a screen shot of the grid after it expands.
| <style type="text/css"> |
| html, body, form |
| { |
| height: 100%; |
| margin:0; |
| padding:0; |
| overflow: hidden; |
| } |
| </style> |
| <telerik:RadSplitter ID="rsMain" runat="server" Height="100%" Width="100%" Orientation="Horizontal"> |
| <telerik:RadPane ID="rpTop" runat="server" Height="110px" Locked="true"> |
| <div style="padding: 10px; padding-bottom:0;"> |
| This is my page header |
| <div style="padding-bottom: 20px"> |
| <telerik:RadToolBar ID="rtbToolbar" runat="server"> |
| <Items> |
| <telerik:RadToolBarButton runat="server" SkinID="FolderUp" id="rtbbBack" PostBack="false"></telerik:RadToolBarButton> |
| <telerik:RadToolBarButton runat="server" SkinID="Refresh" id="rtbbRefresh" PostBack="false"></telerik:RadToolBarButton> |
| </Items> |
| </telerik:RadToolBar> |
| </div> |
| </div> |
| </telerik:RadPane> |
| <telerik:RadPane ID="rpBottom" runat="server" Height="100%"> |
| <div style="padding: 10px; padding-top: 0;"> |
| <telerik:RadGrid ID="rgMyGrid" runat="server" OnNeedDataSource="rgMyGrid_NeedDataSource" Height="100%" Width="100%"> |
| <ClientSettings> |
| <Scrolling AllowScroll="true" UseStaticHeaders="true" /> |
| </ClientSettings> |
| <MasterTableView AutoGenerateColumns="false" TableLayout="Auto"> |
| <Columns> |
| <telerik:GridHyperLinkColumn UniqueName="Name" DataTextField="Name" DataNavigateUrlFields="DetailsUrl" HeaderText="Name"> |
| </telerik:GridHyperLinkColumn> |
| <telerik:GridImageColumn UniqueName="IsCustom" HeaderStyle-Width="60px" HeaderText="Custom" DataImageUrlFields="IsCustomImageUrl" |
| ItemStyle-HorizontalAlign="Center" /> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </div> |
| </telerik:RadPane> |
| </telerik:RadSplitter> |
Anyone have any ideas?

<
div id="div_ChartWidgetMain" runat="server" style="padding-top:10px;overflow:visible; background-color:White; width:100%;">
<telerik:RadAjaxManagerProxy ID="radAjaxManagerProxy_ChartWidget" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="ChartSelector">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ChartBar"/>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="btnShow" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="PanelGraphicContainer"
LoadingPanelID="radAjaxLoadingPanel"/>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ButtonApplySelectedCPU" >
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="ChartBar" />
<telerik:AjaxUpdatedControl ControlID="PanelGraphicContent"
LoadingPanelID="radAjaxLoadingPanel" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
<telerik:RadWindowManager ID="RadWindowManager_ChartWidget" runat="server"
ShowContentDuringLoad="false"
EnableEmbeddedSkins="false" VisibleStatusbar="false"
Behavior="Default" Behaviors="None" Skin="AvalonSkin"
VisibleTitlebar="True" Modal="true" style="z-index:9000">
<Windows>
<telerik:RadWindow ID="AlertInstanceDetail" runat="server"
Width="850px" Height="500"
BorderColor="#BDE0B8" BorderStyle="Solid" BorderWidth="4px"
Title="Instances Detail"
ReloadOnShow="true" OnClientClose="CallBackFunction">
</telerik:RadWindow>
<telerik:RadWindow ID="CPUTableWindow" runat="server"
Width="800px" Height="650px"
BorderColor="#bde0b8" BorderStyle="Solid" BorderWidth="4px"
Title="CPU Table Selections"
VisibleStatusbar="false"
OnClientShow="OnCpuTableClientShow"
Behavior="Close" OnClientClose="OnCpuTableClientClose"
>
</telerik:RadWindow>
<telerik:RadWindow ID="PrintPreviewWindow" runat="server"
Width="900px" Height="650px"
BorderColor="#bde0b8" BorderStyle="Solid" BorderWidth="4px"
Title="Print Chart"
VisibleStatusbar="false"
OnClientShow="OnPrintPreviewClientShow"
Behavior="Close" OnClientClose="OnPrintPreviewClientClose"
>
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<telerik:RadAjaxLoadingPanel ID="radAjaxLoadingPanel_ChartWidget" runat="server" ZIndex="5980">
<table style="width:100%;height:100%;background-color:#E1E1E1;">
<tr style="height:100%; width:100%;">
<td align="center" valign="middle" style="width:100%; height:100%">
<img alt="Loading..." src='~/Images/logoBig.gif' style="border:0;" ID="imgLoading" runat="server" />
</td>
</tr>
</table>
</telerik:RadAjaxLoadingPanel>
<asp:Panel id="ChartBar" class="Left" style="margin-left:10px;" runat="server">
<span style="font-size:16px;font-weight:bold">Chart:</span>
<telerik:RadComboBox ID="ChartSelector" CausesValidation ="false"
runat="server" Height="150px" Width="250" EnableEmbeddedSkins="false"
OnClientDropDownOpened="OnClientDropDownOpenedHandler" OnClientLoad="comboLoad"
Skin="Default" onselectedindexchanged="ChartSelector_SelectedIndexChanged" >
<ItemTemplate>
<div id="div1" onclick="StopPropagation(event);">
<telerik:RadTreeView ShowLineImages="true" EnableEmbeddedSkins="false" Skin="AvalonSkin"
style="white-space:nowrap" ID="Charts" runat="server"
OnClientNodeClicking="nodeClicking"
OnNodeClick ="OnTreeNodeClick"
CausesValidation="false" RegisterWithScriptManager="False" >
</telerik:RadTreeView>
</div>
</ItemTemplate>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</telerik:RadComboBox>
<telerik:RadComboBox ID="ShowSelector" runat="server" Skin="Default"
Width="160px">
<Items>
<telerik:RadComboBoxItem Text="Show Charts" Value="0" />
<telerik:RadComboBoxItem Text="Show Data" Value="1" />
</Items>
</telerik:RadComboBox>
<telerik:RadComboBox ID="intervalMode" runat="server" Skin="Default" Width="160px"
OnClientSelectedIndexChanged="needsToSelectIntervals"
EmptyMessage="Select Mode"
Enabled="false">
</telerik:RadComboBox>
<telerik:RadComboBox ID="intervals" runat="server" Skin="Default" Width="200px" Height="200"
HighlightTemplatedItems="true"
MarkFirstMatch="false"
AllowCustomText="false"
EmptyMessage="Select Intervals"
Enabled="false">
<HeaderTemplate>
<img ID="imgSelectAllintervals" style="float:left; overflow:visible; cursor:pointer; margin-right:5px"
src="~/Images/mini_select.jpg" runat="server" onclick="javascript:IntervalsSelectAll();" alt="X" />
<img ID="imgClearintervals" style="float:left; overflow:visible; cursor:pointer;"
src="~/Images/mini_clear.jpg" runat="server" onclick="javascript:IntervalsClearAll();" alt="X"/>
</HeaderTemplate>
<ItemTemplate>
<asp:CheckBox runat="server" ID="checkBox" onclick="clickOnIntervalCheck(event);" Text='<%# DataBinder.Eval(Container, "Text") %>' />
</ItemTemplate>
<CollapseAnimation Duration="200" Type="OutQuint" />
</telerik:RadComboBox>
</asp:Panel>
<span style="margin-left:10px">
<asp:Button ID="btnShow" runat="server" Text="Go" onclick="btnShow_Click" CssClass="GreenButton" />
<asp:Button ID="buttonPrint" runat="server" Text="Print" Enabled="false"
CssClass="GrayButton" OnClientClick="showPrintPreviewWindow()" />
</span>
<br clear="all" />
<asp:Label runat="server" ID="lblError" Text="" CssClass="ErrorMessage"></asp:Label>
<br clear="all" />
<asp:Panel id="PanelGraphicContainer" style="width:100%;" runat="server">
<asp:Panel ID="PanelGraphicContent" runat="server" style="min-height:300px;">
<div style="position: absolute;" id="divInstances" runat="server"><%-- height: 250px; width:120px --%>
<div id="divInstanceChart" runat="server" visible="false">
<img ID="tbimage" alt="Show/Hide Instances" src="~/Images/in_green.jpg" runat="server" style="overflow: visible; padding-left:-10px; text-align:right;float:left;" onmouseover="javascript:InitializeAnimation();" />
<div id="slidingDiv" style="visibility: hidden; float:left;display: block;margin-left:3px;">
<telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Default" Height="290px"
ExpandMode="FullExpandedItem" PersistStateInCookie="true" >
<Items>
<telerik:RadPanelItem runat="server" Value="PanelItem1" >
<ItemTemplate>
<table width="100%">
<tr style="width:100%;">
<td style="text-align:right;width:100%;">
<img ID="tbimageDetail" style="overflow: visible; cursor: pointer;" src="~/Images/Detail.jpg" runat="server" />
</td>
</tr>
</table>
<telerik:RadGrid ID="rgInstanceSelector" AllowMultiRowSelection="true"
AllowSorting="False"
AutoGenerateColumns="False"
Skin="Default"
runat="server" Width="98%" Height="225px">
<ClientSettings>
<Selecting AllowRowSelect="true"/>
<ClientEvents OnGridCreated="GetGridObject" OnRowSelected="GetRowSelected" OnRowDeselected="GetRowSelected"></ClientEvents>
<Scrolling UseStaticHeaders="true" AllowScroll="true" />
</ClientSettings>
<MasterTableView Width="98%" runat="server" ItemStyle-BackColor="#dfedd2">
<Columns>
<telerik:GridClientSelectColumn ItemStyle-Height="18px" UniqueName="CheckboxSelectColumn" HeaderStyle-Width="25px" HeaderButtonType="TextButton" HeaderText="" />
<telerik:GridBoundColumn ItemStyle-Height="18px" HeaderText="Process Instances" HeaderStyle-Width="200px" DataField="Item"></telerik:GridBoundColumn>
</Columns>
<ItemStyle BackColor="#dfedd2" CssClass="rmRadGridText"/>
<AlternatingItemStyle BackColor="#F7F7F7" CssClass="rmRadGridText"/>
</MasterTableView>
</telerik:RadGrid>
<table>
<tr>
<td style="text-align:left;">
<img ID="imgSelect" style="overflow: visible;cursor: pointer;" src="~/Images/select.jpg" runat="server" />
</td>
<td style="text-align:right;">
<img ID="imgClear" style="overflow: visible; cursor: pointer;" src="~/Images/clear.jpg" runat="server" onclick="javascript:Clear();" />
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
</div>
</div>
</div>
<telerik:RadMultiPage ID="RadMultiPage" runat="server" >
<telerik:RadPageView ID="RadPageViewGraphic" runat="server">
<div ID="divGraphic" runat="server" style="width:100%;"></div>
</telerik:RadPageView>
<telerik:RadPageView ID="RadPageViewTable" runat="server">
<Widget:ChartTable ID="ChartTableWidget" runat="server" />
</telerik:RadPageView>
<telerik:RadPageView Selected="true" ID="RadPageViewDefault" runat="server">
<div style="height:350px"></div>
</telerik:RadPageView>
</telerik:RadMultiPage>
</asp:Panel>
<div style="margin-top:20px;">
<UserControl:UserControlPIMode ID="UserControlPIModeChart" runat="Server" />
</div>
<%
-- Properties --%>
<asp:Button ID="ButtonApplySelectedCPU" runat="server" style="display:none" OnClick="ButtonApplySelectedCPU_Click" />
<asp:HiddenField ID="HiddenFieldSelectedCPU" runat="server" />
<asp:HiddenField ID="hiddenFieldTimeframeValue" runat="server" />
<asp:HiddenField ID="hiddenFieldPFlagType" runat="server" />
<asp:HiddenField ID="hiddenFieldTimeframeMode" runat="server" />
<%
-- Attention: they must be inside of the Update Panel or they will not be updated --%>
</asp:Panel>
<br style="clear:both;display:none"/>
</
div>
>)
The bold part of the code is the combobox that creating the problem.
Please anybody knows the solution, let me know as soon as possible.
Thanks in advance.
Regards,
Vipul
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
| <%@ 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></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadUpload ID="RadUpload1" InitialFileInputsCount="1" AllowedFileExtensions=".txt" |
| TargetFolder="~/uploads" runat="server" ControlObjectsVisibility="None"> |
| </telerik:RadUpload> |
| <asp:CustomValidator ID="CustomValidator1" runat="server" Display="None" ErrorMessage="Error" |
| ValidationGroup="MyFile" ClientValidationFunction="validateRadUpload" /> |
| <cc1:ValidatorCalloutExtender ID="VCE_CustomValidator1" runat="server" TargetControlID="CustomValidator1"> |
| </cc1:ValidatorCalloutExtender> |
| </div> |
| <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="MyFile" /> |
| </form> |
| <script type="text/javascript"> |
| function validateRadUpload(source, e) { |
| e.IsValid = false; |
| var upload = $find("<%= RadUpload1.ClientID %>"); |
| var inputs = upload.getFileInputs(); |
| for (var i = 0; i < inputs.length; i++) { |
| //check for empty string or invalid extension |
| if (inputs[i].value != "" && upload.isExtensionValid(inputs[i].value)) { |
| e.IsValid = true; |
| break; |
| } |
| else { |
| e.IsValid = false; |
| } |
| } |
| } |
| </script> |
| </body> |
| </html> |
| <telerik:RadComboBox ID="rcbDeparture" runat="server" Skin="Vista" |
| DropDownWidth="350px" MaxHeight="300px" |
| EnableLoadOnDemand="True" |
| EmptyMessage="Choose City" |
| OnItemsRequested="rcbDeparture_ItemsRequested" > |
| <ExpandAnimation Type="None" /> |
| <CollapseAnimation Type="None" /> |
| </telerik:RadComboBox> |
| protected void rcbDeparture_ItemsRequested(object o, RadComboBoxItemsRequestedEventArgs e) |
| { |
| var combo = (RadComboBox)o; |
| var locations = MyService.AllDepartures(e.Text); |
| combo.Items.Clear(); |
| if (locations.Count > 0) |
| { |
| bool found = false; |
| foreach (var l in locations) |
| { |
| var item = new RadComboBoxItem(l.Name, l.ID.ToString()); |
| if (!found) |
| { |
| item.Selected = true; |
| found = true; |
| } |
| combo.Items.Add(item); |
| } |
| combo.Items[0].Selected = true; |
| } |
| } |