Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Can the x-axis labels be made as clickable ?

look in image that I attached.
Richard
Top achievements
Rank 1
 answered on 15 May 2012
2 answers
332 views
Hello,

I have following scenario.

On the Form I have RadButton with code:
protected void RadButton_tab_Click(object sender, EventArgs e)
        {
               sesja="abcdef";
               ScriptManager.RegisterStartupScript(Page, typeof(Page), "runTabelka", "openTabelka('"+sesja+"')", true);
        }
where openTabelka is javascript function located in body Form:
<telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
    <script type="text/javascript">
        function openTabelka(args) {
            var adres = "http://127.0.0.1/Tabela.aspx?" + args;
            window.open(adres, "_blank");
        }
    </script>
</telerik:RadScriptBlock>
next, I have script for key pressed on the Form:
function klik() {
            var k = event.keyCode;
            if (k == 13) {
                var button = $telerik.findButton("<%= RadButton_tab.ClientID %>");
                button.click();
            };
        }
and in body tag: <body onkeypress="javascript:klik()">

when I click (with mouse button) on my RadButton, function openTabelka is running and new page in Web Browser is opened.
but when I press Enter key, function klik() is fired, RadButton (RadButton_tab_Click) is fired (I see this in debugger),
line with ScriptManager.RegisterStartupScript(Page, typeof(Page), "runTabelka", "openTabelka('"+sesja+"')", true); is executed,
 but script openTabelka is not running.
where I make a mistake ?

regards, Dominik
Dominik
Top achievements
Rank 1
 answered on 15 May 2012
3 answers
161 views

<EditFormSettings InsertCaption="Assign/Modify Question" CaptionFormatString="Edit Record: {0}" 

 

 

CaptionDataField="QuestionId" EditFormType="Template">

 

 

<PopUpSettings Modal="True" Width="700px" Height="500px" />

 

 

<FormTemplate>

 

 

<asp:ValidationSummary ID="valSummaryApprove" ValidationGroup="ApproveGroup" ForeColor="DarkRed"

 BackColor="Transparent" runat="server" Width="550px" Font-Names="Verdana" Font-Size="8pt"

 TabIndex="-1" HeaderText="Validation Results" />

 

 

<asp:ValidationSummary ID="valSummaryReassign" ValidationGroup="ReassignGroup" ForeColor="DarkRed"

 BackColor="Transparent" runat="server" Width="550px" Font-Names="Verdana" Font-Size="8pt"

 TabIndex="-1" HeaderText="Validation Results" />

 

 

<asp:ValidationSummary ID="valSummary" ValidationGroup="UpdateGroup" ForeColor="DarkRed"

 BackColor="Transparent" runat="server" Width="550px" Font-Names="Verdana" Font-Size="8pt"

 TabIndex="-1" HeaderText="Validation Results" />



<table>
...

 <tr>

 <td>

 

<telerik:RadButton ID="RadButton1" ValidationGroup="ApproveGroup" TabIndex="14" CausesValidation="true" AutoPostBack="false"  Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Approve for Public Release" %>' runat="server" Skin="Web20"

 CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

 </telerik:RadButton></td>

 

 

 <td>

 
<telerik:RadButton ID="RadButton2" ValidationGroup="ReassignGroup" TabIndex="15" CausesValidation="true" AutoPostBack="false" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Reassign" %>' runat="server" Skin="Web20"  

CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

 </telerik:RadButton></td>

 

 

 <td>

 
<telerik:RadButton ID="Button1" ValidationGroup="UpdateGroup" TabIndex="16" CausesValidation="true"

Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>' runat="server" Skin="Web20"

 CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>

</telerik:RadButton></td><td><telerik:RadButton ID="btnCancel" CommandName="Cancel" TabIndex="17" Text="Cancel" CausesValidation="False"

 runat="server" Skin="Web20"></telerik:RadButton></td>

 

 

 </tr>

</table>

 

Approve for Public Release and Reassign buttons do not fire itemcommand event unless I set autopostback to true, which loses my edits.

 

 

 

 

Please help.

Thanks in advance...
...
</table>

 

T
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
412 views
Hi,

I am using radgrid for grouping datas. Currently there are two groups and i want all the groups to be collapsed by default. I have used the property GroupsDefaultExpanded but it is collapsing only the root groups. I confirmed this behaviour from the link below.  http://www.telerik.com/help/aspnet-ajax/grid-group-load-modes.html - in the caution section. I also checked that once the root item is expanded the child groups button click is also called and those items are also expanding. I need a solution to collapse the inner level groups on expanding the outer level groups. Is there a workaround for that. It would be very helpful if there is something.

Thank you.



Richard
Top achievements
Rank 1
 answered on 15 May 2012
1 answer
52 views
HI,
Sometimes in IE (8, 9) I can't resize my window using left or right border (trying to dragging).
But it's possible to do it using a corner of the window. After that the first way starts to work.

I'm using telerik 2010.1.415.20.
What's wrong?
Marin Bratanov
Telerik team
 answered on 15 May 2012
3 answers
103 views
Hi;
Is there any way to use an usercontrol for edititemteplate in radlistview like radgrid? 
Andrey
Telerik team
 answered on 15 May 2012
1 answer
509 views
Hi,
I am using 2 Radlistbox in my project for item transfer from source to destination list boxes and vice versa.
When user selecting item in soure listbox then automatically clear item selections in destination listbox.
i done it by using server side event OnSelectedIndexChanged of Radlistbox by adding RadlistboxSource.ClearSelection();
but how to do without OnSelectedIndexChanged event.

Please support.

Thanks.
Santhosh Naik

Richard
Top achievements
Rank 1
 answered on 15 May 2012
2 answers
764 views

Thanks in advance for any help.
 
I used the telerik sample http://demos.telerik.com/aspnet-ajax/tooltip/examples/radtooltipmanagerclientapi/defaultcs.aspx as a basis for this code.   Running the sample on my local Windows 7 machine works but fails in my local dev application.  "Invalid web service call missing parameter" error occurs when calling tooltip.set_value()

var sServiceTrack = oGrid.get_masterTableView().get_dataItems()[sRowIndex].get_dataItem()["service_track_event_id"];
var sPeople = oGrid.get_masterTableView().get_dataItems()[sRowIndex].get_dataItem()["people_id"];
var sParms = sServiceTrack + "~" + sPeople;
//must be a client
if (sServiceTrack == null || sServiceTrack == "")
    return;
var tooltipManager = $find("<%= objRadToolTipManagerClient.ClientID %>");
//If the user hovers the image before the page has loaded, there is no manager created
if (!tooltipManager) 
    return;
//Find the tooltip for this element if it has been created 
var tooltip = tooltipManager.getToolTipByElement(element);
//Create a tooltip if no tooltip exists for such element 
if (!tooltip)
{
    tooltip = tooltipManager.createToolTip(element);
    tooltip.set_value(sParms);
}
//Let the tooltip's own show mechanism take over from here - execute the onmouseover just once
element.onmouseover = null;
//show the tooltip
tooltip.show();

ASPX

 

<telerik:RadToolTipManager ID="objRadToolTipManagerClient" Width="300" Height="100"
    OffsetY="-1" HideEvent="Default" runat="server" EnableShadow="true" RelativeTo="Element"
    Position="MiddleRight" ShowEvent="OnMouseOver" EnableViewState="false" 
    IgnoreAltAttribute="true" >
    <WebServiceSettings Path="wsToolTips.asmx" Method="GetClientToolTipSingelParm" />
</telerik:RadToolTipManager>

Web service

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
  
using System.Configuration;
using System.Web.Script.Services;
using System.Data;
using System.Web.UI;
using System.IO;
using System.Reflection;
  
namespace EvolvCS
{
    [WebService(Namespace = "http://defran.com/webservices")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    [System.Web.Script.Services.ScriptService]
    public class wsToolTips : System.Web.Services.WebService
    {
        [WebMethod]
        [System.Web.Script.Services.ScriptMethod]
        public string GetClientToolTipSingelParm(string sValues)
        {
            string[] aValues = sValues.Split('~');
            string serviceTrackId = aValues[0];
            string peopleId = aValues[1];
  
            return ViewManager.RenderClientToolTip(serviceTrackId, peopleId);
        }
  
    }
  
    public class ViewManager
    {
        public static string RenderClientToolTip(string strServiceTrackId, string strPeopleId)
        {
            Page pageHolder = new Page();
            client_header_multi viewControl = (client_header_multi)pageHolder.LoadControl("client_header_multi.ascx");
            viewControl.serviceTrack = strServiceTrackId;
            viewControl.people_id = strPeopleId;
  
            pageHolder.Controls.Add(viewControl);
  
            StringWriter output = new StringWriter();
            HttpContext.Current.Server.Execute(pageHolder, output, false);
  
            return output.ToString();
        }
    }
}

 

Marin Bratanov
Telerik team
 answered on 15 May 2012
1 answer
42 views
When disabling a raddatetimepicker the width will change from its preset width to a much larger width when you hover over it. Putting the following code and viewing it in ie9 will show the issue.
I am using 2012.1.411
<Rad:RadDateTimePicker ID="RadDatePicker1" Enabled="false" Width="170" runat="server"></Rad:RadDateTimePicker>
Ryan
Top achievements
Rank 1
 answered on 15 May 2012
4 answers
143 views
Hi,
I would like to customize my ColumnHeaderDateFormat with every hour of my TimeLabelSpan (see screenshots attached : now and after)
Here is my source code :
                rsPlanning.TimelineView.SlotDuration = TimeSpan.Parse("01:00:00");
                rsPlanning.TimelineView.TimeLabelSpan = 8;
                rsPlanning.TimelineView.NumberOfSlots = 24;
                rsPlanning.TimelineView.ColumnHeaderDateFormat = "HH:mm";
                rsPlanning.TimelineView.HeaderDateFormat = "dddd";
                rsPlanning.TimelineView.EnableExactTimeRendering = true;
                rsPlanning.TimelineView.StartTime = TimeSpan.Parse("05:00:00");
                rsPlanning.ShowNavigationPane = true;
                rsPlanning.EnableDatePicker = false;










How I can edit my TimelineView to have my screenshot names after ?
CLAUDE LLOP
Top achievements
Rank 1
 answered on 15 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?