mehmet07 Posted April 6, 2017 Posted April 6, 2017 Merhabalar, UnimDBListGrid bilesenin beforeinit özelliğine kod yazarak listgrid in her satirini kendime göre özelleştirerek 2 tane buton ekledim. Amacım bu butonlara tiklandiğinda ajaxRequest oluşturmak ve bu isteği yakalamak. Ama bir türlü istediğimi başaramadım. function beforeInit(sender, config) { config.itemTpl= '<span id="aa"></span>'+ '<table style="width:100%">'+ ' <tr> <td style="width:130px"><a href="#">{1}</a></td> <td style="width:20px">{2}</td><td style="width:20px"> <button type="button">+</button></td>' +'<td style="width:20px"> <button type="button" onclick="ajaxRequest(MainmForm, 'eksi_tiklandi', [])">-</button></td> </tr>' + '</table>'; } Quote
Sherzod Posted April 6, 2017 Posted April 6, 2017 Hi, Try: function beforeInit(sender, config) { config.itemTpl = '<span id="aa"></span>' + '<table style="width:100%">' + ' <tr> <td style="width:130px"><a href="#">{1}</a></td> <td style="width:20px">{2}</td><td style="width:20px"> <button type="button">+</button></td>' + '<td style="width:20px"> <button type="button" onclick="ajaxRequest(MainmForm.window, \'eksi_tiklandi\', [])">-</button></td> </tr>' + '</table>'; } * Correct: MainmForm.window Best regards. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.