Sep 09, 2013, 4:07 PM
[CLOSED] [MVC] Set Tag proprties on button with AjaxResult
Hi guys,
i have a button, i have a default value, when i change tag value in ajaxresult, tag properties in my button isn't refresh in javascript
Button config
i have a button, i have a default value, when i change tag value in ajaxresult, tag properties in my button isn't refresh in javascript
Button config
Button disPlayPathButton = new Button();
disPlayPathButton.ID = "DisPlayPathButton";
disPlayPathButton.Icon = Icon.Comment;
disPlayPathButton.Width = 25;
disPlayPathButton.DirectEvents.Click.Action = "ShowCompleteBusiPath";
disPlayPathButton.DirectEvents.Click.ExtraParams.Add(new Parameter("path", "item.initialConfig.tag", ParameterMode.Raw));
disPlayPathButton.Tag = path != string.Empty ? path : ".";
Ajax Resultpublic AjaxResult ShowReturnBusiPath(int idNode)
{
TIOMembershipUser currentUser = _memberShipService.GetUser();
string path = string.Empty;
var buttonPath = X.GetCmp<Button>("DisPlayPathButton");
var data = _treeNodeService.GetBusinessGeoById(currentUser.UserInfos.GroupId, 2502, idNode, 1, ref path);
if (data.Count > 0)
{
buttonPath.Tag = path;
}
return new AjaxResult();
}
Regards
Last edited by Daniil; Sep 10, 2013 at 7:30 AM.
Reason: [CLOSED]