iamisti / mdDataTable

Angular data table complete implementation of google material design based on Angular Material components.
MIT License
524 stars 132 forks source link

Double checkbox / radio being rendered in mdt-custom-cell #248

Open pra-ver opened 7 years ago

pra-ver commented 7 years ago

Checkbox / radio is rendered twice in the custom html cell Heres an example http://codepen.io/anon/pen/zozVeR

Is there a fix released for this?

Chirag157 commented 7 years ago

is your issue is resolved because same thing is happening with me so can you please guide me.?

pra-ver commented 7 years ago

No resolution as of yet.. But this doesnt reproduce if you use ng-repeat rather than using the column-keys. You could try that way if its enough for your requirement

Chirag157 commented 7 years ago

can you please tell me how to do that in current scenario ??

            <mdt-header-row>
        <mdt-column align-rule="left">Dessert (100g serving)</mdt-column>
        <mdt-column align-rule="right">Calories</mdt-column>
        <mdt-column align-rule="right">Fat (g)</mdt-column>
        <mdt-column align-rule="right">Carbs (g)</mdt-column>
        <mdt-column align-rule="right">Protein (g)</mdt-column>
        <mdt-column align-rule="right">Sodium (mg)</mdt-column>
        <mdt-column align-rule="right">Calcium (%)</mdt-column>
        <mdt-column align-rule="right">Iron (%)</mdt-column>
    </mdt-header-row>
        </mdt-table> 
pra-ver commented 7 years ago

use ng-repeat in table using the custom html demo shown

Chirag157 commented 7 years ago

i have used in ng-repeat and its rendering only one radio button but the issue is i am not able to select that radio button. so please help me.

Chirag157 commented 7 years ago

@pradeeptirmal : i want to use radio buttons group inside and i am using ng-repeat so in if there is 5 value then 5 row is created with 5 radio button in column and i am selecting 1st radio button but when i selecting 2nd radio button then 1st radio button is not deselected. so please help me.

pra-ver commented 7 years ago

Please create a plunk or fiddle. will check

Chirag157 commented 7 years ago

@pradeeptirmal @iamisti : please check with this plunker link about behaviour of radio button:

https://plnkr.co/edit/20O3cN?p=preview