var combobox = new RadComboBox |
{ |
WebServiceSettings = { Path = "~/Services/MyWebService.asmx", Method = "LoadDropDown" }, |
EnableLoadOnDemand = true, |
MarkFirstMatch = true, |
AllowCustomText = true, |
ShowDropDownOnTextboxClick = false, |
ID = "rcb", |
MaxLength = 255, |
EnableEmbeddedSkins = false |
}; |
<httpHandlers> |
<remove path="*.asmx" verb="*" /> |
<add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> |
etc... |
namespace MyWebsite.Services |
{ |
[WebService] |
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] |
[ToolboxItem(false)] |
[ScriptService] |
public class MyWebService : WebService |
{ |
[WebMethod] |
public RadComboBoxItemData[] LoadDropDown(object context) |
{ |
var currentData = (IDictionary<string, object>)context; |
var currentText = (string)currentData["Text"]; |
var result = new List<RadComboBoxItemData>(); |
etc. |
etc. |
return result.ToArray(); |
} |
} |
} |
Iam using a telerik RadGrid and I want to check if GridDataItem is in edit mode or not
Using javascript .
I can handle this using VB but I want to do it on Client Side.
If anyone can tell me also how to loop through all Items in the Grid and get selected item
using JavaScript.
I'm stuck Here .. Any Help Please ... I will be grateful.
2) I have a problem with OnCommand function in Javascript
I have a commandItemTemplate in radgrid.
and I add a client event: <ClientEvents OnCommand="OnCommand" />
Function: function OnCommand(sender, args) { if (args.get_commandName() == 'EditSelected') { ....}
The OnCommand doesn't fire on any of the commands in the CommandItemTemplate , on the other hand , it fires on other commands like (Edit,Update,Delete,...).
I don't know why?? I need Help Please.