Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
827 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
72 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
76 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
164 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
151 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
58 views
Hi to all,
is there a DataPager Control by Telerik?
Thank you.
Sergio
Ivo
Telerik team
 answered on 13 May 2009
4 answers
407 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
328 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
92 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
1 answer
181 views
Hi,

I'm trying to use the OnNodeClick method of the TreeView to trigger an server side event but it seems that I've made any mistake.
I've set the OnNodeClick attribute as you can see in my ASP code:

    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="Label1" /> 
                    <telerik:AjaxUpdatedControl ControlID="Label2" /> 
                    <telerik:AjaxUpdatedControl ControlID="Label3" /> 
                    <telerik:AjaxUpdatedControl ControlID="Label4" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
[...] 
<telerik:RadTreeView ID="RadTreeView1" runat="server" Skin="Office2007" OnNodeClick="RadTreeView1_NodeClick"
                <Nodes> 
                    <telerik:RadTreeNode runat="server" Text="Postfach" Expanded="true" > 
                        <Nodes> 
                            <telerik:RadTreeNode runat="server" Value="in" Text="Empfangen" PostBack="False"
                            </telerik:RadTreeNode> 
                            <telerik:RadTreeNode runat="server" Value="out" Text="Gesendet" PostBack="False"
                            </telerik:RadTreeNode> 
                        </Nodes> 
                    </telerik:RadTreeNode> 
                </Nodes> 
            </telerik:RadTreeView> 
[...] 
<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label> 

And wrote a very short server side command for debugging, just trying to change the text of an label, but nothing changes onlclick.

        protected void RadTreeView1_NodeClick(object sender, RadTreeNodeEventArgs e) 
        { 
            Label5.Text = "Node Clicked"
        } 

I'm quite sure that I've made a very stupid mistake but I can't find out whats going wrong.

Any help is highly appreciated.

Kind Regards
Simon
Telerik team
 answered on 13 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?