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

Form not showing Data, when dynamicly loaded out of a grid (ajaxified)

3 Answers 30 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Zeljko
Top achievements
Rank 1
Zeljko asked on 30 Sep 2008, 02:19 PM
Hello,

well I have following Problem. Developing site with .NET 3.5, C#, Telerik Controls Q2/2008. On this site there is a RadGrid and a Formular. Both of them "ajaxified". Grid with this in code behinde:
RadAjaxManager manager = RadAjaxManager.GetCurrent(this.Page);
manager.AjaxSettings.AddAjaxSetting(m1ButtonSave, GrdAllNlCategorys);

which means when a save button is clicked grid should reload. And the form is in an
Ajax panel like this:
<telerik:RadAjaxPanel id="Radajaxpanel2" runat="server">
</telerik:RadAjaxPanel>

now following, there is an edit button, so when a user klicks on it I load the data of this item into the form at this site with following code:
private void SetDataFields(GridDataItem gdi, GridDataItem parentgdi)
        {
            UserInfo myCurrentUserInfo = SessionItems.CurrentUserInfo;
            using (M1eRelCLCustomerDB customerDBContext = ConnectionManager.CreateCustomerDBContextRO(myCurrentUserInfo.ConstraintCustomerID))
            {
                TxtCategorieName.Text = gdi["NewsletterCategoryName"].Text;
                TxtNlCategoryDescription.Text = ""; // gdi["AdmCustomerID"].Text;
                            }
        }
now my problem is, that the app comes into this, it gives the value to the telerik
textbox control. I see it in a debug mode, but the value is not displayed. If I remove the first ajaxifinig from grid, then it works.
Can someone give me a helpfull advice how to solve this issue.

regards,
zk

3 Answers, 1 is accepted

Sort by
0
Zeljko
Top achievements
Rank 1
answered on 01 Oct 2008, 02:51 PM
anyone some idea about this issue?

regards
0
Yavor
Telerik team
answered on 03 Oct 2008, 06:19 AM
Hi Zeljko,

Can you please remove the AjaxPanel from the form, and use either AjaxManager to ajaxify all the needed controls, or nest them in an AjaxPanel  (removing the manager).
Give this suggestion a try and see if it helps.
If the issue persists, you can open a formal support ticket, and send us the problematic code, in the form of a small project sample, for further investigation.

Best wishes,
Yavor
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sebastian
Telerik team
answered on 03 Oct 2008, 06:54 AM
Hello Zeljko,

You may also refer to this public forum post you opened on the same subject:

http://www.telerik.com/community/forums/thread/b311D-bgemdm.aspx

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Zeljko
Top achievements
Rank 1
Answers by
Zeljko
Top achievements
Rank 1
Yavor
Telerik team
Sebastian
Telerik team
Share this question
or