<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"CommandColumn"
>
<
ItemTemplate
>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton1"
Text
=
"Edit"
CommandName
=
"Edit"
/><
br
/>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton2"
Text
=
"Delete"
CommandName
=
"Delete"
OnClientClick
=
'return confirm("Are you sure you want to delete this item?");'
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton1"
Text
=
"Update"
CommandName
=
"Update"
/><
br
/>
<
asp:LinkButton
runat
=
"server"
ID
=
"LinkButton2"
Text
=
"Cancel"
CommandName
=
"Cancel"
CausesValidation
=
"false"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<%--<
telerik:GridEditCommandColumn
/>
<
telerik:GridButtonColumn
CommandName
=
"Delete"
Text
=
"Delete"
ConfirmText
=
"Are you sure you want to delete this item?"
/>--%>
</
Columns
>
Source: System.Web
Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.
Stack trace: at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.trading_customerview_aspx.ProcessRequest(HttpContext context) in c:\Users\Kevin\AppData\Local\Temp\Temporary ASP.NET Files\root\31738672\d2138b1c\App_Web_m5moos4i.12.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Inner exception:
Source: System.Web.Extensions
Message: Invalid JSON primitive: dialonly.png.
Stack trace: at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject()
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
at Telerik.Web.UI.RadUpload.LoadPostData(String postDataKey, NameValueCollection postCollection)
at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hi,
I'm opening a popup with this code:
window.radopen(
'../PopUp/PopUpLinee.aspx', 'PopUpPiccola');
To pass arguments to the popup i use this javascript function:
function OnClientShow(radWindow) {
var oText = document.getElementById('<%=hfdRepartoSelezionato.ClientID%>').value;
var arg = new Object();
arg.IdReparto = oText;
arg.IdTurno = "
1";
radWindow.argument = arg;
}
At this point everithing works fine, but i don't know how to get this arguments when the popuplinee is opened.
Wich event I've to use to "see" the arguments?.
I need to put this arguments in two texboxes inside the popup.
Thank you !!!
Public
Sub
RadGrid1_ItemCommand(
ByVal
source
As
Object
,
ByVal
e
As
GridItemEventArgs)
Handles
RadGrid1.ItemEvent
If
TypeOf
(e.Item)
Is
GridEditFormInsertItem
Then
Dim
item
As
GridEditFormInsertItem =
CType
(e.Item, GridEditFormInsertItem)
Dim
panel
As
Panel =
DirectCast
(item.FindControl(
"Panel1"
), Panel)
Dim
cmbDataType
As
RadComboBox =
DirectCast
(item.FindControl(
"DataTypeDropDown"
), RadComboBox)
If
cmbDataType.SelectedValue =
"Choice"
Then
panel.Visible =
True
Else
panel.Visible =
False
End
If
End
If