Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
124 views
I have a RadGrid set up so that the user can select line items in the grid via a checkbox.  The grid is using the ClientSelectColumn to allow for item selection.  There is also a dropdown list on the control that will rebind the grid with different data based on the item selected in the dropdown list.  Basically the user can selected from a list of items in a dropdown list, which should force the grid on that same user control to rebind with a different set of data (same structure - just different values).  The control is set up to use the RadAjaxManager and RadLoadingPanel to provide partial page postbacks of the grid.  It is desired that the user just see the loading panel as the grid data is rebound.

When I put this control in a regular ASP.NET page, it works just great.  All the item selections seem to hold and I can view them server side (the user hits a submit button to submit the selected items in the grid).  However, I now need to use this control from within a MOSS 2007 web part.  When the control is used from the web part, the grid selected items no longer seem to hold.

When the web part first renders, the grid looks good.  I can select items in the grid and the selected line highlights in the grid.  If I then make a selection from the dropdown list and do the partial postback, the grid appears to rebind, but it seems as if something is wrong with the selected items.  If I click on the checkbox to select a row, the row no longer highlights.  When I submit the form, the grid's SelectedItems property is zero - even thought there are selected items in the grid.

This is really starting to confuse me.  It seems to me like the problem has to be related to the ajax postbacks and being inside a web part, but I'm not sure where or how to fix it. 

Any suggestions or advice on this would be greatly appreciated.
Vadim
Top achievements
Rank 1
 answered on 13 May 2009
8 answers
844 views
I am using the confirm dialog in my web application. However for a particular situation I would like to present the user with a yes/no/cancel choice. Is it possible to do this using the templates for the dialogs?

If not whats the best way to go about it?

Thanks

Emmet
Felipe Saldana
Top achievements
Rank 1
 answered on 13 May 2009
2 answers
75 views
When using the Service for an MVC project, we are trying to override/disable the built in editors for create and edit appointment.  We have be able to override the edit dialog by setting OnClientAppointmentEditing="OnEdit" and implementing the following javascript: 

        function OnEdit(sender, eventArgs) {
            OpenEditor();
            eventArgs.set_cancel(true);
        }

But, we have not been able to do the same for the new appointment.  It seems that all the current events (OnClientFormCreated,  OnAppointmentInsert, OnClientAppointmentInserting, OnFormCreating) are called after the fact instead of before the built in editors are created and displayed.  Are we missing something? Can this be done with the service or is there a better way to accomplish what we are looking for?
SolutionStream
Top achievements
Rank 1
 answered on 13 May 2009
1 answer
80 views
I have a RadUpload control placed inside the ItemTemplate of radPanelbar. I have a button somewhere on the page as submit. For some reason, the file upload is not working. If I create a new page with new project and same radupload control and button, it works as expected. 

 The version I am using is RadControls for ASPNET AJAX Q1 2009.

Please help and thanks!
Jason
Top achievements
Rank 1
 answered on 13 May 2009
1 answer
169 views
Hello,
I am trying to use RadMenu in conjunction with RadTabStrip.

My requirement in as follows:
Have a RadMenu with two menuitems (Item1,Item2), clicking on the menu item should create a new RadTab and a new RadPageView. Each of these RadPageView's is loaded with a user control (.ascx) based on the menu item clicked.

To Acheive this, I am handling the ItemClick event of RadMenu. This event handler does the following
  1. Create a new RadTab object.
  2. Add this object to RadTabStrip on the page
  3. Create a new RadPageView object
  4. Load the corresponding user control and the same to the new page view
  5. Setting PageViewID of the tab to the corresponding PageView.ID
  6. Add this object to RadMultiPage on the page.

All of this seems to be working fine. When the menu item (Item1) is clicked, RadTab is getting created and its corresponding RadPageView is also getting created properly.

When the second menu item (item2) is clicked, I find that the previous added RadPageView (of Item1) exisits but the user controls added in this page view are no more present !

How can i fix this issue so that clicking of menu items does not cause the controls  to vanish?

Thanks
Rama



Alex Lawson
Top achievements
Rank 1
 answered on 13 May 2009
3 answers
155 views
Hi

Still getting used to ORM (open access) and have created a grid on a web  page that is changes its data source on a tab click and refreshes to show a single different table

The problem is when you try to edit an item in a grid row it produces an error;
"There was a problem extracting DataKeyValues from the DataSource. Please ensure that SDataKeyNames are specified correctly and all feilds exist in the Datasource."

I have not been able to degug to find what the values are.

It is coded in .net 3.5 with latest 2009 version of open access and rad grid

The technique to change data is in NeedDataSource as follows;

protected

 

void RadGridTable_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
string cDataSourceTypeName = "RGLdata.TblContactType"  // the open access class where data stored
string cMasterTableViewDataKeyNames = "ContactTypeId"; // the primaary key feild in correct case with no spaces of the above table

 

 

 

 

OpenAccessDataSource1.TypeName = cDataSourceTypeName;
// blank all before add new

RadGridTable.DataSourceID =

"";

 

 

 RadGridTable.MasterTableView.DataSourceID =

"";

 

 

 RadGridTable.MasterTableView.DataKeyNames =

new string[] {};
 

 

 

// add correct sources
RadGridTable.DataSourceID =

 

"OpenAccessDataSource1" ;

 

RadGridTable.MasterTableView.DataSourceID =

 

"OpenAccessDataSource1";

 

RadGridTable.MasterTableView.DataKeyNames =

new string[] { cMasterTableViewDataKeyNames };

No databind or datarebind is called in needdatasource

Any ideas on what to change, to enable edit in grid !

Rgds
Stephen

 

 

 

 

 

Stephen
Top achievements
Rank 1
 answered on 13 May 2009
1 answer
62 views
Hi to all,
is there a DataPager Control by Telerik?
Thank you.
Sergio
Ivo
Telerik team
 answered on 13 May 2009
4 answers
416 views
Hi,

I am using the RadScheduler, and I would like to disable the edit form, both advanced and simplified. But I do not want to disable editing by doing _theCalendar.AllowEdit = false because i still need to trigger the AppointmentClick event.
So when i click on an appointment I don't want the RadScheduler to show anything.
Is there a way to achieve that?

thanks,
Vincent
Vincent
Top achievements
Rank 1
 answered on 13 May 2009
6 answers
341 views
I placed a RadScriptManager control in the Masterpage of my Sharepoint site. Here is the relevant code:

<telerik:RadScriptManager Runat=server id="RadScriptManager1"> 
    <Scripts> 
        <asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery.getParams.js"> 
        <asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery-ui-1.7.1.custom.min.js">   
    </Scripts> 
</telerik:RadScriptManager> 
 




I am following examples set here and here.
However this generates the following error:
Literal content ('<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery.getParams.js">
<asp:ScriptReference name=""Assembly=""Path="~/Scripts/jquery-ui-1.7.1.custom.min.js">') is not allowed within a 'System.Web.UI.ScriptReferenceCollection'.


I am not sure what this is.

Robert
Top achievements
Rank 1
 answered on 13 May 2009
1 answer
93 views
Hi,
I have problem in redering RadChart. I retrieve data from SQL Server within a 2-3 seconds but it takes around 10 minutes to render it.

Pleaes anybody having idea let me know!
Dessy
Telerik team
 answered on 13 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?