private string BuildGrid() { TagBuilder div = new TagBuilder(TAG_DIV); this.SetID(div, this._propertyBag.ControlName, out _controlID); //this.SetAttribute(div, ATTRIBUTE_DATA_GRIDPARAM, HTMLEmitterUtility.GetGridControlProperty(this.propertyBag)); //this.SetAttribute(div, ATTRIBUTE_DATA_GRIDCOLUMNPROP, HTMLEmitterUtility.GetGridControlColumnsProperties(this.propertyBag)); this.SetAttribute(div, ATTRIBUTE_DATA_INPUTPARAM, HTMLEmitterUtility.GetJsonOfObject(this._propertyBag.ShuttleParam)); this.SetAttribute(div, ATTRIBUTE_DATA_VALUEMEMBER, _propertyBag.ValueMember); this.SetAttribute(div, ATTRIBUTE_DATA_ACTIONURL, _propertyBag.ActionUrl); this.SetAttribute(div, ATTRIBUTE_DATA_DISPLAYMEMBER, _propertyBag.DisplayMember); this.SetAttribute(div, ATTRIBUTE_DATA_BSHUTTLE, VAL_TRUE); return(div.ToString()); }
private string BuildGrid() { TagBuilder div = new TagBuilder(TAG_DIV); this.SetID(div, this._propertyBag.ControlName, out _controlID); this.SetAttribute(div, ATTRIBUTE_DATA_GRIDPARAM, HTMLEmitterUtility.GetGridControlProperty(this._propertyBag)); this.SetAttribute(div, ATTRIBUTE_DATA_GRIDCOLUMNPROP, HTMLEmitterUtility.GetGridControlColumnsProperties(this._propertyBag)); this.SetAttribute(div, ATTRIBUTE_DATA_INPUTPARAM, HTMLEmitterUtility.GetJsonOfObject(this._propertyBag.GridParam)); this.SetAttribute(div, ATTRIBUTE_DATA_VALUEMEMBER, _propertyBag.ValueMember); this.SetAttribute(div, ATTRIBUTE_DATA_ACTIONURL, _propertyBag.ActionUrl); this.SetAttribute(div, ATTRIBUTE_DATA_BGRID, VAL_TRUE); this.SetAttribute(div, ATTRIBUTE_DATA_SELECTION_CHANGE_FUNCTION, this._propertyBag.OnDataRowSelectionChangeFunctionName); return(div.ToString()); }