<telerik:RadGrid ID="rgItems" runat="server" GridLines="None" Skin="WebBlue" OnNeedDataSource="rgItems_NeedDataSource" OnRowDrop="rgItems_RowDrop" Width="460px" Height="585px">
<ClientSettings allowrowsdragdrop=True AllowColumnsReorder="True" ReorderColumnsOnClient="True">
<Selecting AllowRowSelect=True />
<ClientEvents OnRowDropping="onRowDropping"/>
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<MasterTableView DataKeyNames="nbrItemID" TableLayout="Fixed" AutoGenerateColumns="False">
<Columns>
<telerik:GridBoundColumn UniqueName="1" DataField="txtImageHTML" >
<HeaderStyle Width="60px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="2" DataField="txtDescriptionHTML" HeaderText="<center>New Items</center>" >
<HeaderStyle Width="220px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn UniqueName="3" DataField="txtCategoryHTML" />
</Columns>
<RowIndicatorColumn Visible="False">
<HeaderStyle Width="20px" />
</RowIndicatorColumn>
<ExpandCollapseColumn Resizable="False" Visible="False">
<HeaderStyle Width="20px" />
</ExpandCollapseColumn>
<EditFormSettings>
<PopUpSettings ScrollBars="None" />
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
Any help is greatly apreciated!
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