<div style="padding: 3px; border: 1px solid #000000; width: 100%; margin-bottom: 20px;"> <h3>Upload a New Document</h3> <table> <tr> <td align="right" valign="top" class="formlabel"> Key Words: </td> <td> <asp:TextBox ID="txtKeywords" runat="server" Width="300" TextMode="MultiLine" MaxLength="3000"></asp:TextBox> </td> <td rowspan="2"> <asp:Repeater ID="repeaterValidResults" runat="server" Visible="False"> <HeaderTemplate> <div style="color: green">Uploaded valid files:</div> </HeaderTemplate> <ItemTemplate> <%#DataBinder.Eval(Container.DataItem, "FileName")%> (<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>)<br /><br /> </ItemTemplate> </asp:Repeater> <asp:repeater id="repeaterInvalidResults" runat="server" visible="False"> <HeaderTemplate> <div style="color: red; padding-top: 40px;">Invalid files:</div> </HeaderTemplate> <itemtemplate> File: <%#DataBinder.Eval(Container.DataItem, "FileName") %> (<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + " bytes"%>) <br /> Mime-type: <%#DataBinder.Eval(Container.DataItem, "ContentType").ToString()%> </itemtemplate> </asp:repeater> </td> </tr> <tr> <td align="right" valign="top" class="formlabel"> File: </td> <td>Allowed File Types: <%=String.Join(",", RadUpload1.AllowedFileExtensions)%><br /> Max File Size: <%=RadUpload1.MaxFileSize.ToString("N0")%> Bytes <telerik:RadUpload ID="RadUpload1" runat="server" maxfilesize="50000000" InitialFileInputsCount="1" MaxFileInputsCount="1" AllowedFileExtensions=".doc,.docx,.pdf,.ppt,.pptx,.xls,.xlsx" ControlObjectsVisibility="None" EnableFileInputSkinning="true" InputSize="90" Width="500px" /> </td> </tr> </table> <telerik:RadProgressManager id="Radprogressmanager1" runat="server" /> <telerik:RadProgressArea id="progressArea1" runat="server"/> <asp:Button id="buttonSubmit" runat="server" CssClass="RadUploadSubmit" OnClick="buttonSubmit_Click" Text="Submit" style="MARGIN-TOP: 6px" /></div><telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" CellSpacing="0" DataSourceID="DocumentsSqlDataSource" GridLines="None" AutoGenerateColumns="False"><MasterTableView DataKeyNames="DocumentID" DataSourceID="DocumentsSqlDataSource" AllowAutomaticUpdates="True" AllowAutomaticInserts="False" AllowAutomaticDeletes="true"><CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings><RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column"><HeaderStyle Width="20px"></HeaderStyle></RowIndicatorColumn><ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn> <Columns> <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column" ItemStyle-Width="50px" HeaderStyle-Width="50px"><HeaderStyle Width="50px"></HeaderStyle><ItemStyle Width="50px"></ItemStyle> </telerik:GridEditCommandColumn> <telerik:GridButtonColumn ConfirmText="Delete this Document? This cannot be undone." ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="50" /> </telerik:GridButtonColumn> <telerik:GridBoundColumn DataField="DocumentID" DataType="System.Int32" FilterControlAltText="Filter DocumentID column" HeaderText="DocumentID" ReadOnly="True" SortExpression="DocumentID" UniqueName="DocumentID" Visible="false"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="subCasIdx" DataType="System.Int32" FilterControlAltText="Filter subCasIdx column" HeaderText="subCasIdx" SortExpression="subCasIdx" UniqueName="subCasIdx" Visible="false" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridHyperLinkColumn DataNavigateUrlFields="FullPath" DataTextField="DocumentFileName" HeaderText="File" FilterControlAltText="Filter FullPathcolumn column" UniqueName="FullPathcolumn" ItemStyle-Wrap="false" Target="_blank"> </telerik:GridHyperLinkColumn> <telerik:GridBoundColumn DataField="DocumentFileName" FilterControlAltText="Filter DocumentFileName column" HeaderText="DocumentFileName" SortExpression="DocumentFileName" UniqueName="DocumentFileName" Visible="false" ReadOnly="true"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="Keywords" FilterControlAltText="Filter Keywords column" HeaderText="Keywords" SortExpression="Keywords" UniqueName="Keywords" Display="True"> <EditItemTemplate> <asp:TextBox ID="KeywordsTextBox" runat="server" Text='<%# Bind("Keywords") %>' TextMode="MultiLine" Width="300" Height="150"></asp:TextBox> </EditItemTemplate> <ItemTemplate> <asp:Label ID="KeywordsLabel" runat="server" Text='<%# Eval("Keywords") %>'></asp:Label> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="DocumentTypeID" DataType="System.Int32" FilterControlAltText="Filter DocumentTypeID column" HeaderText="DocumentTypeID" SortExpression="DocumentTypeID" UniqueName="DocumentTypeID" Visible="false" ReadOnly="true"> </telerik:GridBoundColumn> </Columns> <EditFormSettings EditFormType="AutoGenerated" CaptionFormatString="Edit Details" > <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="PushButton"> </EditColumn> <FormTableButtonRowStyle Font-Bold="true" BackColor="Gainsboro" /> <FormCaptionStyle Font-Bold="True" HorizontalAlign="Center" BackColor="Gainsboro" Font-Size="12pt" /> <FormTableStyle BorderStyle="Solid" BorderColor="Black" BorderWidth="1px" Font-Bold="True" /> </EditFormSettings></MasterTableView><FilterMenu EnableImageSprites="False"></FilterMenu></telerik:RadGrid>
protected void RadGrid1_PreRender(object sender, EventArgs e){ GridNoRecordsItem norecordItem = (GridNoRecordsItem)RadGrid1.MasterTableView.GetItems(GridItemType.NoRecordsItem)[0]; Label lbl = (Label)norecordItem.FindControl("Label1");}<telerik:RadDatePicker ID="rdpDateDebut" runat="server" SelectionOnFocus="SelectAll" Width="100px" DbSelectedDate='<%# Bind("Date") %>'></telerik:RadDatePicker>
Old version:
masterTable.get_dataItems()[row].findElement(
"rntbox_EntitleRate").value
return 50000
new Version:
masterTable.get_dataItems()[row].findElement("rntbox_EntitleRate").value
hi
div.RadUpload .ruButtonHover Does not work in chrome!
please fix this.
Hello Telerik Team,
I have used RadCombox in my site extensively, and also I have used the “EmptyMessage” property. Recently I have updated the Telerik version to “2012.2.724.35” and after that i am facing too many issues related to RadCombox.
Older Version we were using: 2011.1.519.35
New Version currently we are using: 2012.2.724.35
In Telerik “2012.2.724.35” version, i have used the following RadComboBox In my web page. Now the issue is, if I do not change the default selection of following ddlStatus i.e. the ddlStatus is set to “-Select One-” and when I trying to access the “SelectedItem” property of ddlStatus from code behind, then it gives a null value whereas with the previous telerik version (2011.1.519.35), if the ddlStatus is set to default selection i.e. “-Select One-” and if I trying to access the “SelectedItem” property of ddlStatus then it gives the object of 0th position item i.e. <telerik:RadComboBoxItem Text="" Value="0" />. Besides that, in “2012.2.724.35” version, for the default selection of ddlStatus, the ddlStatus.SelectedValue property gives the Empty string where as in older version(2011.1.519.35) it gives the value of 0th element i.e. "0".
<telerik:RadComboBox ID="ddlStatus" runat="server" Width="60px" EmptyMessage="-Select one-">
<Items>
<telerik:RadComboBoxItem Text="" Value="0" />
<telerik:RadComboBoxItem Text="No" Value="1" />
<telerik:RadComboBoxItem Text="Yes" Value="2" />
</Items>
</telerik:RadComboBox>
This changed behavior of RadComboBox encounters so many issues in my website. Is there any generic way to resolve this issue?
Please suggest the workaround to resolve this issue.
Thanks,
Ashish