如何获取具有复杂名称的 GridLookup
How to get GridLookup with complex name
我正在尝试获取 GridLookup 选定值,
@Html.DevExpress().GridLookup(settingsGrid =>
{
settingsGrid.Name = "CommandeDetailEnCours.Compte";
settingsGrid.KeyFieldName = "Numero";
[...]
}).BindList(Model.ListeComptes).Bind(Model.CommandeDetailEnCours.Compte).GetHtml()
问题是:我如何获得价值,因为在 javascript
"CommandeDetailEnCours.Compte".GetGridView() [...]
不工作?
按以下方式使用客户端 GetValue 方法。
要在客户端上检索复杂名称,请使用 How to use the ClientInstanceName and Name properties when they contain special characters 方法。
var lookupClientInstance = ASPxClientControl.GetControlCollection().GetByName("CommandeDetailEnCours.Compte");
var value = lookupClientInstance.GetValue();
alert(value);
我正在尝试获取 GridLookup 选定值,
@Html.DevExpress().GridLookup(settingsGrid =>
{
settingsGrid.Name = "CommandeDetailEnCours.Compte";
settingsGrid.KeyFieldName = "Numero";
[...]
}).BindList(Model.ListeComptes).Bind(Model.CommandeDetailEnCours.Compte).GetHtml()
问题是:我如何获得价值,因为在 javascript
"CommandeDetailEnCours.Compte".GetGridView() [...]
不工作?
按以下方式使用客户端 GetValue 方法。
要在客户端上检索复杂名称,请使用 How to use the ClientInstanceName and Name properties when they contain special characters 方法。
var lookupClientInstance = ASPxClientControl.GetControlCollection().GetByName("CommandeDetailEnCours.Compte");
var value = lookupClientInstance.GetValue();
alert(value);