Loading...

RE: How to get the current selected value from qSelector programmatically?

RE: How to get the current selected value from qSelector programmatically?

#6570
Anonymous
Anonymous
Participant

Hi Inge

I just saw your posted question and your answer. Sorry to be late but there may be a quick way to get the selected value. The qSelector contains a required property named "SessionName". This property is used to store the currently selected item in the session by that property value. So I assume that you can access the session value by that name from the Custom Action code you posted before to acess the selected value of the qSelector.

Please note the value stored in this session is actually a Hashtable containing the Display Field name (defined in Display Fields property of qSelector) and the value of that field in the selected row. For example, you may get the selected row ID with the following code:

Hashtable persistedData = (Hashtable)Page.Session[SessionName];
if (persistedData != null && persistedData["ID"] != null)
{
   selectedItemID = persistedData["ID"].ToString();
}

If you would like to give it a try, let me know if it works for you.

Thanks,