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

We're currently using the radscheduler in a project and have recieved a request for week numbers to be displayed in Day and Week view. Is there date format for week number or a way to insert a string containing a week number in the header?

with kind regards

/Truls Bråhammar
Inka Interactive
Simon
Telerik team
 answered on 04 Jul 2008
11 answers
355 views
Hello,

I currently have a RadGrid that sorts DESC (on certain columns) using the SortExpression property of a bound column. These are the sequence of events that happen currently

1 - Grid populates with no sorting
2- User clicks on a column (for which the sortexpression has been set) and the column sorts DESC
3- User clicks on the same column - the column goes back to No Sort.

How can I enable the column to sort ASC instead of No Sort on the second click?

Thanks
Bala
Yavor
Telerik team
 answered on 04 Jul 2008
1 answer
50 views
If we select any text with rad editor and then clicks on Tools button of IE 7.0
then by clicking the selected text is getting strip off.

how could we stop stripping off the selected text.

Thanks in advance for any help.
Rumen
Telerik team
 answered on 04 Jul 2008
3 answers
160 views
Does Telerik component support this (bypassing the page life cycle) feature? Like Callback (which bypasses the page life cycle) component in ComponentArt .

If no, is this planned for your next R2 release in July or in the near future?

Thanks and regard
Sundar
Vlad
Telerik team
 answered on 04 Jul 2008
7 answers
178 views

Hello:

It works fine in IE and Safari, but in Firefox, the Tooltip hides (cropped) behind the User Control in RadDockZone. I am using ASP.NET AJAX controls. I tried setting z-index to a high value (9999) for the Tooltip, but that did not help. Any help will be much appreciated.

Thanks,
Svetlina Anati
Telerik team
 answered on 04 Jul 2008
3 answers
167 views
I've got a page that has dynamically created html controls with several needing spellcheck.  I've implemented the solution with a radspell control with no buttontype and the following javascript is called:

<telerik:radspell id="RadSpell1" runat="server" buttontype="none" />

function spellCheckMe(obj) {
    var spell = $find('<%= RadSpell1.ClientID %>');
    spell.set_controlToCheck(obj); 
    spell.startSpellCheck();
}
<a title='Spell Check' href="javascript:spellCheckMe('JobDescriptionEdit');" class="spell_Ext spLinkImg">Spell Check </a>
In Safari & FF, the dialog is centered on the page.  However in IE, the dialog tries to position from the firing button.  Is there some client script that I can use so that IE centers the dialog?  I didn't see it in the online help, but maybe it exists?  If the button that is invoking the spell editor is close to the bottom of viewing area, the spell dialog isn't fully shown.

Rumen
Telerik team
 answered on 04 Jul 2008
1 answer
120 views
is it possible to change the image a users clicks on when he wants to find a file to upload?
Veselin Vasilev
Telerik team
 answered on 04 Jul 2008
2 answers
89 views
Is there anyway to control the style elements of the PDF that is generated?
Adjusting the positioning of the 'grids' or colors, ect
Baatezu
Top achievements
Rank 2
 answered on 04 Jul 2008
1 answer
318 views
Hi

Scenario:
I have an treeview that is being loaded on the PageLoad from the DataBase.
First it fills the first root nodes then each nodeExapand event fetch the new nodes from the database.
Performance here is critical, so what I did a Ajax request with the RadAjaxManager send some parameters to the database and response back to the client, if it is successful I finish the client side operation:

Server Code:

 protected void RadAjaxManager_AjaxRequest(object sender, AjaxRequestEventArgs e) 
    { 
        string argument = e.Argument; 
        string operation = GetOperation(argument); 
        string parameters = RemoveOperation(argument); 
 
        switch (operation) 
        { 
            case "0": 
                MoveMenuItemToMenu(parameters); 
                break; 
        } 
 
private void MoveMenuItemToMenu(string argument) 
    { 
        string[] nodes = argument.Split('|'); 
 
        string sourceMiId = nodes[0]; 
        string destMeId = nodes[1]; 
 
        bool dbResult =  MenuItemDAO.Create().MoveMenuItemToMenu(sourceMiId, destMeId); 
 
        RadAjaxManager.ResponseScripts.Add(string.Format("FinishMoveMenuItemToMenu({0})", dbResult.ToString().ToLower() )); 
 
        //System.Threading.Thread.Sleep(3000); 
    } 
 


Client Code:

function MoveMenuItemToMenu(srcNode,dstNode) 
{ 
    var sourceNodeId = GetId(srcNode.get_value()); 
    var destNodeId = GetId(dstNode.get_value()); 
     
    tempSourceNode = srcNode; 
    tempDestNode = dstNode; 
     
    var arg = "0?" + sourceNodeId + "|" + destNodeId; 
     
    sendRequest(arg); 
} 
 
        function sendRequest(params) 
        { 
            var ajaxMan = $find("RadAjaxManager"); 
            ajaxMan.ajaxRequest(params); 
        } 
 
function FinishMoveMenuItemToMenu(success) 
{ 
    if (success) 
    { 
        tempSourceNode.get_parent().get_nodes().remove(tempSourceNode); 
        tempDestNode.get_nodes().add(tempSourceNode) 
    }else 
        alert('Operation in database did not occur'); 
} 


I have to disable the EnableViewState to increase performance. I used Fiddler to measure the transfered data:
EnabaleViewState = true : 92.175 Bytes
EnabaleViewState = false : 1.149 Bytes (hurray!)

However (I hate howervers!), when EnabaleViewState is false, only the first root nodes are loaded, and when I try to expand a root node to show the child nodes this error appears:
"Index was out of Range. Must be non-negative and less the size of the collection.
Parameter name: Index".

Searching the telerik forums I found that if you disable the PersistLoadOnDemandNodes it will increase perfomance, but it didn't make any difference really.
EnableViewState = true
PersistLoadOnDemandNodes  = false : 92.275 Bytes.

But with "EnableViewState = true" and "PersistLoadOnDemandNodes  = false" the tree worked fine wiht no "Index was out of Range" javascript error.

However ( ¬¬ ), when EnableViewState is set to false the nodes are not persisted on the server and I can't check if a node has a father on the server, treeNode (captured from the RadTreeNodeEventArgs) has always parentNode = null.

So, how can I check the parentNode property with EnableViewState False? Im not sure how it will lower the performance loading everything every time in the PageInit event.

Thanks!






Atanas Korchev
Telerik team
 answered on 04 Jul 2008
3 answers
136 views
I'm running into an odd issue that's making it difficult for me to debug some validation issues I have. I've set up my RadScheduler using the article on Custom Advanced Templates, but if I comment out the RadAjaxManager, the Insert and Edit templates collapse when I try to view them. All I see are the buttons at the bottom of the template, but the content itself is "missing". It's there in the source, so it seems to be an issue of height on the template div. Is there any way around this, so I can test my code without Ajax turned on?
Peter
Telerik team
 answered on 04 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?