Task Collection is empty

6 posts, 1 answers
  1. Felix
    Felix avatar
    42 posts
    Member since:
    Sep 2014

    Posted 04 Sep 2014 Link to this post

    Hi,

    i have one problem regarding the new gantt chart and its task collection. I copied the online example "Gantt - XML Provider" and everything works fine. But when I want to get all the created tasks inside the gantt chart e.g. for saving purposes, at a server side event, the task collection is empty. It doesn't matter if I call Radgantt1.Tasks or the mehtod GetAllTasks(). I hope somebody can solve my problem as soon as possible.

    Beside of that the reason why I used the the example with the XMLGanttProvider is that at first i tried to use a ObjectDatasource to populate, update and insert my gantt chart. But when i tried to insert new tasks with the integrated "Add Task" -Button nothing happend and I've got the javascript error: "w[x] is null" when I set the property  "DataObjectTypeName" to a certain object. Updating and selecting worked fine.
    When i try to use explicit update and insert parameters my attached update and insert methods don't even get invoked...
    So you can see that I've tried a lot of things to accomplish my goals.

    Thanks,
    Felix
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 04 Sep 2014 Link to this post

    Hello,

    You have to call RadGantt1.DataBind();​ before trying to access the tasks. As for the ObjectDataSource issue, we are working on it and will provide a fix for the upcoming release.

    Regards,
    Bozhidar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Felix
    Felix avatar
    42 posts
    Member since:
    Sep 2014

    Posted 04 Sep 2014 in reply to Bozhidar Link to this post

    Hi Bozhidar,

    thank you for your fast and helpful answer. But I wanted to make one additional annotation. If I use an ObjectDataSource and do not attach an insert method, I get the Javascript-Error "too much recursion" (browser: Firefox v. 32.0) when ich click e.g. "Add child" and no new task is inserted inside the gantt chart. Don't know if this is a bug or something else.

    Greetings,
    Felix
  5. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 05 Sep 2014 Link to this post

    Hello Felix,

    Could you elaborate on why you would remove the Insert method and try to use the Add button? What is the expected behavior? We will investigate this to make sure that we don't lock up the browser with recursion, however this is not a valid use case.

    Regards,
    Bozhidar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Felix
    Felix avatar
    42 posts
    Member since:
    Sep 2014

    Posted 05 Sep 2014 in reply to Bozhidar Link to this post

    Hi Bozhidar,

    I removed the insert method because with an ObjectDataSource either the method with a complex object as a parameter or with the deifnition of explicit insert paramters didn't work. If I want to pass a complex object (with only simple datatypes) to my insert method a javascript error is thrown with the error message "w[x] is null". And if I define explicit insert parameters the attached insert method is not invoked. Thtas because I removed the attached insert method and tried to store my gantt task with the event "OnTaskInsert". And this leads to the java script error "too much recursion". I hope I could explain the background of my considerations more or less ;-).

    Regards,
    Felix
  7. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 05 Sep 2014 Link to this post

    Hi Felix,

    Thank you for clarifying.

    In the official release there was also an issue with the Server events, which we've recently fixed. If you download the latest internal build you should be able to use the Insert event without any issues. 

    Regards,
    Bozhidar
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017