<script language="javascript" type="text/javascript">
function validate()
{
var name = $find("<%= radtxtLastName.ClientID %>");
var name1= document.getElementById('radtxtFirstName');
alert(name1.value);
name1.style.background =
"red";
if(name.get_value()=="")
{
name.get_styles().EnabledStyle[0] =
"background-color: Red;";
return false;
}
return true;
}
</script>
<telerik:RadTextBox ID="radtxtLastName" runat="server" Width="250px" MaxLength="50" skin="Office2007"/>
<asp:TextBox ID="radtxtFirstName" runat="server" Width="250px" MaxLength="50"></asp:TextBox>
<asp:ImageButton ID="btnChange" ImageUrl="~/Images/btn_ok.gif" runat="server" OnClientClick="return validate()" />
Regards,
Santhosh
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
body>
<script type="text/javascript">
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
function ShowNewRadWindow(stringUrl)
{
var oBrowserWnd = GetRadWindow().BrowserWindow;
var oWin = oBrowserWnd.radopen(stringUrl, null);
oWin.add_close(myAlert);
oWin.setActive(
true);
oWin.setSize (600, 500);
oWin.moveTo(100,100);
oWin.maximize();
alert(
"Please select the Errored records and Update them.");
}
function myAlert()
{
alert(
"Window is Closing......");
}
function OnClientClose(sender, eventArgs)
{
var hiddenPostBackField = document.getElementById("PostBackSourceHiddenField");
hiddenPostBackField.value = "ChildPostBack"
alert(
"Window is Posting Back.");
DoPostBack();
alert(
"Window is closing.");
}
function DoPostBack()
{
__doPostBack(
'ctl00_ContentPlaceHolder1_RadWindow1','My Argument');
}
</
script>
<form id="form1" runat="server">
<div style="width:100%;">
<%
-------------------------------------------------------------------------------------------------------------%>
<%
-- Hidden field to check postback of the page from the Confirm Window. --%>
<%
-------------------------------------------------------------------------------------------------------------%>
<asp:HiddenField ID="PostBackSourceHiddenField" Value="SelfPostBack" runat="server" />
<%
-------------------------------------------------------------------------------------------------------------%>
.
.
.
<asp:Button ID="btnOpen_NestedradWindowConfirmInsert" Font-Bold="true" runat="server" Font-Size="small"
Text="Review new Window" ForeColor="red"
OnClientClick ="ShowNewRadWindow('./PopupPage.aspx');" />
.
.
--------------Other Code-----------------
.
.
.
</div>
</form>
</
body>
</
html>
Protected Sub btnFollowupEdit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFollowupEdit.Click
Me.btnFollowupCancel.Visible = True
Me.btnFollowupEdit.Visible = False
Me.btnFollowupSave.Enabled = True
For Each item As GridItem In radgFollowUp.MasterTableView.Items
If TypeOf item Is GridEditableItem Then
Dim editableItem As GridEditableItem = CType(item, GridDataItem)
editableItem.Edit = True
End If
Next
radgFollowUp.Rebind()
End Sub
Protected Sub btnFollowupSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnFollowupSave.Click
For Each editedItem As GridEditableItem In radgFollowUp.EditItems
If TypeOf editedItem Is GridEditableItem Then
Dim theItem As GridEditableItem = CType(editedItem, GridEditableItem)
Dim newValues As New Hashtable()
'The GridTableView will fill the values from all editable columns in the hash
theItem.OwnerTableView.ExtractValuesFromItem(newValues, theItem)
'***
'The newValues hashtable contains the original values for the editable controls, not the changed values
' ... do stuff here to save the data
End If
Next
end sub
Can anyone tell me how to access the new(changed) values for the edited controls. I may have a cast wrong since I have a different event argument from the examples I have found.
Thanks for your help ,
John