Editable Column In Gridview Issue With First Insert


I have a TbGridView inside a TbListView, with two columns. Both columns are a select type, so I have a list of possible values to select from, as you may expect.

Everything works fine, including ajax calls, but only if the GridView has some content. I mean, if the GridView is empty, and I try to insert new values, although they insert correctly in the database, they are not displaying correctly, that is, cells are empty. Once a reload the page, everything works nice again.

Main problem seems to be with the ajax call, the GridView is preventing the JavaScript to register itself, even if I get this JavaScript myself and echo it inside a <script> block.

Is there any known workaround for this? Any suggestions?