var
eventTarget = eventArgs.get_eventTarget();
The button I am using has an ID of "cmdSave" and is in the container of a master form. This means the clientID of the control obtained by using
<%= cmdSave.ClientID %> produces ctl00_ContentPlaceHolder1_cmdSave
while the clientID returned from eventArgs.get_eventTarget(); is
ctl00$ContentPlaceHolder1$cmdSave.
I would suggest that the help section on RadAjax needs to be rewritten and especially with client side validation.
Could you please tell me how I can run my simple javascript function as described above.
Regards
| Combo Text Label |
| ---------- ----- |
| AL1 4500 match(s) |
| AL12 567 match(s) |
| AL123 120 match(s) |
| AL1234 18 matche(s) // actual items appear here. |
},onWindowResize:
function(){
this
.setHeaderAndFooterDivsWidth();
this
.setDataDivHeight();
},setHeaderAndFooterDivsWidth:
function(){
if
(this._owner.GridDataDiv&&this._owner.GridHeaderDiv){
if
(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){
if
(this._owner.GridDataDiv.offsetWidth>0){
this
._owner.GridHeaderDiv.style.width=this._owner.GridDataDiv.offsetWidth-Telerik.Web.UI.Grid.getScrollBarHeight()+"px";
}
(...)
Regards,
Piotr
| <radG:GridTemplateColumn DataField="DepName" HeaderText="DepName" UniqueName="DepName"> |
| <ItemTemplate> |
| <asp:DropDownList ID="lblDep" runat="server" Enabled="false" /> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:DropDownList ID="DepNameddl" runat="server" /> |
| </EditItemTemplate> |
| </radG:GridTemplateColumn> |
| Protected Sub rgPersonAdmin_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.WebControls.GridItemEventArgs) Handles rgPersonAdmin.ItemDataBound |
| If TypeOf e.Item Is GridDataItem Then |
| Dim item As GridDataItem = DirectCast(e.Item, GridDataItem) |
| Dim strChk As String = item.GetDataKeyValue("PersonIndic").ToString() |
| Dim chkbx As CheckBox = DirectCast(item("PersonIndic").FindControl("cbPersonIndic"), CheckBox) |
| If strChk = "1" Then |
| chkbx.Checked = True |
| Else |
| chkbx.Checked = False |
| End If |
| 'dropdownlist |
| Dim ddl As DropDownList = DirectCast(item("DepName").FindControl("lblDep"), DropDownList) |
| Dim getDS As New DataSet |
| getDS = dataConn.PhoneGetDepDDL() |
| ddl.DataSource = getDS.Tables(0).DefaultView |
| ddl.DataTextField = "DepName" |
| ddl.DataValueField = "DepID" |
| ddl.DataBind() |
| End If |
| End Sub |