ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to get a label/textblock in a grid column which get populated based on other column selection
Title:
B
I
{code}
?
I want to use a label/textblock in a grid column which get populated based on other column selection. In the below example i am expecting the Disaggregate column to be label instead of multi checkbox. Can you please point to an example which can be referred as an example: @(Html.Awe().Grid("CalculatedIndicatorGrid") .Mod(o => o.PageInfo().InlineEdit(Url.Action("CalculatedIndicatorSave"), Url.Action("CalculatedIndicatorSave"), true, true, false)) .Url(Url.Action("GetCalculatedIndicators", "CalculatedIndicator")) .SingleColumnSort(true) .Page1OnSort(true) .Parent("txtIndicator", "IndicatorName") .Columns( new Column { Bind = "CalculatedIndicatorID", Hidden = true } .Mod(o => o.InlineId()), new Column { Bind = "IndicatorName", Header = "Indicator" } .Mod(o => o.Inline(Html.Awe().AjaxDropdown("IndicatorID").CssClass("awe-txt selectMaxWidth").Controller("Indicator").Action("GetIndicators").Area("SI"))), new Column { Bind = "DisaggregateGroup", Header = "Disaggregate Groups" } .Mod(o => o.Inline(Html.Awe().AjaxCheckboxList("SelectedDisaggregateGroups").CssClass("awe-txt selectMaxWidth").Controller("DisaggregateGroup").Action("GetDisaggregateGroups").Parent("#PrefixIndicatorID", "indicatorID").Area("SI"))), new Column { Bind = "Disaggregates", Header = "Disaggregates" } .Mod(o => o.Inline(Html.Awe().AjaxCheckboxList("SelectedDisaggregates").CssClass("awe-txt selectMaxWidth").Controller("Disaggregate").Action("GetMultipleChildDisaggregates").Parent("#PrefixSelectedDisaggregateGroups", "disaggregateGroupID").Area("SI"))), new Column { Bind = "Operator", Header = "Operator", Width = 100 } .Mod(o => o.Inline(Html.Awe().AjaxDropdown("Operator").CssClass("awe-txt selectMaxWidth").Controller("Data").Action("GetCalculatedIndicatorOperators").Parameter("selected", ".(Operator)"))), new Column { ClientFormatFunc = "editff", Width = GridUtils.EditBtnWidth} ))
Save Changes
Cancel
Sridevi
asked at 23 Jul 2024
to have text instead of editor in the cell, simply remove the `Inline` mod from the `Column`, I see your using `.Parent` for the inline editors, perhaps you want to use `ParentInline` as shown in this demo: https://demo.aspnetawesome.com/GridInlineEditParent
at 23 Jul 2024
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK