Categories | Question details Back To List | ||||||||
user event more than 1 parameter. Hi I am having problem in adding rows to grid thro addRow() if i have column which has userEvent. The problem is that the event callback function takes in 2 parameters which by syntax should be comma separated. Since addrow column values are also supposed to be comma separated, event function gets split inappropriately. For eg: this si the text i am passing to the addRow(1, ../images/remove.jpg^Remove Jobs^javascript:funRemove("2101579$C$J$9056228","J")^_self, 0, 2101579, 9056228) ../images/remove.jpg^Remove Jobs^javascript:funRemove("2101579$C$J$9056228","J")^_self, 0, 2101579, 9056228
the above text splits it to ../images/remove.jpg^Remove Jobs^javascript:funRemove("2101579$C$J$9056228" as one column and ","J")^_self as next.
Can you please help me out here Cheers Gayathri Answer posted by Alex (support) on Jul 06, 2009 09:00 Hello, the correct addRow call in this case is: addRow(1,['../images/remove.jpg^Remove Jobs^javascript:funRemove("2101579$C$J$9056228","J")^_self', 0, 2101579, 9056228]); Answer posted by Gayathri on Jul 07, 2009 01:59 Hi, It still would not work. Plus now the image is not showing up. The result is as before.
Gayathri. Answer posted by Alex (support) on Jul 07, 2009 02:07 hello, locally this approach correctly works - teh sample is attached Attachments (1)
|