Sep 09, 2015, 8:02 PM
[CLOSED] Conditional Hyperlink in the Grid
Hi,
I have a grid defined as follows -
Thanks
I have a grid defined as follows -
@(X.GridPanel()
.ID("GridPanel1")
.Width(400)
.Store(X.Store()
.Model(X.Model()
.Fields("someName", "someId","status")
)
.DataSource(Model)
)
.ColumnModel(
X.Column().Text("Some Name").DataIndex("someName"),
X.Column().Text("Some ID").DataIndex("someId"),
X.HyperlinkColumn()
.ID("HyperlinkColumn1")
.Text("Status")
.Width(150)
.DataIndex("someName")
.DataIndexHref("someId")
.HrefPattern("http://someurl?someId={href}")
)
)
My requirements is, to show the link only if the status='APPROVED', else display the Status column (in the above grid definition) as plane text. Can you please give some clue, how it can be achieved ?Thanks
Last edited by Daniil; Sep 15, 2015 at 7:55 PM.
Reason: [CLOSED]