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

Using radcontrols in a user control (.ascx) for insertnig/editing records

6 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 29 Jan 2008, 07:56 PM
I'm trying to use a user control for updating a radgrid but am having issues when trying to use radcontrols on the control (.ascx page). Is there an issue with trying to do this or something particular that needs to be done. The controls either don't appear (input) or are disabled (combobox).

6 Answers, 1 is accepted

Sort by
0
Jason Maronge
Top achievements
Rank 1
answered on 29 Jan 2008, 09:53 PM

I too was having issues with my comboboxes being disabled.  Turns out that I forgot to set  the ajax manager to update my grid.

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="rgDrugs">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="PanelMedication" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManagerProxy> 

Please make sure you have the ajax setup correctly for it to work.  My thinking is that since there is no ajax manager set for it the scripts to initalize the controls are not getting executed.

Hope this helps....

Jason
0
Josh
Top achievements
Rank 1
answered on 30 Jan 2008, 01:37 AM
I did have ajax setup for the grid, I had the grid in an ajax panel, getting rid of it allowed the controls to work.
0
Maxime
Top achievements
Rank 2
answered on 09 Oct 2008, 05:47 PM
I did the same, and not only my radcombobox disabled but my raddatepicker too.

I, too, have a radgrid with an ajaxmanagerproxy set to the grid to update itself, but when I click Add new record, I get a javascript error and can't do anything after the control in the grid is displayed.

So just to resume clearly:

- I have a grid, contained in a content page.
- The masterpage has an ajax manager
- the content page has a ajax proxy manager
- The proxy manager is set to update the grid itself.
- When I click Add new record, the control is shown but the page gives me a javascript error and after nothing can be clicked (comboboxes or datepicker)
- The control basically contains 2 radcomboboxes, 2 raddatepicker, radtabstrip and multipage along with it's pageview.

Anyone found a solution in regards to that.
0
Yavor
Telerik team
answered on 10 Oct 2008, 05:29 AM
Hello Maxime,

Based on the supplied information, it is hard to pinpoint the cause of the issue.
If it persists, you can open a formal support ticket, and send us the offending code, in the form of a small working project, for additional review.

Greetings,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Maxime
Top achievements
Rank 2
answered on 10 Oct 2008, 05:29 PM
Hi,

I already did that, it was fix in the latest version, however my interface is still behaving weirdly and mentionned it on the ticket... waiting for a reply.
0
Yavor
Telerik team
answered on 13 Oct 2008, 08:13 AM
Hi Maxime,

To avoid duplicate posts, we will continue our communication in the support ticket that you have opened on the matter.

Regards,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Josh
Top achievements
Rank 1
Answers by
Jason Maronge
Top achievements
Rank 1
Josh
Top achievements
Rank 1
Maxime
Top achievements
Rank 2
Yavor
Telerik team
Share this question
or