<
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 : RadGrid
grid.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