This is a migrated thread and some comments may be shown as answers.

more tables on one page, " "

5 Answers 371 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roland
Top achievements
Rank 1
Roland asked on 03 Nov 2011, 09:31 AM
Hi there, 

i have a render problem with " "
is there a fix for this issue?

thanks a lot
cheers roland

5 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Nov 2011, 09:59 AM
Hello Roland,

I don't see an attached screenshot to your post. As for the multiple table initialization, it works on my side. Please double-check for some minor error.

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Roland
Top achievements
Rank 1
answered on 03 Nov 2011, 10:14 AM
Hi,

yep it works now. sry my misstake.

but now i have scrollbars at second and third table.

    $(".table-02").kendoGrid({
        height: "auto",
        groupable: false,
        scrollable: true,
        sortable: true,
        pageable: false,
        columns: [
            {
                field: "FirstName",
                title: "First Name"
            },
            {
                field: "LastName",
                title: "Last Name"
            }
        ]
    });

(same on each table)

also i have still the " " issue.
some ideas about that?


thanks
0
Dimo
Telerik team
answered on 03 Nov 2011, 10:19 AM
Hello Roland,

If you don't want scrollbars, you should set scrollable: false. Height:auto is applied to the Grid wrapper, while the scrollable element is different.

Can you please specify what exactly is the "  issue" ?

Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Roland
Top achievements
Rank 1
answered on 03 Nov 2011, 10:40 AM
looks like im a bit confused today. sorry.

in my table there are some empty tabel cells, there is just a space in it.
kendo is rendering the space as  & n b s p ;

i can use something like this $('.table td:contains(" ")').html('');
but then i need a callback for the sorting.

thanks
best greets roland
0
Accepted
Dimo
Telerik team
answered on 03 Nov 2011, 02:13 PM
Hello Roland,

Indeed, when the Grid is initialized from a rendered table and has autogenerated columns, it is expected to not encode the table cell values. Currently you can include column definitions explicitly and disable encoding, as shown below. We will research how to improve the discussed behavior.


$("#myGrid").kendoGrid({
    sortable:true,
    scrollable:false,
    height:"auto",
    columns: [
        {
            field: "string",
            title: "Some String"
        },
        {
            fiend: "empty",
            title: "Empty Cells",
            encoded: false
        },
        {
            field: "note",
            title: "Note",
            encoded: false
        }
    ]
});


<table id="myGrid">
    <thead>
        <tr>
            <th data-field="string">some strings</th>
            <th data-field="empty">empty cells</th>
            <th data-field="note">note</th>
        </tr>
    </thead>
    <tbody>
        <tr><td>cell 1.1</td><td> </td><td>space</td></tr>
        <tr><td>cell 2.1</td><td>&nbsp;</td><td>&amp;nbsp;</td></tr>
        <tr><td>cell 3.1</td><td>     </td><td>multiple spaces</td></tr>
        <tr><td>cell 4.1</td><td></td><td>empty string</td></tr>
    </tbody>
</table>


Best wishes,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Roland
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Roland
Top achievements
Rank 1
Share this question
or