<asp:Panel ID="pnlUploadControls" runat="server" meta:resourcekey="pnlUploadControlsResource1"> <div class="grayText" style="padding-top: 15px;"> <asp:Label ID="UploadInstructions" runat="server" Text="Browse to select a file, and click upload." meta:resourcekey="UploadInstructionsResource1" ></asp:Label></div> <div style="padding-top: 5px;"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td style="width: 280px; vertical-align: bottom;padding: 0px 0px 4px 5px;"> <telerik:RadAsyncUpload ID="radUpload1" runat="server" Skin="Vista" Width="280px" meta:resourcekey="radUpload1Resource1" MaxFileInputsCount="1" OnClientValidationFailed="UploadValidationError" OnClientFileSelected="" OnClientFileUploaded="" > <%--OnClientFileUploaded="OnClientFileUploaded" PostbackTriggers="btnUpload" >--%> <Localization Select="Browse..." /> </telerik:RadAsyncUpload> </td> <td style="vertical-align: bottom; padding: 0px 0px 10px 7px;"> <asp:Button ID="btnUpload" runat="server" Text="Upload" meta:resourcekey="btnUploadResource1" /> </td> </tr> </table> </div></asp:Panel><asp:Panel ID="pnlDocUpload" runat="server" Visible="False" meta:resourcekey="pnlDocUploadResource1"> <div class="popupTitle" style="padding-top: 20px;"> <asp:Label ID="lblSupportingDocuments" runat="server" Text="Supporting Documents" meta:resourcekey="lblSupportingDocumentsResource1"></asp:Label> </div> <div class="instruction" style="padding-top: 5px;"> <asp:Label ID="lblActivityNeedsValidation" runat="server" Text="Your activity needs to be validated before credits are issued. Below you can upload the required documents or indicate you will use another means to send them. When your documents have been uploaded and/or sent, you must click the 'Submit for Validation' button. Your activity will remain in the holding area until you submit." meta:resourcekey="lblActivityNeedsValidationResource1"></asp:Label> </div> <div style="padding-top: 15px;"> <asp:PlaceHolder ID="phUploadControl" runat="server"></asp:PlaceHolder> </div> <div style="padding-top: 20px;"> <asp:Button ID="btnBackToActivityDetails" runat="server" Text="Back" OnClientClick="GotoActivityDetails();return false;" meta:resourcekey="btnBackToActivityDetailsResource1" /> <asp:Button ID="btnSaveToHoldingArea" runat="server" Text="Send to Holding Area" meta:resourcekey="btnSaveToHoldingAreaResource1" /> <asp:Button ID="btnSubmitForValidation" runat="server" Text="Submit For Validation" meta:resourcekey="btnSubmitForValidationResource1" /> </div> </asp:Panel><telerik:GridTemplateColumn UniqueName="Tempcol" > <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" Text="ClickMe" ></asp:HyperLink> </ItemTemplate>
</telerik:GridTemplateColumn>protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item.OwnerTableView.Name == "DetailTable" && e.Item is GridDataItem ) { HyperLink hLink = (HyperLink)item.FindControl("HyperLink1"); hyplnk.Attributes.Add("OnClick", "return OpenLink('"+ item1.ItemIndex +"');"); } }function OpenLink(indx) { var RadGrid2 = $find("<%= RadGrid2.ClientID %>"); RadGrid2.get_masterTableView().get_dataItems()[indx].set_selected("true"); }
gvCompetency.DataSource = competencies; //data sorted and returned by SP.gvCompetency.DataBind();<GroupByExpressions><telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldAlias="Service Line" FieldName="GroupName"></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="GroupName"></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression>
</GroupByExpressions>public class MyGridView : RadGridgrid.add_command(function (sender, args) { if(args.get_commandName() == "BatchEdit") { var tv = grid.get_masterTableView(), bm = grid.get_batchEditingManager(), dumpCellIndex = tableView.getColumnByUniqueName("Dump").get_element().cellIndex; tv.get_dataItems().forEach(function (di) { var row = di.get_element(); if(row._data) bm.changeCellValue(row.cells[dumpCellIndex], row._data.join(";")); }); } });<telerik:GridBoundColumn Display="true" DataType="System.String" FilterControlAltText="Filter Dump column" UniqueName="Dump" ReadOnly="false" ForceExtractValue="None"> <ColumnValidationSettings> <ModelErrorMessage Text="" /> </ColumnValidationSettings> </telerik:GridBoundColumn>I have a radtextbox that I want to utilize the OnTextchange event.
No matter what I input into the text box I immediately get "JavaScript runtime error: Unterminated string constant".
Has anyone else seen this? Nothing too complex here.
Inside my aspx
<telerik:RadTextBox ID="formLocZip" runat="server" EmptyMessage="Zip" MaxLength="7" OnTextChanged="formLocZip_TextChanged" AutoPostBack="true">
</telerik:RadTextBox>
Inside my code behind :
Protected Sub formAddLocZip_TextChanged(ByVal sender As Object, ByVal e As EventArgs) Handles formAddLocZip.TextChanged
Hello,
I am having an issue with the required field validator control when validating any of my RadAutoCompleteBox controls. After I type in some text and then select the entry from the pop up list, the validator fires and comes back as false showing the error message I put in there that the field is required.
So I have two questions:
Thanks,
Ron
<telerik:RadAsyncUpload Width="225px" TargetFolder="~/Temp/TempUploadFiles" ID="upFiles" runat="Server" InputSize="20" AllowedFileExtensions="jpeg,jpg,gif,tif,png,bmp,pdf" OnFileUploaded="RadAsyncUpload1_FileUploaded" OnClientFileUploading="upFiles_onClientFileUploading" OnClientFileUploaded ="upFiles_onClientUploadFinished" OnClientFileUploadFailed="upFiles_onClientUploadFailed" OnClientFileDropped="upFiles_onClientUploadDropped" OnClientFileUploadRemoved="upFiles_onClientUploadRemoved" OnClientValidationFailed="OnClientValidationFailed" HttpHandlerUrl="~/UserControls/CustomHandlers/UploadHandler.ashx" MaxFileInputsCount="1" TemporaryFileExpiration="5" DisableChunkUpload="true" ><FileFilters><telerik:FileFilter Extensions="jpeg,jpg,gif,tif,png,bmp,pdf" /></FileFilters> </telerik:RadAsyncUpload>public class UploadHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState{ protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName) { // Populate the default (base) result into an object of type SampleAsyncUploadResult CustomAsyncUploadResult result = CreateDefaultUploadResult<CustomAsyncUploadResult>(file); //do some processing here... base.Process(file, context, configuration, tempFileName); return result; }}
<Configuration> ... <httpHandlers> <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" /> <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" /> <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> <add path="UserControls/CustomHandlers/UploadHandler.ashx" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> </httpHandlers> <httpModules> <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" /> <add name="RadCompression" type="Telerik.Web.UI.RadCompression" /> <add name="RoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> </httpModules> ... <system.webServer> <handlers> <remove name="ChartImage_axd" /> <remove name="Telerik_Web_UI_SpellCheckHandler_axd" /> <remove name="Telerik_Web_UI_DialogHandler_aspx" /> <remove name="Telerik_RadUploadProgressHandler_ashx" /> <remove name="Telerik_Web_UI_WebResource_axd" /> <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" /> <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" /> <add name="UserControls/CustomHandlers/UploadHandler_ashx" verb="*" preCondition="integratedMode" path="UserControls/CustomHandlers/UploadHandler.ashx" type="Telerik.Web.UI.WebResource" /> </handlers> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> ...</Configuration>