Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
134 views
Hello, I am trying to figure out how to align YAxis label to the right. Please help...

Chart is in attachement.

Thanks,
Hang
Richard
Top achievements
Rank 1
 answered on 01 Feb 2012
1 answer
341 views
Hi,
I have the following code snippets:
radGrid.ShowGroupPanel = true;
radGrid.MasterTableView.GroupLoadMode = GridGroupLoadMode.Client;
radGrid.ClientSettings.AllowDragToGroup = true;
radGrid.ClientSettings.AllowExpandCollapse = true;
radGrid.ClientSettings.ClientEvents.OnGroupExpanded = "GroupExpanded";
radGrid.ClientSettings.ClientEvents.OnGroupCollapsed = "GroupCollapsed";
radGrid.GroupingSettings.ShowUnGroupButton = true;
The GroupExpanded and GroupCollapsed never  happens, I tried:
function GroupExpanded(s, e) {
    alert('GroupExpanded');
}
Nothing happens.

Am I missing something?
Thanks
Richard
Top achievements
Rank 1
 answered on 01 Feb 2012
9 answers
294 views
Hi,

If there is an existing text in the editor, setting focus by clicking and then pressing delete or backspace to delete text, then the undo button isn't enabled.

Even after typing some other text, and then deleting with delete-key, the undo/redo-chain isn't working as expected.

This doesn't work in the demo either:
http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

Regards
Rikard
Francisco
Top achievements
Rank 1
 answered on 01 Feb 2012
5 answers
102 views
Hello,

When I'm trying  to export my grid content to Excel with format settings to ExcelML only a blank Excel worksheet is opened. When changing the format to HTML instead of ExcelML the export does work as expected for HTML.
My grid is based on a custom datatable that is assign on the OnNeedDataSource.

Does anyone have a solutions for this problem??

Regards,
    Jos Meerkerk
RvdGrint
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
90 views
I have a RadToolBar that I want to have use the OnButtonClick event. As soon as I set it, the whole associated RadGrid won't load. Any ideas?

<CommandItemTemplate>
            <telerik:RadToolBar ID="RadToolBar1" runat="server" OnButtonClick="RadToolBar1_OnButtonClick" >
                <Items>
                    <telerik:RadToolBarButton Text="Download"
                            CommandName="Download" Visible="true">
                    </telerik:RadToolBarButton>
                    <telerik:RadToolBarButton Text="View" CommandName="View"
                             Visible="true">
                    </telerik:RadToolBarButton>
                </Items>
            </telerik:RadToolBar>
</CommandItemTemplate>
Billy Rawls
Top achievements
Rank 1
 answered on 01 Feb 2012
13 answers
431 views
Is it possible to set the IconUrl property in the RadWindowManager with a relative path like: "~/images/myimage.png" 

It doesn't seem to be working for me - I get a blank space where the image should be.  I'm trying to do this in a master page.  Thanks.

Sérgio
Top achievements
Rank 1
 answered on 01 Feb 2012
4 answers
447 views
Hi

We have recently updated a web application which was using Telerik.Web.UI version 2008.3.1314.35 to and updated the to version 2010.3.1317.35. 

The application sets the RadWindowManager's DestroyOnClose="True" and opens a window using server side code. Before I updated when window's close button is clicked, the window closes and the RadWindowManager to deletes the window.  
After update to version 2010.3.1317.35 the window closes but is not deleted and when the page posts back the window reappears.

An example of the mark up I use is
<body>
    <form id="form1" runat="server">
     <telerik:RadScriptManager ID="QMAS2ScriptManager" runat="server" EnableTheming="True">
    </telerik:RadScriptManager>
    <telerik:RadWindowManager ID="DialogWindowManager" runat="server" 
        Modal="True" Overlay="True" VisibleStatusbar="False" ReloadOnShow="True" 
        ShowContentDuringLoad="False"
        KeepInScreenBounds="True" 
        Behaviors="Resize, Close, Maximize, Move, Reload" 
        OnClientClose="OnClientClose"
        DestroyOnClose="True"
        Height="500px" Width="650px" Behavior="Resize, Close, Maximize, Move, Reload"
        InitialBehavior="None" Left="" Style="display: none;" Top="">
    </telerik:RadWindowManager>
    <div>
       <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
    </div>
    <script type="text/javascript">
        function OnClientClose(radWindow) 
        {
           __doPostBack();
        }
    </script>
    </form>
</body>

the code I use to create a new window looks like 

       protected void Button1_Click(object sender, EventArgs e)
        {
            RadWindowManager rwm = this.DialogWindowManager;
            RadWindow newWindow = new RadWindow();
            newWindow.NavigateUrl = "wwww.google.co.uk"; // url;//  +"?sessionPrefix=" + sessionPrefix + additionalQueryStringParams;
            newWindow.Title = "Test";
            newWindow.VisibleOnPageLoad = true;
            rwm.Height = 400;
            rwm.Width = 400;
            rwm.Windows.Add(newWindow);
        }

Any idea why this is happening?


Martin
Top achievements
Rank 1
 answered on 01 Feb 2012
2 answers
153 views
I am getting runtime error  " Microsoft JScript runtime error: 'ONClientLoad' is undefined

I have radeditor defined with  clientside event

 <telerik:RadEditor ID="RadEditor3" Runat="server" EditModes="Design, Preview"

 StripFormattingOnPaste="MSWordNoFonts" Width="100%" OnClientLoad="OnClientLoad"

 AutoResizeHeight="false" BorderStyle="None" Height="530px" Skin="Office2007" >


Javascript function is

function OnClientLoad(editor) {
           editor.attachEventHandler("onkeydown", function(e) {
               var content = editor.get_text(); //returns the editor's content as plain text
               var words = 0;
               if (content) {
                   var punctRegX = /[!\.?;,:&_\-\-\{\}\[\]\(\)~#'"]/g;
                   var contentcontent = content.replace(punctRegX, "");
                   var trimRegX = /(^\s+)|(\s+$)/g;
                   contentcontent = content.replace(trimRegX, "");
                   if (content) {
                       splitRegX = /\s+/;
                       var array = content.split(splitRegX);
                       words = array.length;
                   }
               }
               // var counter = $get("counter");
               // counter.innerHTML = "Words: " + words + " Characters: " + content.length;
               var wcountLabel = document.getElementById("<%= lblWordCount.ClientID %>";
               var hfwcountId = document.getElementById("<%= hfWordCount.ClientID %>");
               wcountLabel.innerText = "Words: " + words;
               hfwcountId.innerText = words 
           });

Please let me know what I am missing here

Thanks

NVB
Top achievements
Rank 1
 answered on 01 Feb 2012
0 answers
85 views
I have RAD strip and two rad multi page 
the tabs are two .  1) grid_tab     2) detail_tab
1)  it has a a grid view in which one column I want to make a hyper link or simple text which has onclick event or which can run some C# code when ever clicked (other then button,image button or any bulky object)  
2)  it will open the details of records passed from the click of the grid view row in grid_tab 

there are two issues I am facing 

1) in grid_tab how to find a clickable text which run some C# code when ever clicked opens the detail_tab 
2) how can I pass the id if I am not displaying the id (PK) of respective in the grid of grid_tab 
usman
Top achievements
Rank 1
 asked on 01 Feb 2012
4 answers
256 views
Hi,

I have searched the web, but apparently do not posses enough skills to find desired information.

My question: Is it possible to tell Timeline view to hide resources declared in GroupBy field of TimelineView setting, if they do not contain any appointments in selected period? I have seen that Silverlight and WPF do contain such functionality with DisplayEmptyGroup property, but have not seen an option to do that in ASP.NET AJAX.

Here is my Scheduler markup.
<telerik:RadScheduler ID="schTimeline" runat="server" SelectedView="TimelineView" AllowDelete="false" AllowEdit="false" AllowInsert="false" DataSourceID="odsTimelineData"
    DataKeyField="ID" DataSubjectField="SUBJECT" DataStartField="START_DATE" DataEndField="END_DATE" OverflowBehavior="Expand" RowHeaderWidth="180px">
    <TimelineView UserSelectable="false" GroupBy="Employees" GroupingDirection="Vertical" SortingMode="Global" />
    <MultiDayView UserSelectable="false" />
    <DayView UserSelectable="false" />
    <WeekView UserSelectable="false" />
    <MonthView UserSelectable="false" />
    <ResourceTypes>
        <telerik:ResourceType KeyField="Username" Name="Employees" TextField="Name" ForeignKeyField="PERSON" DataSourceID="odsEmployees"/>
    </ResourceTypes>
    <AppointmentTemplate>
        <div class="<%# Eval("CssClass") %>">
            <p class="rsCustomSubject"><%# Eval("Subject") %></p>
        </div>
    </AppointmentTemplate>
</telerik:RadScheduler>

What I would like to do is hide all employees that don't have any appointments in timespan displayed in timeline view.

Thank you for your response
Vlad
Top achievements
Rank 1
 answered on 01 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?