Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
178 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
103 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
148 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
647 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
94 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
92 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
109 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
132 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
489 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
1 answer
79 views
Hi,
We have a huge or scollable RADSchedule and we have users that different resolution of the computer screen.
when user scroll to end of the calender and click on the pop up, they cannot usually unable to find the pop up for the new appointment at it is at the central of the screen, they have to scroll all the way up just to fill in the new appointment.

is there any way base on the current scroll location and show the appointment?

thank you.

Regards,
CH
Plamen
Telerik team
 answered on 03 Jan 2012
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?