Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
456 views
I am trying to remove ScriptManager and add RadScriptManager to my page from SharePoint Web Part. For some reason my code does not work. I still getting "Only one instance of a ScriptManager can be added to the page." What is right approach to replace ScriptManager?

 

ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
if (scriptManager != null)
   {
       Page.Form.Controls.Remove(scriptManager);
   }
 
RadScriptManager radScriptManager = new RadScriptManager();
this.Page.Form.Controls.AddAt(0, radScriptManager);
Oleg
Top achievements
Rank 1
 answered on 21 Nov 2012
1 answer
58 views
Hi

I have a slider defined as follows:

<telerik:RadSlider ID="RadSlider1" runat="server" Value="0" MinimumValue="0" MaximumValue="50" AutoPostBack="true" Height="60px" Width="500px" ItemType="Item" ShowDecreaseHandle="false" ShowIncreaseHandle="false" TrackPosition="TopLeft" Skin="Simple">

</telerik:RadSlider>

I populate a range of values in code behind as follows:

Dim
myExcess As List(Of contractors.excess) = contractors.excess.GetByContractorID(Session("ContractorID"))

 

 For Each Excess In myExcess

 RadSlider1.Items.Add(New RadSliderItem(Excess.ExcessAmount, Excess.ExcessPercent))

 Next

for this example, values witten are
Text = 100, value =0.1
Text = 200, value =0.2
etc. etc

The slider renders as expected, however, after clicking or dragging, the order of the items changes!
It was initially: 100,200,300,400,500

After a drag this may become 100,200,400,500,300

There is no other clientside or server side code so I am puzzled!

Same problem with IE and Chrome

Can anyone help please?

 




 

 

 

 

Slav
Telerik team
 answered on 21 Nov 2012
1 answer
122 views
Has anyone come across an issue where the Skpe icon is displaying in one of the rows in radgrid? ...Skype is installed in the machine but its not running .... how do i remove the skpe icon in the radgrid?



Daniel
Telerik team
 answered on 21 Nov 2012
4 answers
175 views
Dear Community,

how can I change the cursor on a RadWindow?

Thanks a lot,

Christian
Nencho
Telerik team
 answered on 21 Nov 2012
10 answers
256 views
Hi,

My application is using different User Controls containing one RadGrid in each (some controls have hierarchy, some not). The Grids have ajaxified features such as "Add" command, "Refresh" command, export, row context menu etc. These User Controls work as expected either placed directly on a page, loaded dynamically in a native asp PlaceHolder or loaded dynamically loaded into a RadTabStrip. Im trying now to make them work into RadDocks. When trying to replicate the demos on your site (especially this one: My Portal), I can make it work but partially, since im running into different problems. The draggable docks containing user control are there but problems start when starting to use the grids inside.

#1 - if I use the Triggers/AsyncPostBackTrigger (like in the demo and below) to ajaxify the AddDock button, the grids for newly added docks seem to be unable to register their javascript code (getting errors like: ReferenceError: RowContextMenu is not defined). Grid's "OnItemCommand" is fired but code fails at "ScriptManager.RegisterStartupScript(...)" I also sometimes experience weird behaviors from the docks (cant close/drag/collapse them). If I refresh the page, docks loaded from save state are not experiencing such issue and seems to work as expected (except for issue #2 mentioned below)

<Triggers>
       <asp:AsyncPostBackTrigger ControlID="ButtonAddDock" EventName="Click"></asp:AsyncPostBackTrigger>
</Triggers>

I also tried to replace the triggers for AjaxSettings, and getting similar results:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">
                        <AjaxSettings>
                               <telerik:AjaxSetting AjaxControlID="ButtonAddDock">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="RadDockLayout1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                                <telerik:AjaxSetting AjaxControlID="ButtonAddDock2">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="RadDockLayout1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                                <telerik:AjaxSetting AjaxControlID="ButtonAddDock3">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="RadDockLayout1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                        </AjaxSettings>
</telerik:RadAjaxManager>

#2- If I comment out the trigger tags (or RadAjaxManager's AjaxSettings) , I now have postbacks on dock creation, but at least the issue #1 seem to go away. However, when I use a dock that contains a control that contains a hierarchy grid (2 levels), I always get (also experienced in issue #1 scenario) the following error when one or more rows are expanded and I want to do an ajax call from the grid (or another one), for instance grid's "Refresh". This time, the "OnItemCommand" event is not fired at all.

From FF:
Timestamp: 11/8/2012 11:12:10 AM
Error: Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Specified argument was out of the range of valid values.
Parameter name: ItemHierarchicalIndex
Source File: http://localhost:2917/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.60501.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a5c09f731-4796-4c62-944b-da90522e2541%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2012.2.607.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a767fb6c3-728b-40e9-af4d-abc498bcae6e%3a16e4e7cd%3aed16cbdc%3af7645509%3a24ee1bba%3af46195d3%3a854aa0a7%3a874f8ea2%3a5a6d9d23%3a19620875%3a39040b5c%3af85f9819%3a58366029%3a2003d0b8%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3ac172ae1e%3a9cdfc6e7%3a490a9d4e%3abd8f85e4
Line: 9

Before I submit a sample or the rest of my code, Im asking if there is already a similar sample available for reference. I think must specify that my grid user controls use a RadAjaxManagerProxy.

TIA
Martin Roussel
Top achievements
Rank 1
 answered on 21 Nov 2012
1 answer
238 views
Below a FileExplorer I have a button that deletes selected files.
After deletion I would like to refresh the FileExplorer.
If I do this:

var oExplorer = $find('<%= fe.ClientID %>');
oExplorer.refresh();

only the file list gets refreshed. The TreeView is not refreshed.

How do I refresh both the list and the treeview?
Vessy
Telerik team
 answered on 21 Nov 2012
1 answer
103 views

I am using Telerik RadTreeView and I am adding Nodes programatically with the following code

     subnode.NavigateUrl = "javascript:selectedNode('" + subnode.Text + "','" + "content" + "','" + myDataReader2["moduleId"] + "')";

RadTreeView1.Nodes.Add(subnode);

Thus when i am clicking the node then the javascript function selectedNode is executed. But when I am changing the selected node programmatically by using a button for ex:

 node.Focus();
 node.Selected = true; 

The javascript is not executed. Is there any way to execute its navigateurl property programmatically?.

Boyan Dimitrov
Telerik team
 answered on 21 Nov 2012
4 answers
146 views
I have an area in my toolbar that has a menu in it. When the user hovers over the menu I wanted an area to appear allowing them to configure some options.

I created a template for the menu subitem and placed some RadComboBox's on it.

The problem is that if the user clicks one of the combo boxes and begins to scroll down the mouse is technically outside the bounds of the menu item so the template disappears leaving just combobox content displaying.

Is there a way to make the menuitem sticky somehow or is there a better way to acheive my goal?
Tom
Top achievements
Rank 1
 answered on 21 Nov 2012
8 answers
178 views
Hi, im using a RadNotification in a user control (ascx). The control is loaded dynamically on the page either in a placeholder or in a RadTabStrip (both methods are experiencing the issue). It seems I cant define any property of the RadNotification in code-behind except at Page Loading/Init (I try to set the Title, Text and ContentIcon based on some conditions before calling .Show() ). I also tried fixing the user control on the page (not dynamically loaded) and still same issue.

 I try the same on another page where RadNotification is fixed on the page (not in user control) and then it works good.

Any idea?

TIA
Marin Bratanov
Telerik team
 answered on 21 Nov 2012
1 answer
113 views
is there a way to make default Edit mode HTML View 
Rumen
Telerik team
 answered on 21 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?