Welcome Guest Search | Active Topics | Sign In | Register

Grid Column as a URL Options
MarkITP
Posted: Friday, July 23, 2010 11:36:32 AM
Rank: Member
Groups: Member

Joined: 10/13/2009
Posts: 14
I have a grid that contains several columns. One column of the grid has data but is also a link to another .aspx page. Using the DataFormat property in the column "op" of the grid, I have the following: <a href='FlowExceptionsDetail.aspx?id={0}'>{0}</a>

I have decided that I need to pass another parameter in the statement along w/ the op, HOWEVER, the additional parameter is NOT part of the grid itself, rather it is a datepicker field above the grid.
I want to pass the date that is selecteddate of the datepicker. The whole screen is nothing more than a datepicker and a grid. Would I use something like:

<a href='FlowExceptionsDetail.aspx?id={0}&id2={1}'>{0}</a>

If so, how do I designate the "id2={1}" means to pass the "this.dpEffDate.SelectedDate" value???
eo_support
Posted: Friday, July 23, 2010 11:43:58 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You won't be able to have id2={1} in your format string. There are two options to get around that. The first option is to reload the Grid with {1} already filled in. The second option is to use a CustomColumn. With a CustomColumn you can handle the columns' ClientSideGetText with JavaScript code. That way you can put anything you like in it.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.