Hi,
 
    Each row in the sheet has an id like this "sheetid_data_tr_rownumber" . 
Use Tobago.element(rowId) method to get a reference to the row which you
want to select. Then call
Tobago.addCssClass(rowToBeSelected,"tobago-sheet-row-selected") method.
After that you must set value for an hidden field which holds the currently
selected row. Hidden field will have id  like this "sheetid:selected". Use
Tobago.element(hiddenId) and set value for this hidden field to the
rownumber which you want to be selected.
 
Thanks & Regards,
Rajesh.M
iMantras India Pvt.Ltd.
Chennai.


yazid wrote:
> 
> Thanks Bern; 
> I already use the lik to display the row details in another panel;
> I've some button (add, addAll,Delete...) to transfert rows between the two
> sheet...
> I've tried the sheetStateListener , but action for this.
> 
> 
> Bernd Bohmann wrote:
>> 
>> Hello,
>> 
>> you can add a link to the table row. If the link is pressed this 
>> selection would be copy to the second table. Maybe this is a possible 
>> solution.
>> Please search the mailing list for some answer about
>> "get current row from a link in a sheet"
>> 
>> Regards
>> 
>> Bernd
>> 
>> yazid wrote:
>>> Exactly, I've to select one or many rows in one sheetand insert them
>>> immediatly in the second;
>>> 
>>> 
>>> Bernd Bohmann wrote:
>>>> Hello Yazid,
>>>>
>>>> you want to select one row in the first sheet and immediate add the 
>>>> selection to the second sheet?
>>>>
>>>> Regards
>>>>
>>>> Bernd
>>>>
>>>> yazid wrote:
>>>>> without inserting a reload facet.
>>>>> You should configure freq to 1s, for having a quasi-immediate 
>>>>> selection
>>>>> in
>>>>> server side, but this facet is very time consumming and I've two sheet
>>>>> in
>>>>> my
>>>>> page (one containing a result serach and the second containing the
>>>>> selected
>>>>> rows from the first);
>>>>> Please Help;
>>>>
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Tobago--How-to-select-rows-in-sheet-....-tf2912753.html#a8156599
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to