Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
151 views
Hi,

I am having alignment issue with my raddatepicker controls. I have a user control that opens in a radwindow. I place two raddatepickers for my start date and end date. these two raddatepicker controls are placed side by side.
When I view my control in IE8 the two raddatepickers are placed side by side. But when I try to view the control in Firefox or Chrome or Safari my raddatepicker controls are rendering one below the other.

Any help would be appreciated.


Thanks
Praveena
Radoslav
Telerik team
 answered on 04 Aug 2010
1 answer
125 views
Usually when we click on a contextMenu item, it's supposed  disappear... It would be great I could make it close :-)
Here some piece of code, is there anything I can do in the eventHandler to force it to close the contextMenu ?

function keywordTreeviewMenuClicking(sender, eventArgs) {
    var menuItem = eventArgs.get_menuItem();
    action = menuItem.get_value();
    node = eventArgs.get_node(); 
    switch (action) {
        case "Add":
            KeywordManager.AddKeyword(node);
            break;
        case "Delete":
            KeywordManager.DeleteNode(node);
            break;
        case "Edit":
            KeywordManager.EditNode(node);
            break;
        case "ChangeCategory":
            KeywordManager.ChangeCategory(node); 
            break;
    }
    return true;
}
Peter Ryckaert
Top achievements
Rank 1
 answered on 04 Aug 2010
2 answers
153 views

 

Here some piece of code... Where I load through javascript and my own webservice call a treeview. In my collection of objects, I know
how many children I have for each item. If obj.Children > 0 I would like to show the Expand Icon. I don't see in the documentation how I can do that, the expand thing is only shown if I seed the expand mode WebService, but in this case it complains no WebService is configured... So it would be cool if I could find a solution.

 

if (obj.Children > 0) {

 

    node.set_expandToSOMETHING
}

 

 

var tree = $find(this.treeviewId);
var parentNode = null;
if (parentId != 0) {
    parentNode = tree.findNodeByValue(parentId);
}
for (var x = 0; x < result.Result.length; x++) {
    var obj = result.Result[x];
    var node = new Telerik.Web.UI.RadTreeNode();
    node.set_text(obj.Display);
    node.set_value(obj.KeywordId);
    node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide);
    if (obj.Children > 0) {
        node.set_expandMode(Telerik.Web.UI.TreeNodeExpandMode.ClientSide);
    }
    if (parentId != 0) {
        parentNode.get_nodes().add(node);
    } else {
        if (obj.ParentKeywordId == 0) {
            tree.get_nodes().add(node);
        } else {
            var parentNode = tree.findNodeByValue(obj.ParentKeywordId);
            parentNode.get_nodes().add(node);
        }
    }
}
tree.commitChanges();
if (parentId != 0) {
    parentNode.set_expanded();
}
Peter Ryckaert
Top achievements
Rank 1
 answered on 04 Aug 2010
3 answers
118 views
Hi,

I have 2 multiselect listboxes in my webpage. when the selected index of first listbox is changed, it updates the second listbox. there are only 10 items in first listbox and 45 items in second listbox when all the 10 items in first listbox are selected. Autopostback for first listbox is set to true and selectedindexchanged event has code to update the second listbox from database. For some reason, this process is very-2 slow, even if I select only one item in first, it takes around 15-16 seconds to load second listbox. I have a RadGrid in the page which is loaded when a button is clicked. I have separate RadAjaxManager setting for button update and listbox update. Can you please suggest how can I make the listbox load faster or what should I check to solve this problem? I also noticed that most of the pages are faster without AJAX. I have gone through the document on Telerik about how to make AJAX faster and have implemenetd the ASP Scriptmanager setting to be in release mode and also debug=false web config setting.

Thanks.
Pavlina
Telerik team
 answered on 04 Aug 2010
2 answers
145 views
Is it possible to prevent the user from dragging and dropping text in an editor (and therefore changing the text)

The editor currently is not allowing the user to change text via typing, they highlight existing words and "highlight them" via a custom toolbar.

We don't want the user to be able to change the text, but because they are able to select words, and drag them to a new location in the document, they are able to change the text of the document.

We still want the user to be able to hightlight text in the document, we just don't want them to be able to move it to a new location in the document.
Michael Pullella
Top achievements
Rank 1
 answered on 04 Aug 2010
6 answers
211 views
Dear Telerik,

I would like how to make filtering the radgrid by using the controls which is outside grid.My form is subject to like a search template. So that i used FromDate and ToDate and State ComboBox controls. So i need to filter the grid based on what ever the values selected from those dropdowns. I used to bind the grid dynamically by using NeedDataSource event.

So please help me how to do (or) what are the areas we need to make the changes in order to achieve above

-Thanks
Pavlina
Telerik team
 answered on 04 Aug 2010
7 answers
150 views
Hi,
I am using custom file content provider. Now I'm being able to do all other things on the context menu except the copy/paste.
Copy is working but when I'm pasting the file it is throwing a java script exception 'gridItem' not defined. Now Your script resource generating the follow code
_onGridMenuItemClicked:function(f,k){var m=k.get_item().get_value(); 
var n,c; 
var i=this._gridContextMenuSelectedItem; 
if(i){n=i.get_dataItem(); 
c=this._getGridDataItemPath(n); 
}switch(m){case"Rename":var o=n.Name; 
var h=this.get_localization()["Rename"]; 
function e(p){if(p){this._renameGridItem(c,p); 
}}var d=this
var g=this.get_windowManager(); 
window.setTimeout(function(){g.radprompt(h,Function.createDelegate(d,e),330,100,null,h,o); 
},10); 
break
case"Delete":this.deleteSelectedItems(); 
break
case"Open":var j=this._findItemByPath(c); 
this.open(j); 
break
case"NewFolder":this.createNewDirectory(this.get_currentDirectory()); 
break
case"Upload":this._showUploadWindow(); 
break
case"Copy":this._copy("grid"); 
break
case"Paste":var l=this._findItemByPath(c); 
if(l==null||!l.isDirectory()){gridItem=this._getCurrentFolderItem(); 
}this._paste(gridItem); 
break
}this._gridContextMenuSelectedItem=null
as in the paste section there is no way to get the gridItem if I'm pasting on a folder. Is it a bug or am i making some mistake.
Please let me know.
thanks
Arpan
Marco
Top achievements
Rank 1
 answered on 04 Aug 2010
6 answers
189 views
I really can't find it.
I want copy/past functionality in my 2009Q2 filebrowser.
security settings are correct.
I found out I can drag a folder to another folder, I suppose this is copying?
But when I do this, it says
Could not find a part of the path 'D:PicturesFoto'sFoto's Pa&MaFoto's Pa&Ma'.
It's removing the slashes, and I think it should do some urlencoding?

What am I missing? No one seemed to have asked this before, so it must be pretty simple right?

Do I need to add clientside functions? Is there an example?
Marco
Top achievements
Rank 1
 answered on 04 Aug 2010
1 answer
64 views
Hi Friends,

                    I have a dynamically created RadGrid in Page1.aspx.My problem is when i go to another page Page2.aspx
and then coming back to Page1.aspx ,i loss my dynamically created datas in RadGrid.I  use Page.Redirect method to navigate to an another page.Its possible to store DataTable of RadGrid in Session  ,but i have large amount of datas.So storing in Session is not the correct way i think...Is there any way to store or not lossing datas while redirection.plz help me out.

I have earlier posted this under Grid Forum,But no one replied.So Plz help me...

Regards Titti.
Pavlina
Telerik team
 answered on 04 Aug 2010
1 answer
87 views
Hi,
    A couple of questions regarding upgrading to Q2-2010...

    1) I noticed that for all the controls within RadPanelBar/RadPanelItem are inaccessible without writing code(for all controls) to drill down using FindControls especially if its nested.  Is there an easier way?  

    
    2) How do I implement this demo "http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx" without navigating to another url?  The radwindow has all the controls defined in the same aspx as the radgrid.

 

 

 

<ClientSettings Selecting-AllowRowSelect="true" EnableRowHoverStyle="true" EnablePostBackOnRowClick="true" >
<ClientEvents OnRowSelected="ShowMessage" />
</ClientSettings>

Thanks!

 

 

 

 

 

 

 

 

 

Georgi Tunev
Telerik team
 answered on 04 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?