Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
117 views
Hello there,
I have just upgraded to Q1 2014 from Q3 2013 SP2. I have noticed the following behaviour in the toolbars in IE11:

- The images with the Question tab activated (740px width) - there is a large difference in the way in which the bottom tools are rendered
- The images with the Instructions tab activated (99% width) - the top toolbar behaves so differently to the other.

Before the upgrade, these editors looked like the compatibility mode off images, but the compatibility mode was on.
Now, after the upgrade and with compatibility mode on, they look terrible. Turning off compatibility mode ruins the layout of the rest of my application, so the requirement is to have compatibility mode settings to on.

I have also included a screen capture of my aspx code - I collapsed some areas to fit on to one screen.

Do you have any thoughts / suggestions?
Bryan
Top achievements
Rank 1
 answered on 04 Mar 2014
5 answers
430 views
On my master page I have a telerek radmenu called "myMenu" see attached

On my aspx page that uses the master page I am trying to alter the link on the button "door" but the following wont work. Can you please help

Protected Sub Page_Load()
 
Dim H As RadMenu = DirectCast(myMenu.FindControl("House"), RadMenu)
Dim D As RadMenuItem = DirectCast(H.FindControl("door"), RadMenuItem)
 
D.click = LoadStuff()
 
End Sub
 
 
Private Sub LoadStuff()
 
'update something in vb.net
 
End Sub
Shinu
Top achievements
Rank 2
 answered on 04 Mar 2014
7 answers
265 views
I have a problem to while exporting the data of Hierarchical RadGrid data in pdf form.

Please see the attached image.

It is not showing proper data. And i am writng the code to export the pdf of radgrid on a Simple Image Button Click.
Please help me. It is urgent for me. Thanks in advance.
Princy
Top achievements
Rank 2
 answered on 04 Mar 2014
3 answers
638 views
this is how I do it with a MS dropdown:

DropDown1.Items.IndexOf(DropDown1.Items.FindByValue(elementValue))

How is this done in VB with a radDropDown??

thanks
Shinu
Top achievements
Rank 2
 answered on 04 Mar 2014
2 answers
66 views
Hi,

I have a context menu that needs to have it's right click work with a tap and hold on ipads. I have gone through the examples at http://www.telerik.com/forums/radcontextmenu---ipad-safari-right-click but I haven't seen an example that's really like my mine. It's a context menu inside a .NET repeater control where right clicking on a row shows a menu with items that are bound to that row and clicking on an item redirects the user according to the data in that row. The main problem has been finding way to refer to the context menu and the rows since they are generated on the server. I was wondering if it's possible to do this and if anyone has suggestions?

Thanks,
Bill
bill
Top achievements
Rank 1
 answered on 04 Mar 2014
4 answers
116 views
In our site, we have a top menu bar that goes over content in the page. whenever we open radWindows we can set their position or set a restriction zone so that they will never get stuck under this menu. When a user with a small browser window (1024 x 768) clicks on the Track Changes button in radEditor, it is possible that the radWindow for track changes will open under the menu bar. This radWindow also cannot be closed by pressing the Esc key so the only option becomes reloading the page.

Is there any way to set the size, opening position, restriction zone or any other options that would prevent the radWindow for track changes to guarantee its position relative to the menu bar.

Thank You.
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 04 Mar 2014
2 answers
277 views
Modal Dialogues by your functionality always center on the window. In most cases, this makes sense and is the desired functionality. But sometimes we would like to be able to set the position of a Modal Dialogue.

In our case, it is when we have the radwindow modal inside of an iframe; we would prefer the position of the modal to be at the top of the iframe, but centered horizontally.

Is there currently a way to achieve this, without having conflicting client JS with the script that gets run to center the modal window?

Otherwise, feature request:  it would be nice that if the Top or Left properties are set, then the control would override the default auto-center functionality.

thanks,
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 03 Mar 2014
2 answers
195 views
I have a RadGrid with several GridDropDownColumns configured as well as several GridBoundColumns. The grid is bound to a data source programatically using the NeedDataSource event. The dropdown columns use RadComboBox style drop downs which are also bound to datasources programatically, in the grid's ItemDataBound event when the grid is in Edit mode. When the grid is not in Edit mode, I set the value of the dropdown column cell's Text property, also in the ItemDataBound event.

This all works are required. However if I do something that causes a postback, but does not rebind the grid when the grid is not in Edit mode - for example selecting a row in the grid - the values in the dropdown columns go blank. Is the TableCell.Text property not persisted through postback? If not, which property should I use for this purpose, or how can I populate it again, given that the ItemDataBound property does not fire which you simply select a row in the grid.

Code sample below:

<telerik:RadGrid runat="server" ID="grdControl" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" GridLines="None">
    <MasterTableView AutoGenerateColumns="False" EditMode="EditForms" DataKeyNames="ControlId, StepId"
        CommandItemDisplay="Bottom">
        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
        <Columns>
            <telerik:GridButtonColumn ButtonType="LinkButton" Text="Select" CommandName="Select" UniqueName="Select">
            </telerik:GridButtonColumn>
            <telerik:GridEditCommandColumn UniqueName="Edit">
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn CommandName="Delete" Text="Delete" UniqueName="Delete">
            </telerik:GridButtonColumn>
            <telerik:GridDropDownColumn DataField="ControlName" HeaderText="Control Type" UniqueName="ControlName">
            </telerik:GridDropDownColumn>
            <telerik:GridBoundColumn DataField="MaxLength" HeaderText="Max Length" UniqueName="MaxLength">
            </telerik:GridBoundColumn>
            <telerik:GridDropDownColumn DataField="TextMode" HeaderText="Text Mode"
                UniqueName="TextMode" />
            <telerik:GridDropDownColumn DataField="ListSource" HeaderText="List Source" UniqueName="ListSource">
            </telerik:GridDropDownColumn>
            <telerik:GridBoundColumn DataField="EmptyListText" HeaderText="Empty List Text" UniqueName="EmptyListText">
            </telerik:GridBoundColumn>
        </Columns>
    </MasterTableView>
    <FilterMenu>
    </FilterMenu>
    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
    </HeaderContextMenu>
</telerik:RadGrid>
 
 
 
        Private Sub grdControl_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles grdControl.ItemDataBound
            If TypeOf e.Item Is GridEditableItem Then
                Dim item As GridEditableItem = e.Item
                Dim control As FormControlInfo
                Dim ffc As New FlexFormController()
                If TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
                    If e.Item.OwnerTableView.IsItemInserted Then
                        control = New FormControlInfo()
                    Else
                        control = e.Item.DataItem
                    End If
                    Dim editor As GridDropDownListColumnEditor
                    Dim cbo As RadComboBox
                    'ControlName dropdown
                    Dim path As String = Server.MapPath("~/DesktopModules/Dotcom.FlexForm/Components/FormControls/")
                    Dim files As String() = IO.Directory.GetFiles(path, "*.ascx")
                    For i = 0 To files.Length - 1
                        files(i) = IO.Path.GetFileName(files(i)).Replace(".ascx", String.Empty)
                    Next
                    editor = item.EditManager.GetColumnEditor("ControlName")
                    editor.DataSource = files
                    editor.DataBind()
                    editor.SelectedValue = control.ControlName
                    'ListSource dropdown
                    editor = item.EditManager.GetColumnEditor("ListSource")
                    Dim controller As New Lists.ListController()
                    Dim list As Lists.ListInfoCollection
                    If String.IsNullOrEmpty(control.ParentKey) Then
                        list = controller.GetListInfoCollection()
                        editor.DataTextField = "DisplayName"
                        editor.DataValueField = "Key"
                    Else
                        list = controller.GetListInfoCollection(Nothing, control.ParentKey.Replace(":", "."))
                        editor.DataTextField = "Name"
                        editor.DataValueField = "Name"
                    End If
                    editor.DataSource = list
                    editor.DataBind()
                    cbo = editor.ComboBoxControl
                    cbo.Items.Insert(0, New RadComboBoxItem(Localization.GetString("EmptyListItem", Definition.SharedResources), String.Empty))
                    If Not String.IsNullOrEmpty(control.ListSource) Then
                        editor.SelectedValue = control.ListSource
                    End If
                    'TextMode dropdown
                    editor = item.EditManager.GetColumnEditor("TextMode")
                    editor.DataSource = [Enum].GetNames(GetType(TextBoxMode))
                    editor.DataBind()
                    cbo = editor.ComboBoxControl
                    cbo.Items.Insert(0, New RadComboBoxItem(Localization.GetString("EmptyListItem", Definition.SharedResources), String.Empty))
 
                Else
                    control = e.Item.DataItem
                    item("ControlName").Text = control.ControlName
                    item("ListSource").Text = control.ListSource
                    item("EmptyListText").Text = Server.HtmlEncode(control.EmptyListText)
                    item("ParentControlId").Text = control.ParentId
                    If control.TextMode.HasValue Then
                        item("TextMode").Text = control.TextMode.Value.ToString
                    End If
                End If
            End If
        End Sub



Vikas
Top achievements
Rank 1
 answered on 03 Mar 2014
1 answer
63 views
Shot in the dark to see if you could provide more information regarding a custom button height issue I am seeing.  Using your Height40 example I ran in Visual Studio 2013 and got a bad display (see attached).  Ran the same page in VS2010 and it looks completely fine.  I'm attaching the project and screen shot for your review.  I have no idea what to do would appreciate any help you might have.
John

​<%@ Page %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
/* IE7 line height */
* + html a.customHeight40 input.rbDecorated
{
line-height: 40px !important;
}
/* new sprite */
a.customHeight40, .customHeight40 input.rbDecorated
{
background-image: url(customHeight.gif) !important;
}
/* right rounded corner position */
a.customHeight40
{
background-position: right 0;
}
/* left rounded corner position */
a.customHeight40 input.rbDecorated
{
background-position: 0 -40px;
}
/* right rounded corner position hover state */
a.customHeight40:hover
{
background-position: right -80px;
}
/* left rounded corner position hover state */
a.customHeight40:hover input.rbDecorated
{
background-position: left -120px;
}
/* right rounded corner position active and focus states */
a.customHeight40:focus, a.customHeight40:active
{
background-position: right -160px;
}
/* left rounded corner position active and focus states */
a.customHeight40:focus input.rbDecorated, a.customHeight40:active input.rbDecorated
{
background-position: left -200px;
}
/* IE and Opera Focus and Active state fix with additional class, should be used !important */
a.customHeight40.rbPressedButton
{
background-position: right -160px !important;
}
a.customHeight40.rbPressedButton input.rbDecorated
{
background-position: left -200px !important;
}
/* IE8 Onclickg filckering Bug fix */
a.customHeight40.rbPressedIE8 input.rbDecorated, a.customHeight40.rbPressedIE8Rtl input.rbDecorated
{
-ms-background-position-x: 1px !important;
-ms-background-position-y: -199px !important;
}

a.customHeight40.rbPressedIE8Rtl input.rbDecorated
{
-ms-background-position-x: -1px !important;
}

/* fix end */
</style>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadButton ID="RadButton3" runat="server" Text="Default Button Height 40px"
Height="40px" CssClass="customHeight40">
</telerik:RadButton>
<telerik:RadButton ID="RadButton2" runat="server" Text="Default Button Height 22px">
</telerik:RadButton>
</form>
</body>
</html>
Bozhidar
Telerik team
 answered on 03 Mar 2014
1 answer
148 views
In RadHtml Scatter Chart i'm using different symbols for the series(circle, triangle and square) and also different color for the symbols. I need to use the same symbol in the series to the legend also, for now it's just displaying square symbol with different color. Is this possible to display different symbol in the legend?
Niko
Telerik team
 answered on 03 Mar 2014
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?