angular-datatables icon indicating copy to clipboard operation
angular-datatables copied to clipboard

ng-click is not working inside the responsive view

Open Ramanjineyulu opened this issue 11 years ago • 20 comments

ng-click is not working inside the responsive view(child row) ng-click_notworking

Ramanjineyulu avatar Oct 19 '15 08:10 Ramanjineyulu

As mentioned in screen shot i have buttons inside the child rows,ng-click is not working on that buttons

Thanks in advance

Ramanjineyulu avatar Oct 19 '15 09:10 Ramanjineyulu

Are you using the responsive extension? Can you share your code?

l-lin avatar Oct 20 '15 12:10 l-lin

the same problem happens to me, I have a button in a row in the table, but at the time of be responsive does not work ng-click.

image

image

the buttons are not working

Hansel03 avatar Dec 01 '15 15:12 Hansel03

the same thing is happening with me :(

ghost avatar Jan 01 '16 18:01 ghost

See #209.

l-lin avatar Jan 01 '16 19:01 l-lin

@l-lin I am using angular-datatables - v0.5.5 and Responsive 2.0.2. When I click on thumbs Up in child, ng-click don't work. I have modified my code as you mentioned in above like in #209. Below is my code , please advise example

Thank you @Ramanjineyulu , @yasser-kfupm , @Hansel03 any luck ????

zoobe50 avatar Nov 23 '16 04:11 zoobe50

It must be a css issue. Check your DOM if there are any overlapping divs that blocks your element that has ng-click.

dashawk avatar Nov 23 '16 06:11 dashawk

@dashawk . no css is not causing any issue. even if I remove css. @l-lin any advise???

zoobe50 avatar Nov 24 '16 00:11 zoobe50

Can you reproduce it in jsfiddle or plunkr?

dashawk avatar Nov 24 '16 00:11 dashawk

@dashawk & @l-lin I have placed a sample code at Plunker https://plnkr.co/edit/51PrmG3dexxsvSuOhZxZ?p=preview

Run this app in mobile or tablet [responisve port view], there is a column called 'Country5' , click it's any value in Datatables Responsive, its alert would never work.

zoobe50 avatar Nov 24 '16 04:11 zoobe50

I see your plunkr got an error, i just removed the ng in datatables="" for your plunkr to work... Anyway, I found your error, it is definitely a css issue. Your css for table.dataTable.dtr-column>tbody>tr>td.control:before, table.dataTable.dtr-column>tbody>tr>th.control:before is causing the problem.

You see this style is overlapping above your <a> tag where you put your ng-click.

To resolve it, put your ng-click in the <td> tag then it should work. Your alert will show then after you click the ok button, the drop down will also work.

Hope I explained it clearly.

dashawk avatar Nov 25 '16 00:11 dashawk

Thank you @dashawk , I tried the way you have said. but it's still not working. Following css code is the default css code for Datatables. "table.dataTable.dtr-column>tbody>tr>td.control:before, table.dataTable.dtr-column>tbody>tr>th.control:befo" @l-lin any advise please

zoobe50 avatar Nov 27 '16 22:11 zoobe50

@dashawk : if you want you can use the following code to run local, after including default library & css files of Datatables , Angularjs , JQuery etc

`

Sample Responsive

Owner


Other Repo Issues