Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
103 views
I need to call page method from JavaScript:

protected void OnAjaxRequest(object sender, AjaxRequestEventArgs e)
 {            
     //TODO:
 

I added AjaxManager:
<telerik:RadAjaxManager id="AjaxManager" runat="server" OnAjaxRequest="OnAjaxRequest" />

and JavaScript function which is being called when checkbox is clicked:
function OnRowChecked(id, checkBox){
    var ajaxManager = $find("<%= AjaxManager.ClientID %>");
    if (ajaxManager != null)
        ajaxManager.ajaxRequest(id);
    else
        alert("No ajaxManager");
}

This works great - checkbox is clicked, JavaScript is called, page method is called. The only problem is that it works only one time. When second checkbox is clicked  AjaxManager is not found.  I could not add AjaxManager on Page_Init because of another weird javascript error.  This user control is deployed to SharePoint...

-Stan
Maria Ilieva
Telerik team
 answered on 17 Aug 2011
2 answers
164 views

Hello,

Telerik.Web.UI 2011.1.519.40
IE8

I made a user control in which I put a RadUpload. When I hoover over the select button though, the RadUpload shows an additional TextBox and a Browse Button. The select-functionality seems to work properly when I click, but the control shouldn't show the Textbox and button.

Any idea why the RadUpload behaves like this and how to let it act normally?

With regards,
Bertil de Groot

<telerik:RadUpload ID="RadUploadDocuments" runat="server" Culture="nl-NL" Language="nl-NL"
   OverwriteExistingFiles="True" MaxFileInputsCount="10" MaxFileSize="1048576000"
   ControlObjectsVisibility="RemoveButtons, AddButton" AllowedFileExtensions="<%$appSettings:AllowedFileExtensions %>"
   OnValidatingFile="RadUploadDocuments_ValidatingFile">
   <Localization Add="Volgend bestand" Delete="Verwijderen" Remove="Verwijder" Select="Selecteren..." />
</telerik:RadUpload>
Peter Filipov
Telerik team
 answered on 17 Aug 2011
1 answer
119 views
Hi,

With regards to the RadFilter, how would one change the default group operator whenever a group is created? Specifically, I'd like each group to default to OR instead of AND.
Mira
Telerik team
 answered on 17 Aug 2011
1 answer
284 views
I am trying to figure out a way to take the custom attributes of a FileExplorerItem and populate the attributes of the treeview nodes, but I cannot seem to find th ebest way to do this. The only solution I have seen in my searching is in http://www.telerik.com/community/forums/aspnet-ajax/file-explorer/how-to-get-attributes-on-client-with-explorermode-filetree.aspx. However, that is a real pain because I have 12 custom attributes I could possibly use from my custom provider that allows file browsing access to our Documentum system. I have tried hooking routines into the TreeView control of the FileExplorer, but its not working as I expected. Here is what I have.

protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    RadFileExplorer1.TreeView.NodeDataBound += new RadTreeViewEventHandler(RadTreeView_OnNodeDataBound);
}
 
private void FillTreeViewNodesWithAttributes(RadTreeNode node)
{
    FileBrowserItem fileBrowserItem = (FileBrowserItem)node.DataItem;
 
    foreach (string key in fileBrowserItem.Attributes.AllKeys)
    {
        node.Attributes[key] = fileBrowserItem.Attributes[key];
    }
    if (node.Nodes.Count > 0)
    {
        foreach (RadTreeNode childNode in node.Nodes)
        {
            FillTreeViewNodesWithAttributes(childNode);
        }
    }
}

When I step through the code they node gets filled, but the attributes never make to the client side.Consequentially I don't see where the childnodes get databound. There must be something with the way the tree is populated that I am missing.

I am going for now use the approach in the  link above, but it is not ideal.
 
Dobromir
Telerik team
 answered on 17 Aug 2011
4 answers
101 views
Hi,
I want to sort the ENTIRE column,when user clicks on its header.I could sort only to  the no.of records the user can see (say pagesize which may be either 10 or 20 or 30 or..... but not among all the 500 records available) .But I want all the 500records to be sorted and display the top records in the 1st,2nd,3rd pages according to the page size set .

Thanks in advance,
Dilip
Jayesh Goyani
Top achievements
Rank 2
 answered on 17 Aug 2011
1 answer
77 views
                  
Hi,
                 We are using rad scheduler to show particular appointments, here the problem is it showing separate color for weak ends and non business hours, when some default themas were applied. So we do not need that separate color. 

  • How can we remove that separate color for both weak ends and non business hours ?

                And we already followed some other way to implement this one, below is the code to represent the way which we followed.

In aspx page we give one style :-

<style type="text/css">
    .MyClass
    {
        background-color: White !important;
    }
</style>

In aspx.cs page we wrirren the followed code :-

 protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
        {
            if (RadScheduler1.SelectedView == SchedulerViewType.WeekView || RadScheduler1.SelectedView == SchedulerViewType.DayView)
            {
                if (e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Saturday || e.TimeSlot.Start.Date.DayOfWeek == DayOfWeek.Sunday)
                {
                    e.TimeSlot.CssClass = "MyClass";
                }
            }
        }

OutPut :-
        Please find attached for out put. But this is not the exact output which we are expecting.
       If u observe my scree shot u will come to know that separate colors, i want every thing should be in white color.

Kindly help me out from this.
Plamen
Telerik team
 answered on 17 Aug 2011
1 answer
118 views
Hello,

I'm using the RadGrid and using an DLL assembly version 2010.2.929.35 and when I select the check box in the grid that allows me to select all rows, nothing happens on Firefox. With IE everything works fine.

I've checked and now javascript errors are occurring and I've tried to remove all the references to Javascript files in my page and problem occurs anyway.

Do you have any idea of what could be the problem?

Thanks
Amaro
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2011
2 answers
229 views
Hi all,

I would like to add some text to this Telerik RadEditor by using Selenium. I've founded this topic: "http://www.telerik.com/community/forums/aspnet/editor/testing-wysiwyg-editor-with-selenium-ide.aspx". Can someone help me with this, and explain how can I do it by using solution from the mentioned topic, please?
E.g: I would add automate some text by Selenium to this page:
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

I have the similiar situation in my project and then I could change the solution to me code.

Thanks a lot for your help.

BR,
Piotr
Misho
Telerik team
 answered on 17 Aug 2011
1 answer
81 views
First of all congratulations for the excellent job you have done,

My question is : how i can calculate (Rad)ListBox values?
I want to drag and drop some data to (Rad)ListBox and i want to get the Sum of these data in a Label or textbox.
Is this possible to made?
Thanks,

Best Regards,
Jk,
Peter Filipov
Telerik team
 answered on 17 Aug 2011
2 answers
129 views
My slider has a custom iconUrl, but when you mouse over the icon there is no alt text for it.

Can this be set?  I don't see a property for it.
Niko
Telerik team
 answered on 17 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?