|
A |
B |
C |
||||
|
D |
E |
I |
||||
|
F |
G |
H |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Can you share me a sample code?
Thanks, Malli
<telerik:RadListBox ID="rlbBusinessCategories" runat="server" Skin="Office2007" CheckBoxes="true" Width="100%" Height="100%" ></telerik:RadListBox><telerik:RadTreeView id="rtServices" runat="server" Skin="Office2007" Width="100%" Height="100%" AllowNodeEditing="False" EnableDragAndDrop="False" MultipleSelect="True" > </telerik:RadTreeView>
<style type="text/css" media="print"> div[style] { max-width: 670px; } div.rsOverflowExpand { width: 668px !important; } .rsHorizontalHeaderTable { width: 668px !important; } .rsHorizontalHeaderWrapper { } .rsHorizontalHeaderWrapper div { } .rsContentTable { width: 668px !important; } .rsAptContent { font-size: 9px !important; } .rsContent table { width: 668px !important; } .RadScheduler { width: 670px !important; } </style>private void SetWidth() { Double width = 100d / scheduler.TimelineView.NumberOfSlots; scheduler.ColumnWidth = new Unit(width, UnitType.Percentage); }<div> <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" ClientEvents-OnRequestStart="conditionalPostback"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="rgInquiry"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="rgInquiry" LoadingPanelID="RadAjaxLoadingPanel1" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server"> <script type="text/javascript"> // <![CDATA[ //On insert and update buttons click temporarily disables ajax to perform upload actions function conditionalPostback(sender, eventArgs) { var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig"); if (eventArgs.get_eventTarget().match(theRegexp)) { var upload = $find(window['UploadId']); //AJAX is disabled only if file is selected for upload if (upload.getFileInputs()[0].value != "") { eventArgs.set_enableAjax(false); } } } function validateRadUpload(source, e) { e.IsValid = false; var upload = $find(source.parentNode.getElementsByTagName('div')[0].id); 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; } } } // ]]> </script> </telerik:RadCodeBlock> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" /> <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowPaging="True" PageSize="10" GridLines="None" OnUpdateCommand="rgInquiry_ItemUpdated" OnItemCommand="rgInquiry_ItemCommand" OnDeleteCommand="rgInquiry_ItemDeleted" OnCancelCommand="rgInquiry_CancelCommand" OnInsertCommand="rgInquiry_ItemInserted" AllowFilteringByColumn="true" OnNeedDataSource="rgInquiry_NeedDataSource" OnItemDataBound="rgInquiry_ItemDataBound" OnItemCreated="rgInquiry_ItemCreated"> <MasterTableView CommandItemDisplay="Top" DataKeyNames="InquiryID" AllowMultiColumnSorting="True" GroupLoadMode="Server" CommandItemSettings-AddNewRecordText="Add New Inquiry"> <Columns> </Columns> <EditFormSettings ColumnNumber="2" CaptionFormatString="Add/Edit properties of Inquiry : " EditFormType="Template"> <FormTemplate> <div> <telerik:RadComboBox ID="rcbClientNew" runat="server" Width="300px" EmptyMessage="Select Client" DataTextField="ClientID" Filter="Contains" AllowCustomText="true" AutoPostBack="true" OnSelectedIndexChanged="rcbClient_SelectIndexChanged" CausesValidation="false"> </telerik:RadComboBox> <asp:Label ID="lblClientName" SkinID="LabelU" runat="server"> <br /> <asp:Label ID="Label1" SkinID="LabelU" runat="server" Text="Attach File: "> </asp:Label> <telerik:RadProgressManager ID="radProgreesManager1" runat="server" EnableTheming="true" /> <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" MultipleFileSelection="Automatic"> </telerik:RadAsyncUpload> <telerik:RadProgressArea ID="radProgressArea1" runat="server" EnableTheming="true"> </telerik:RadProgressArea> <br /> <div class="DynButton"> <asp:Button ID="btnParentSubmit" runat="server" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' /> </div> <div class="DynButton"> <asp:Button ID="btnPatentReset" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel" /> </div> </div> </FormTemplate> </EditFormSettings> </MasterTableView> </telerik:RadGrid> </div>We are using Version 2010.3.121735 of the RAD Controls. According to “What's New in RadScheduler for ASP.NET AJAX Q1 SP2 “ there is get_height / set_height property available.
What's New in RadScheduler for ASP.NET AJAX Q1 SP2 2009 (Version Number 2009.1.527)
However, it only seems to work in IE and not other browse; which is a must have for our web application. The following code shows that the change occurs in IE, but not other browsers.
var splitter = $find("<%= RadSplitter1.ClientID %>");
var scheduler = $find("<%=RadScheduler1.ClientID%>");
alert("splitter.get_height = " + splitter.get_height());
scheduler.set_height(splitter.get_height());
alert("scheduler.get_height = " + scheduler.get_height())
In IE the alert displays the correct value; however in other browsers it displays a value that was set by the height attribute of the scheduler .
<telerik:RadScheduler runat="server" ID="RadScheduler1" Height="425px" …
How do we dynamically set the height client-side on all browsers?
Thanks in advance,
Keith E.