
Please help on how to be able to fire Required Field Validator of fields when clicking Add New Item and trying to SAVE empty record in Rad Grid. Thanks!!
Rad Grid:
<div>
<label for="rgRemark">Remarks:</label>
<telerik:RadGrid ID="rgRemarks" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" GridLines="None" AllowMultiRowEdit="false" AllowAutomaticInserts="false"
AllowAutomaticUpdates="false" CellSpacing="0" Width="500px" Style="float: right">
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="True" />
<MasterTableView CommandItemDisplay="Top" DataKeyNames="EmployeeID, RemarkID" CellSpacing="-1" RetrieveAllDataFields="false">
<CommandItemSettings ShowRefreshButton="True" ShowAddNewRecordButton="True" AddNewRecordText="Add Remark" />
<Columns>
<telerik:GridTemplateColumn DataField="Remark" SortExpression="Remark" HeaderText="Remark"
UniqueName="Remark">
<ItemTemplate>
<asp:Label ID="lblRemark" Text='<%#Eval("Remark")%>' runat="server" />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="300px" />
<asp:RequiredFieldValidator ID="requiredFieldRemark" runat="server" ControlToValidate="txtRemark"
ErrorMessage="* Remark is required field." Display="Dynamic"/>
</EditItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridButtonColumn ButtonType="ImageButton" HeaderText="Edit" CommandName="Edit" Text="Edit" />
<telerik:GridButtonColumn ConfirmText="Delete this Remark?" ConfirmDialogType="RadWindow"
ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
HeaderText="Delete" UniqueName="DeleteColumn">
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings>
<EditColumn ButtonType="ImageButton" CancelImageUrl="~\Images\CommandImages\Cancel.gif" CancelText="Cancel Edit"
InsertImageUrl="~\Images\CommandImages\Save.gif" InsertText="Insert" UniqueName="EditColumn"
UpdateImageUrl="~\Images\CommandImages\Save.gif" UpdateText="Update ">
</EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</div>
Code Behind:
If (TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode) Then
Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim requiredFieldRemark As RequiredFieldValidator = DirectCast(editedItem.FindControl("requiredFieldRemark"), RequiredFieldValidator)
requiredFieldRemark.Enabled = True
ElseIf (TypeOf e.Item Is GridEditFormInsertItem AndAlso e.Item.OwnerTableView.IsItemInserted) Then
Dim dataItem As GridEditableItem = CType(e.Item, GridEditableItem)
Dim requiredFieldRemark As RequiredFieldValidator = DirectCast(dataItem.FindControl("requiredFieldRemark"), RequiredFieldValidator)
requiredFieldRemark.Enabled = True
End If


Hello,
I been trying to use this asyncupload-additional fields but It doesn't work when I set session state to SQL SERVER. keep getting this error:
Microsoft JScript runtime error: Error while uploading, [HttpWebRequest_WebException_RemoteServer]
Arguments: NotFound
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=5.1.30514.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
this is my control:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientFileUploaded="onClientFileUploaded" MultipleFileSelection="Automatic" Skin="Office2007" />javascript is same as given in demo.
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" EnableViewState="true" CssClass="GridViewSforms" Skin="Web20" EnableEmbeddedSkins="False" Height="510px" Width="941px" ShowStatusBar="True" AlternatingItemStyle-BackColor="#ededed" ClientSettings-EnableRowHoverStyle="true" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="False" EnableLinqExpressions="False" > <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" AllowDragToGroup="True" EnableRowHoverStyle="True"> <Scrolling AllowScroll="True" UseStaticHeaders="True" /> </ClientSettings> <AlternatingItemStyle BackColor="#EDEDED" /> <MasterTableView CommandItemDisplay="Top" ><telerik:GridBoundColumn DataField="CustomerProgramDescription" Groupable="true" HeaderText="Program" UniqueName="CustomerProgramDescription"> <FilterTemplate> <telerik:RadComboBox ID="RadComboBoxCustomerProgramDescription" runat="server" AppendDataBoundItems="true" DataTextField="CustomerProgramDescription" DataValueField="CustomerProgramDescription" OnClientSelectedIndexChanged="CustomerProgramDescriptionIndexChanged" OnDataBound="RadComboBoxAllFilters_OnDataBound" SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("CustomerProgramDescription").CurrentFilterValue %>' Width="100px"> <Items> <telerik:RadComboBoxItem Text="All" /> </Items> </telerik:RadComboBox> <telerik:RadScriptBlock ID="RadScriptBlockProgram" runat="server"> <script type="text/javascript"> function CustomerProgramDescriptionIndexChanged(sender, args) { var tableView = $find("<%# TryCast(Container,GridItem).OwnerTableView.ClientID %>"); tableView.filter("CustomerProgramDescription", args.get_item().get_value(), "EqualTo"); } </script> </telerik:RadScriptBlock> </FilterTemplate> <ItemStyle Wrap="False" /> <HeaderStyle Wrap="false" /></telerik:GridBoundColumn>Protected Sub RadGrid1_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound
If TypeOf e.Item Is Telerik.Web.UI.GridFilteringItem Then 'Populate Filters by binding the combo to datasource Dim filteringItem As Telerik.Web.UI.GridFilteringItem = CType(e.Item, Telerik.Web.UI.GridFilteringItem) Dim myRadComboBox As Telerik.Web.UI.RadComboBox = DirectCast(filteringItem.FindControl("RadComboBoxCustomerProgramDescription"), Telerik.Web.UI.RadComboBox) myRadComboBox.DataSource = myDataSet myRadComboBox.DataTextField = "CustomerProgramDescription" myRadComboBox.DataValueField = "CustomerProgramDescription" myRadComboBox.ClearSelection() myRadComboBox.DataBind()End IfI have a RadSearchBox within a RadGrid EditFormTemplate within a RadPanelBar. When dropping down the SearchContext, it flashes quickly and disappears without allowing it to be viewed or selected. ive tried setting the CollapseAnimation-Duration to a large number and that allows a user to see and select it, but then it has to wait to time out before being used. Below is my code snippet.
<telerik:RadPanelBar ID="RadPanelBar4" runat="server" Width="100%">
<Items>
<telerik:RadPanelItem runat="server" Text="Clauses" PreventCollapse="false">
<Items>
<telerik:RadPanelItem runat="server">
<ItemTemplate>
<telerik:RadGrid ID="rgClauses" runat="server" DataSourceID="sdsClauses"
AllowFiltering="True" AllowPaging="True" AllowSorting="True" ShowGroupPanel="False" Width="100%"
RenderMode="Auto" AutoGenerateColumns="False" ShowFooter="False" CellSpacing="-1" PageSize="5"
AllowAutomaticInserts="True" AllowAutomaticDeletes="True" AllowAutomaticUpdates="false"
GridLines="Both" GroupPanelPosition="Top" >
<GroupingSettings CaseSensitive="false" />
<ClientSettings AllowDragToGroup="True" AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
<Resizing AllowColumnResize="True" ResizeGridOnColumnResize="True"></Resizing>
<Scrolling AllowScroll="false" UseStaticHeaders="True" />
</ClientSettings>
<MasterTableView GroupLoadMode="server" Width="100%" EnableViewState="true" ShowGroupFooter="True" GroupsDefaultExpanded="True"
DataKeyNames="ContractEngagementID,StandardizedClausesProvisionsID" ShowHeader="true" AllowAutomaticUpdates="false" CommandItemSettings-ShowAddNewRecordButton="true" CommandItemDisplay="Top">
<Columns>
<telerik:GridEditCommandColumn ButtonType="ImageButton" Reorderable="False" Resizable="False" UniqueName="insert">
<HeaderStyle HorizontalAlign="Center" Width="54px" Wrap="False"/>
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField="ContractEngagementID" DataType="System.Int32" FilterControlAltText="Filter ContractEngagementID column" HeaderText="ContractEngagementID" ReadOnly="True" SortExpression="ContractEngagementID" UniqueName="ContractEngagementID" Visible="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StandardizedClausesProvisionsID" FilterControlAltText="Filter StandardizedClausesProvisionsID column" HeaderText="ID" SortExpression="StandardizedClausesProvisionsID" UniqueName="StandardizedClausesProvisionsID" ReadOnly="true" Visible="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StandardizedClausesProvisions" FilterControlAltText="Filter StandardizedClausesProvisions column" HeaderText="Provision" SortExpression="StandardizedClausesProvisions" UniqueName="StandardizedClausesProvisions" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="StandardizedClausesProvisionsType" FilterControlAltText="Filter StandardizedClausesProvisionsType column" HeaderText="Type" SortExpression="StandardizedClausesProvisionsType" UniqueName="StandardizedClausesProvisionsType" ReadOnly="true">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn ConfirmText="Delete this entry?" ConfirmDialogType="RadWindow" ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" UniqueName="delete">
<FooterStyle Wrap="False" />
<HeaderStyle HorizontalAlign="Center" Width="25px" Wrap="False" />
<ItemStyle Wrap="False" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditFormType="Template">
<FormTemplate>
<table id="Table2" width="100%" border="0" >
<tr>
<td>
<telerik:RadSearchBox ID="RadSearchBox1" runat="server" Width="500" DropDownSettings-Height="200px" IsCaseSensitive="false" RegisterWithScriptManager="true"
DataSourceID="sdsAvailableClauses"
DataTextField="StandardizedClausesProvisionsReference" DataValueField="StandardizedClausesProvisionsID" DataContextKeyField="StandardizedClausesProvisionsTypeID">
<SearchContext DataSourceID="sdsAvailableTypes" DataTextField="StandardizedClausesProvisionsType" DataKeyField="StandardizedClausesProvisionsTypeID">
</SearchContext>
</telerik:RadSearchBox>
</td>
</tr>
</table>
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</telerik:RadGrid>
<asp:SqlDataSource ID="sdsClauses" ConnectionString="<%$ ConnectionStrings:ContractsConnectionString %>"
ProviderName="<%$ ConnectionStrings:ContractsConnectionString.ProviderName %>" runat="server"
SelectCommand="SELECT * FROM [Contracts].[dbo].[vwContractEngagementClauses] WHERE ([ContractEngagementID] = @ContractEngagementID)"
InsertCommand="usp_AddContractEngagementClause" InsertCommandType="StoredProcedure"
DeleteCommand="usp_DeleteContractEngagementClause" DeleteCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="rtvContractEngagement" Name="ContractEngagementID" PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
<InsertParameters>
<asp:ControlParameter ControlID="rtvContractEngagement" Name="ContractEngagementID" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="rgClauses" Name="StandardizedClausesProvisionsID" PropertyName="SelectedValue" Type="Int32" />
</InsertParameters>
<DeleteParameters>
<asp:ControlParameter ControlID="rgClauses" Name="ContractEngagementID" PropertyName="SelectedValue" Type="Int32" />
<asp:ControlParameter ControlID="rgClauses" Name="StandardizedClausesProvisionsID" PropertyName="SelectedValue" Type="Int32" />
</DeleteParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="sdsAvailableClauses" ConnectionString="<%$ ConnectionStrings:ContractsConnectionString %>"
ProviderName="<%$ ConnectionStrings:ContractsConnectionString.ProviderName %>" runat="server"
SelectCommand="SELECT * FROM [Contracts].[dbo].[vwAvailableContractEngagementClauses] WHERE ([ContractEngagementID] = @ContractEngagementID) " >
<SelectParameters>
<asp:ControlParameter ControlID="rtvContractEngagement" Name="ContractEngagementID" PropertyName="SelectedValue" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<asp:SqlDataSource ID="sdsAvailableTypes" ConnectionString="<%$ ConnectionStrings:ContractsConnectionString %>"
ProviderName="<%$ ConnectionStrings:ContractsConnectionString.ProviderName %>" runat="server"
SelectCommand="SELECT * FROM [Contracts].[dbo].[StandardizedClausesProvisionsType] WHERE ([Enabled] = 1) " >
</asp:SqlDataSource>
</ItemTemplate>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelItem>
</Items>
</telerik:RadPanelBar>
Hello,
I have a radasync control with the expiration of 5 seconds (for testing). My local version has the temporary location set to ~/temp/ and it works perfectly. On my remote server, It is set up as a website and the temporary location is set to /temp/. The files get places there successfully, however, they do not get deleted and there is no way for me to check any kind of logs associated with this server. I have checked the permissions and it has all the proper permissions set. What could be causing this? Any help would be greatly appreciated!
Hi,
I have a ribbon bar that has a ribbon bar template item. Inside the template is a RadToolBar. When I load my page in Chrome, I get a client error. I don't receive the same error when using Internet Explorer. If I take the radtoolbar out, the error no longer occurs. The error is causing my page to stop loading. I have attached a simple example below. If you run this page in Chrome you will see the error via the F12 developer console. It says "Value must not be null for Controls and Behaviors". Any help with this would be greatly appreciated.
Thank you!
Richard
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebTestApplication.Default" %><%@ 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"> <asp:ScriptManager runat="server"></asp:ScriptManager> <telerik:RadRibbonBar ID="TestRibbonBar" runat="server" EnableAjaxSkinRendering="true" Visible="True" Skin="Windows7" Width="100%" Height="100px" CssClass="RadToolBarHeight"> <telerik:RibbonBarTab ID="rbtTest" Width="250px"> <telerik:RibbonBarGroup ID="rbgSearch" Text="Search Tests" Value="TestSearch" BorderStyle="None" CssClass="TestSearchBar"> <Items> <telerik:RibbonBarTemplateItem ID="rbtItem" BorderStyle="None" CssClass="TestSearchBar" > <Template> <telerik:RadToolBar ID="tlbSearch" runat="server" CausesValidation="False" AutoPostBack="True" CssClass="TestSearchBar" Skin="Windows7" BorderStyle="None" > <Items> <telerik:RadToolBarButton CommandName="SearchBy" CommandArgument="none" runat="server" Text="" CausesValidation="false" CssClass="TestSearchBar_SearchByBtn"> <ItemTemplate> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar> </Template> </telerik:RibbonBarTemplateItem> </Items> </telerik:RibbonBarGroup> </telerik:RibbonBarTab> </telerik:RadRibbonBar> </form></body></html>