KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Radio button appearing on top of its text #883

Open iRiyada opened this topic on on May 22, 2019 - 5 comments

iRiyada commented on May 22, 2019

Why is the radio button and check box overlapping their labels?

This is my output now.

This is the code I have written for it

  <div class="row">
            <div class="col-md-6 form-group" style="float: right">
            <strong>choose</strong>

            <?php
RadioList::create(array(
    "name"=>"radio",
    "data"=>array(
        "Current"=>"1",
        "Date Range"=>"2",       
    ),
    "display"=>"horizontal",
    "clientEvents"=>array(
        "change"=>"function(s){
            console.log(s.value);
            $('#form1').submit();
            
        }",
    )
));
?>
        </div>
       

        </div>
KoolReport commented on May 23, 2019

It seems the bootstrap has issue with rtl, you may cover the RadioList with a div with ltr

<div class="ltr">
    <?php
    RadioList::create(array(
    ...
    ));
    ?>
</div>
iRiyada commented on May 23, 2019

It did'nt work. the overlapping of button over label still persist.

KoolReport commented on May 23, 2019

Oh sorry it should be dir='ltr'

iRiyada commented on May 23, 2019

Thankyou. That worked:)

iRiyada commented on May 29, 2019

Now it is aappearing like this.

but what is expected is: label followed by radio button.

                        label1 o

now what I get is radio button followed by label, as seen in the diagram

                        o label1
                        

This is the code I have. please help


<div class="row">
            <div class="col-md-3 form-group" style="float: right">
 <div dir="ltr">   

            <?php
RadioList::create(array(
    "name"=>"radio",
    "data"=>array(
        "بحث بتاريخ"=>"2",  
         "إجازة حالية"=>"1",    
    ),
    "display"=>"horizontal",
    "clientEvents"=>array(
        "change"=>"function(s){
            console.log(s.value);
            $('#form1').submit();

                          
        }",
    )
));
?>
</div>
        </div>
</div>



Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None