Oct 09, 2014, 7:02 AM
[CLOSED] gridpanel - component column ToolTip
Hi,
Mine is an asp.net MVC Razor View application.
I have a gridpanel having component column. The component column has Combobox.
Following is the markup of the ComponentColumn.
Below is the snap of it.
Mine is an asp.net MVC Razor View application.
I have a gridpanel having component column. The component column has Combobox.
Following is the markup of the ComponentColumn.
Html.X().ComponentColumn()
.Editor(true)
.Sortable(false)
.DataIndex("cpt")
.Flex(1)
//.Listeners(ls => ls.Edit.Fn = "cmbCPTChange")
.Text("cpt")
.Component(Html.X().ComboBox()
.Editable(false)
.EmptyText("Select cpt")
.ValueField("cptCD")
.DisplayField("cptDESC")
.Listeners(ls => ls.Change.Fn = "SetDirty")
.Store(Html.X().Store()
.Model(Html.X().Model()
.Fields(
new ModelField("cptCD", ModelFieldType.String),
new ModelField("cptDESC", ModelFieldType.String)
)
)
.DataSource(Model.cptList)
)
I have used below ToolTip control to show tooltips. @(Html.X().ToolTip().ID("ttpgrdPackPriceAttributes")
.Target("={#{grdPackPriceAttributes}.getView().el}")
.Delegate(".x-grid-cell")
.TrackMouse(true)
.Listeners(ls => { ls.Show.Handler = "onShow(this, #{grdPackPriceAttributes});"; })
)
The issue am facing is on mouseover of the component column row cell in the tooltip it shows 'ValueField' value instead of 'DisplayField'Below is the snap of it.
Last edited by Daniil; Oct 09, 2014 at 7:10 PM.
Reason: [CLOSED]