Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
168 views
Sir;

I am using telerik grid control. and i want to add grid on click of button. and then drag and drop rows from other grid controls on page to dynamically created grid control.

whenever i add grid dynamically and try to drag and drop i got this error.
Can u please suggest why this problem is coming.

Thanks and regards
raman singla

Script controls may not be registered after PreRender.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Script controls may not be registered after PreRender.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Script controls may not be registered after PreRender.]
   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +432555
   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +92
   Telerik.Web.UI.RadCompositeDataBoundControl.RegisterScriptControl() +72
   Telerik.Web.UI.RadCompositeDataBoundControl.ControlPreRender() +33
   Telerik.Web.UI.RadGrid.ControlPreRender() +118
   Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e) +47
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
Mira
Telerik team
 answered on 03 Jan 2012
3 answers
191 views
I need to show expand icon against each node as the child nodes(if any) would be populated on demand. I dont want to use Load on demand directly, because our application can have more than 4000 child nodes(around 50000-100000). 
Is there any way by which the child nodes will have the expand icon without keeping the expandmode=webservice, so that when the user expands the node, on client side the ajax request will fire and will bring the child nodes and keep appending it on regular intervals(or through webworkers in case of html5).
Bozhidar
Telerik team
 answered on 03 Jan 2012
3 answers
107 views
Hi,
i am performing transfer among 7 radlistboxs on OnClientDropped event using "transferManager.performTransfer" method in javascript .

 

<script id="ListBoxItemTransfer" type="text/javascript">

 

function lbdropped(sender, args) {

sender.trackChanges();

 

var destinationListBox = transferManager.performTransfer(sender, args);

sender.commitChanges();

 

//Call back function

 

var senderListboxId = sender.get_id();

 

if (senderListboxId == 'rlbFuncImprovement' || senderListboxId == 'rlbTechImprovement' || senderListboxId == 'rlbConsolidation') {

 

var objectIds = '';

 

var items = args.get_sourceItems();

 

var i = 0;

 

for (i = 0; i < items.length; i++) {

 

if (objectIds == '') {

objectIds = items[i].get_value();

}

 

else {

objectIds = objectIds +

 

',' + items[i].get_value();

}

}

 

var arrgument = senderListboxId + ',' + objectIds + ", 0";

CallServer(arrgument,

 

'');

}

}

 

//Multi-list box transfer generic code

(

 

function ($) {

transferManager =

 

function () { }

transferManager.performTransfer =

 

function (sender, args) {

 

var destinationItemIndex = this._getDestinationIndex(args);

 

var destinationListBox = this._getDestinationListBox(args);

 

if (destinationListBox == null || destinationListBox.get_id() == document.getElementById('rlbProposed').id)

 

return;

 

var reorderIndex = args.get_dropPosition() == 0 ?

destinationItemIndex : destinationItemIndex + 1;

 

var items = args.get_sourceItems();

 

this._transfer(items, destinationListBox, reorderIndex);

 

return destinationListBox;

}

transferManager._transfer =

 

function (items, destination, reorderIndex) {

$.each(items,

 

function (index, item) {

destination.trackChanges();

destination.get_items().insert(reorderIndex, item);

destination.commitChanges();

});

}

transferManager._getDestinationIndex =

 

function (args) {

 

var destinationItem = args.get_destinationItem();

 

if (destinationItem)

 

return destinationItem.get_index();

 

return 0;

}

transferManager._getDestinationListBox =

 

function (args) {

 

var destinationItem = args.get_destinationItem();

 

if (destinationItem) {

 

var id = destinationItem.get_listBox().get_id();

 

return $find(id);

}

 

var parent = $(args.get_htmlElement()).parent();

 

if (parent.is(".RadListBox")) {

 

var id = parent[0].id;

 

return $find(id);

}

 

else if (parent.is(".rlbGroup")) {

 

var id = parent[0].parentNode.id;

 

return $find(id);

}

 

return null;

}

})($telerik.$);

 

</script>



I want that First listbox do the copy item functionality to other listbox, whereas other listboxs do the move item functionality.
How can i achieve this?
Bozhidar
Telerik team
 answered on 03 Jan 2012
9 answers
159 views
all I need is for a simple edit form to have columns instead of being one too long coluns. but when I use this:
<EditFormSettings ColumnNumber="2" >
                <FormTableItemStyle Wrap="False"></FormTableItemStyle>
                <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
                <FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" BackColor="White"
                    Width="100%" />
                <FormTableStyle CellSpacing="0" CellPadding="2" Height="110px" BackColor="White" />
                <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
                <EditColumn ButtonType="ImageButton" UpdateText="Update record"
                    UniqueName="EditCommandColumn1" CancelText="Cancel edit">
                </EditColumn>
                <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
            </EditFormSetting

thank you.
regina
Top achievements
Rank 1
 answered on 03 Jan 2012
2 answers
662 views

I am creating a radtreeview context menu with an item 'Open link in new tab'.

I have created a context menu server side and assigned it to all nodes, but problem is I need to set the NavigateURL property of the context menu and this is different for every node.

I tried using the OnClientContextMenuItemClicked and then tried using Window.Open in the javascript function:

function

ContextMenuClicked(sender, args) {

  window.open(args._node._properties._data.value,

'_blank');

}
This function get the value property of the treeview node where the URL is stored, but unfortuanetely this doesn't work because it is stopped by the IE popup blocker.

I suppose I could create a unique context menu for every single node - but there might be hundreds of nodes and I worry this would make things slow.

Please can you think of a way I can solve this problem?

Many thanks for your help

 

richard
Top achievements
Rank 1
 answered on 03 Jan 2012
3 answers
102 views
Hi!...
some days ago, telerik send me a solution for show slidepane on the right opent to Bottom.
This works perfectlly in FF but no in IE.

In FF:






in IE:




How I can Fix this?
Thanks!
Dobromir
Telerik team
 answered on 03 Jan 2012
3 answers
93 views
In Firefox, any/all absolutely elements, background is always white when editing. See below example. Is there a way to override this behavior so that the element's background is preserved, especially in the case of transaparent?

<div style="background-color:silver;height:300px;width:300px;padding:20px;">
  <div style="position:absolute;height:200px;width:200pxcolor:white;">
    Hello World
  </div>
</div>

In a RadEditor, when you click on the words Hello World to edit them the editable area background becomes white thus the white words become unreadable. I would like the editable area to remain transparent so the silver color shows as the background. Is this possible? 

Rumen
Telerik team
 answered on 03 Jan 2012
3 answers
117 views
When a Rad Window appears, the entire page reloads. That should not happen. 
This is happening for all Rad Windows
Richard
Top achievements
Rank 1
 answered on 03 Jan 2012
1 answer
140 views
Hi,
Is there a way to do the following:
a. color the day in Timeline view, we wanted to color blue if it is a public holiday for that day
b. Freeze the Date header in timeline view, we wanted to freeze the Date row when we want to scroll bottom. Our RADSchedule is very long thus user unable to see the Date header.

Thanks.

Regards,
CH
Ivana
Telerik team
 answered on 03 Jan 2012
7 answers
499 views
Hi,

I have a  RadTabStrip and a RadMultiPage in my MainPage.aspx. 
And i am loading the PageView from code behind .
PageView1.ContentUrl =  url;

 <telerik:RadTabStrip ID="RadTabStrip1" SelectedIndex="0" runat="server"                
       MultiPageID="RadMultiPage1" Orientation="VerticalLeft" ontabclick="RadTabStrip1_TabClick">                
  </telerik:RadTabStrip>   
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Height="800" Width="800"  > 
         <telerik:RadPageView  ID="PageView1" runat="server">                
         </telerik:RadPageView>                  
 </telerik:RadMultiPage>

Upon the click of "Save" button in webform (contenturl) , i have to rebind the Tabstrip .

There seems to be no event which triggers the radtabstrip binding event in my MainPage.aspx.

Let me know if there anything available to fix this.

Thanks,
Mani
Dimitar Terziev
Telerik team
 answered on 03 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?