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

[Solved] Clientside combo box is null in Batch Edit (version 2011.1.602) but is ok in 511

8 Answers 168 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Pak
Top achievements
Rank 1
Pak asked on 13 Jun 2011, 05:48 AM
Dear sir/madam

Please kindly find attached 2 projects and a word document showing the error in version 602 and for comparison. Folder TelerikMvcApplication1 - Copy uses version 511 whereas folder TelerikMvcApplication1 uses version 602.

In version 511, lines below work perfectly, i.e. we are able to get the combo box and its selected value.

var ddl = $(e.cell).find("#Function");
        if (ddl != null && ddl.length > 0)
        {
            var combo = ddl.data('tComboBox');

In version 602, the same lines causes javascript undefined error.

Please see CompanyStoreEdit.ascx, line 104 in version 511 and 137 in version 602.

Steps to reproduce the error (please use project in folder TelerikMvcApplication1):
1/ Run the project, select tab Testing and then click on "Show grid in window" button.
2/ Once popup window is shown, click on one of the Function rows. You will get a alert message saying "combo is null in 602!", followed by javascript error thrown.

If repeating the same steps in version 511, we won't get the above error.

Thank you
best regards


8 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 13 Jun 2011, 08:09 AM
Hello Pak,

Could you please download the latest internal build (version. 613) and see if this makes any difference.

All the best,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henry
Top achievements
Rank 1
answered on 13 Jun 2011, 09:45 AM
expecting the solid release version!

it seems Q2 release delayed. :(
0
Pak
Top achievements
Rank 1
answered on 13 Jun 2011, 11:38 AM
Hi Rosen

Thanks for your prompt reply. The version provided is not working. In some cases, it gives syntax error in the script (please see attached screen shots that highlights the offending line).

Thank you
best regards


0
Rosen
Telerik team
answered on 13 Jun 2011, 03:08 PM
Hi Pak,

I'm afraid that I'm unable to observed the error you have described in the project you have sent us. Therefore, could you please give us a detailed instruction how it can be recreated with the project you have already sent or please provide another sample.

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Henry
Top achievements
Rank 1
answered on 14 Jun 2011, 01:46 AM
Hi Pak,

Please refer to my code, which I just tested with 2011.1.602, no exception occurred:

<script type="text/javascript">
    function Grid_OnSave(e) {
        var $ddl = $(e.cell).find('#LogOnTypeId');
        if ($ddl.length > 0) {
            var ddl = $ddl.data("tDropDownList"),
......

Henry
0
Pak
Top achievements
Rank 1
answered on 14 Jun 2011, 03:31 AM
Hi Rosen

My sincere apologies that I didn't make it clear in my previous email. I was not able to test the fix as I encountered a script error that prevents me going further. Please find attached 2 projects, TelerikMvcApplication1 running version 613, TelerikMvcApplication1 - Copy running version 511.

When running, please type this address: http://localhost:xxxxx/Home/Courier  where xxxxx is the port no.

The same code runs perfectly fine under 511 but a script error in 613. Due to the grid script error, no data is bound for the grid.

Document "Telerik 613 script error.docx" shows the script error in firebug and the highlighted offending line.

Thank you
best regards

0
Rosen
Telerik team
answered on 14 Jun 2011, 07:48 AM
Hi Pak,

I was able to recreate the error you have described. It appears to be an issue with the build, which we have managed to address. Please find attached a newer build.

Regards,
Rosen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Pak
Top achievements
Rank 1
answered on 14 Jun 2011, 09:28 AM
Thanks Rosen

That fixes it.
Tags
Grid
Asked by
Pak
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Henry
Top achievements
Rank 1
Pak
Top achievements
Rank 1
Share this question
or