Laying out an application. The model consist of a default.aspx page with a dive on the left that contains the rad slider. Then on this page I have an asp.Panel in which I load all my user controls dynamically.
page can be seen at:
http://n-sv.net/Webapps/test/ProjexUI/
I'm looking to implement Search functionality via a Rad Window on the default page. I have the search window up and the value going back to the default page. I was trying to load the projects.ascx control and set properties on a query object. However, I'm finding the binding is taking place during my loadcontrols method and by the time I set the query values nothing is happening. (What is suppose to happen is the projex grid should rebind using the values passed in.)
However, not having much luck, I'm wondering if I should reconsider and put the search Rad window on the projects.ascx page and use something like an trigger on the projects control instead of the way I'm doing it now.
To summarize, want to take the contents of the rad window when search is clicked and then pass them to the projects.ascx control which should use them to query the database and find matching records to display in a grid I have on the projects.ascx control?
Any thoughts?
page can be seen at:
http://n-sv.net/Webapps/test/ProjexUI/
I'm looking to implement Search functionality via a Rad Window on the default page. I have the search window up and the value going back to the default page. I was trying to load the projects.ascx control and set properties on a query object. However, I'm finding the binding is taking place during my loadcontrols method and by the time I set the query values nothing is happening. (What is suppose to happen is the projex grid should rebind using the values passed in.)
However, not having much luck, I'm wondering if I should reconsider and put the search Rad window on the projects.ascx page and use something like an trigger on the projects control instead of the way I'm doing it now.
To summarize, want to take the contents of the rad window when search is clicked and then pass them to the projects.ascx control which should use them to query the database and find matching records to display in a grid I have on the projects.ascx control?
Any thoughts?
9 Answers, 1 is accepted
0
Hello,
I had a look at the page, but I am not sure what exactly the problem seems to be. There are ways to make the RadWindow reload or update its parent page. For example - the following KB article demonstrates this (for the non-Prometheus edition - but the Prometheus is backward compatible so it should work).
http://www.telerik.com/support/kb/article/b454K-ggt-b454T-cec.aspx
Also, the following integration example between RadWindow and RadGrid demonstrates how the window causes the grid to rebind by using AJAX -
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid
We believe these two examples will help you implement what you need.
All the best,
Tervel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I had a look at the page, but I am not sure what exactly the problem seems to be. There are ways to make the RadWindow reload or update its parent page. For example - the following KB article demonstrates this (for the non-Prometheus edition - but the Prometheus is backward compatible so it should work).
http://www.telerik.com/support/kb/article/b454K-ggt-b454T-cec.aspx
Also, the following integration example between RadWindow and RadGrid demonstrates how the window causes the grid to rebind by using AJAX -
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid
We believe these two examples will help you implement what you need.
All the best,
Tervel
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
k f
Top achievements
Rank 1
answered on 11 Oct 2007, 10:32 PM
Hello Tervel,
First I tried loading the window from my Default.aspx page and then when the window closed I made a call to the ajaxRequest event which loads the project page that has the grid. I have an object on the projects.ascx page and after I loaded the control, was trying to populate the object which is used as a query string to query the database. In this scenario, all the events fire before I can populate object in the user control.
So then, I moved the radWindow to the user control. The problem here is the code I was sent to load controls dynamically on the default.aspx page.
I can't set this code in a conditional statement if(!IsPostBack), if I do grid displays all the records in my hierachical grid as flat.
The way it is now, this fires twice when you load a radwindow, and on the second loop through the code that opens the radWindow has a null object and throws exceptions.
Thanks for the articles, I'll read through them and if I have a problem I'll probably just open a case so I can forward my code in to find the best way.
Thanks.
First I tried loading the window from my Default.aspx page and then when the window closed I made a call to the ajaxRequest event which loads the project page that has the grid. I have an object on the projects.ascx page and after I loaded the control, was trying to populate the object which is used as a query string to query the database. In this scenario, all the events fire before I can populate object in the user control.
So then, I moved the radWindow to the user control. The problem here is the code I was sent to load controls dynamically on the default.aspx page.
I can't set this code in a conditional statement if(!IsPostBack), if I do grid displays all the records in my hierachical grid as flat.
The way it is now, this fires twice when you load a radwindow, and on the second loop through the code that opens the radWindow has a null object and throws exceptions.
Thanks for the articles, I'll read through them and if I have a problem I'll probably just open a case so I can forward my code in to find the best way.
Thanks.
0
k f
Top achievements
Rank 1
answered on 11 Oct 2007, 10:32 PM
Hello Tervel,
First I tried loading the window from my Default.aspx page and then when the window closed I made a call to the ajaxRequest event which loads the project page that has the grid. I have an object on the projects.ascx page and after I loaded the control, was trying to populate the object which is used as a query string to query the database. In this scenario, all the events fire before I can populate object in the user control.
So then, I moved the radWindow to the user control. The problem here is the code I was sent to load controls dynamically on the default.aspx page.
I can't set this code in a conditional statement if(!IsPostBack), if I do grid displays all the records in my hierachical grid as flat.
The way it is now, this fires twice when you load a radwindow, and on the second loop through the code that opens the radWindow has a null object and throws exceptions.
Thanks for the articles, I'll read through them and if I have a problem I'll probably just open a case so I can forward my code in to find the best way.
Thanks.
First I tried loading the window from my Default.aspx page and then when the window closed I made a call to the ajaxRequest event which loads the project page that has the grid. I have an object on the projects.ascx page and after I loaded the control, was trying to populate the object which is used as a query string to query the database. In this scenario, all the events fire before I can populate object in the user control.
So then, I moved the radWindow to the user control. The problem here is the code I was sent to load controls dynamically on the default.aspx page.
I can't set this code in a conditional statement if(!IsPostBack), if I do grid displays all the records in my hierachical grid as flat.
The way it is now, this fires twice when you load a radwindow, and on the second loop through the code that opens the radWindow has a null object and throws exceptions.
Thanks for the articles, I'll read through them and if I have a problem I'll probably just open a case so I can forward my code in to find the best way.
Thanks.
0
k f
Top achievements
Rank 1
answered on 11 Oct 2007, 10:32 PM
Ok things were going good with the Grid, window example except I'm using Visual Studio 2008 and the RaisePostBackEvent isn't firing.
Again, keep in mind my grid and rad window are on a user control.
If that were firing to where i could get the values I need from the Argument, I can probably get everything working. Also, looking at this event in the help, it indicates that Microsoft IE WebControls are not currently supported.
Is there another event on the User control I could subscribe to that happens on the grid ajaxrequest I could subscribe to catch the event and take the argument and assign the correct values to my query string?
Thanks.
Thanks.
Again, keep in mind my grid and rad window are on a user control.
If that were firing to where i could get the values I need from the Argument, I can probably get everything working. Also, looking at this event in the help, it indicates that Microsoft IE WebControls are not currently supported.
Is there another event on the User control I could subscribe to that happens on the grid ajaxrequest I could subscribe to catch the event and take the argument and assign the correct values to my query string?
Thanks.
Thanks.
0
k f
Top achievements
Rank 1
answered on 12 Oct 2007, 11:47 PM
Found this article which has gotten me a little further.
http://www.telerik.com/help/RadGrid/v4_Net2/?grdMakePostBackAJAXRequestFromUserControlWebFormMasterPage.html
http://www.telerik.com/help/RadGrid/v4_Net2/?grdMakePostBackAJAXRequestFromUserControlWebFormMasterPage.html
0
Hello k f,
We are not quite sure how far you have gotten with this issue, however we would suggest to make sure that you are making the Ajax request by following the exact convention provided in the Help article that you mention.
If you still experience problems, can you please send us a small sample project which reproduces your setup and the current difficulties? You will need to open a new support ticket as you cannot attach files in the forum.
Thank you for your cooperation.
Regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
We are not quite sure how far you have gotten with this issue, however we would suggest to make sure that you are making the Ajax request by following the exact convention provided in the Help article that you mention.
If you still experience problems, can you please send us a small sample project which reproduces your setup and the current difficulties? You will need to open a new support ticket as you cannot attach files in the forum.
Thank you for your cooperation.
Regards,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
k f
Top achievements
Rank 1
answered on 15 Oct 2007, 04:36 PM
Georgi,
I think I've got something figured out with this. I had to inherit IPostBackEventHandler on the page such as:
I think I've got something figured out with this. I had to inherit IPostBackEventHandler on the page such as:
public partial class UserControls_Projects : System.Web.UI.UserControl, IPostBackEventHandler
{
And then create my method as such:
void IPostBackEventHandler.RaisePostBackEvent(string eventArg)
{
Appears to be working now. What the article doesn't mention is that a UserControl doesn't inheritenly contain the RaisePostBackEvent which I found out in the msdn help.
But again I do have this working now.
Thanks.
0
Hi k f,
It is good to know that you've managed to solve the problem. As for the help article, the fact that UserControl does not implement IPostBackEventHandler is mentioned in the very beginning.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
It is good to know that you've managed to solve the problem. As for the help article, the fact that UserControl does not implement IPostBackEventHandler is mentioned in the very beginning.
Best wishes,
Georgi Tunev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
k f
Top achievements
Rank 1
answered on 16 Oct 2007, 11:14 AM
Not the ones the first person suggested would provide a solution to the problem.
http://www.telerik.com/support/kb/article/b454K-ggt-b454T-cec.aspx
Also, the following integration example between RadWindow and RadGrid demonstrates how the window causes the grid to rebind by using AJAX -
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid
I found that article on my own after what I was directed to didn't work. Also, found info in MSDN before running across that one on Telerik.
http://www.telerik.com/support/kb/article/b454K-ggt-b454T-cec.aspx
Also, the following integration example between RadWindow and RadGrid demonstrates how the window causes the grid to rebind by using AJAX -
http://www.telerik.com/demos/aspnet/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid
I found that article on my own after what I was directed to didn't work. Also, found info in MSDN before running across that one on Telerik.