on 05-12-2008 6:10 AM
Hi ,
I have 5 records in table .User shouldn't be allowed to select four rows thosse four rows should be in disable mode just for display purpose.Only one Row must be allowed to select(lead select).
How can I Achieve above Functionality.
Thanks & Regards
Kiran
Hi Kiran ,
In Table Properties Change the Selection Mode to Single - Then you can select only one row at a time.
wdcontext.currentcontext.getLeaselect<attr>();
gives you the selected row's number.
Regards,
Sunitha Hari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try with the solution provided by Santosh. But you would not be able to disable those rows. I dont find any method for node elements to manipulate its readOnly or enabled property.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could set the table's selectionChangeBehaviour to "manual" and perform the lead selection change only for the rows you want to.
Or you could set the table's selectionMode to "none" and add a column with buttons/links where the button is exactly visible for those rows where you want to allow selection (a calculated attribute for controlling the button's visibility comes handy). In the action handler, just set the lead selection of the data source node to the row index.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kiran,
Probably you might have tried the following.
Bind OnLeadSelect event to some action.
And in that action method write the code to fetch selected lead and check if it is 0(first row) else set leadselection to 0
int selectedRow = wdContext.node<node name>().getLeadSelection();
if(selectedRow!=0)
wdContext.node<node name>().setLeadSelection(0);
With this code the user can not select any of the rows other than first.
If this is not what u require please let me know
Regards,
Santhosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
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.