<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>function _findVisibleEditableColumn(col) { return !col.get_readOnly() && col.get_visible(); }grid.add_batchEditClosed(function (sender, args) { var lastVisibleEditableColumn = _.findLast(gridColumnsSortedByDisplayIndex, _findVisibleEditableColumn); if(lastVisibleEditableColumn && lastVisibleEditableColumn.get_uniqueName() == args.get_columnUniqueName()) grid.raise_batchEditRowClosed(args); });get_readOnly:function(){return(typeof(this._data.ReadOnly)!="undefined")?true:false;}function _findVisibleEditableColumn(col) { return !col.get_readOnly() && col.get_visible() && col._data.Editable; }