on 09-22-2008 6:49 AM
Hi All,
I have to select a row in a table on lead selection.
How it can be done ?
Thanks
Nikhil
Hi,
I am not sure what is your exact requirement. But if you want an initial selection to be made when a table is populated then you could set the initial lead selected property of the node binded to your table to true. This will automatically make the first row as lead selected.
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you want one row to be lead selected when the table is visible,
then use this statement
wdContext.node<TableNode>().setLeadSelection(<rowNumber>);
Regards
LN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
using the below code you can select the row.
IPrivate<ur view name>View.ITableElement iTableElement=wdContext.nodeTable().getTableElementAt(wdContext.nodeTable().getLeadSelection());
Regards,
ramesh
Edited by: Ramesh Babu V on Sep 22, 2008 11:29 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
You have to write the following code:
First Create an Event on Table OnLeadSelect.
and then write following code:
int leadselect = wdContext.nodeIt_Suggestion().getLeadSelection();
if (leadselect!=IWDNode.NO_SELECTION)
{
IPrivatePortalSuggestionView.IIt_SuggestionElement sgid = wdContext.nodeIt_Suggestion().getIt_SuggestionElementAt(leadselect);
}
Regards,
Dhruv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.