Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
58 views
Version: 2011.1.519.35

When you left click down and hold on the slider handle and move your mouse left or right the handle will not move. If you click in front or behind the handle on the slide scale the handle will move. This only happens in IE9.

Can you confirm replication of this issue? If so, when can we expect a fix?
Niko
Telerik team
 answered on 04 Aug 2011
2 answers
197 views
Hi, I have an hierarchical grid.  masterTableView and DetailTables.
DetailTables has a GridClientSelectColumn that allows to select rows (multiselection)

<telerik:RadGrid ID="RadGridResources" runat="server" Width="950px" ShowStatusBar="true"
            AutoGenerateColumns="False" PageSize="7" AllowSorting="True" AllowMultiRowSelection="True"
            AllowPaging="True">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView Width="100%" DataKeyNames="IDResource" AllowMultiColumnSorting="True" HierarchyDefaultExpanded="true">
                
                    <DetailTables>
                        <telerik:GridTableView DataKeyNames="IDSlot" Name="Slot" Width="100%">
                            <Columns>
 
                                 <telerik:GridClientSelectColumn HeaderStyle-Width="40px"
                                                                UniqueName="CheckboxSelectIDSlotColumn"                                                                
                                                                >
                                    <HeaderStyle Width="40px" />
                                </telerik:GridClientSelectColumn>
                                 
                                <telerik:GridBoundColumn SortExpression="IDSlot" HeaderText="IDSlot" HeaderButtonType="TextButton"
                                    DataField="IDSlot">
                                </telerik:GridBoundColumn>                             
 
                                <telerik:GridBoundColumn SortExpression="Code" HeaderText="Code" HeaderButtonType="TextButton"
                                    DataField="Code">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton"
                                    DataField="Description">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </telerik:GridTableView>
                    </DetailTables>
                       
                <Columns>
                    <telerik:GridBoundColumn SortExpression="IDResource" HeaderText="IDResource" HeaderButtonType="TextButton"
                        DataField="IDResource">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Code" HeaderText="Code" HeaderButtonType="TextButton"
                        DataField="Code">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="Description" HeaderText="Description" HeaderButtonType="TextButton"
                        DataField="Description">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
 
            <ClientSettings enablePostBackOnRowClick="true">
                <ClientEvents  />
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
        </telerik:RadGrid>


any time a row is selected I would like to get all the selected rows collection. Think can use selectedIndexChanged...

Protected Sub RadGridResources_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGridResources.SelectedIndexChanged
        Try
 
            Dim selectedItems As New ArrayList
            Dim idSlot As Long
 
                For i = 0 To RadGridResources.SelectedItems.Count - 1
                    Dim dataItem As GridDataItem = RadGridResources.SelectedItems(i)
                    idSlot = dataItem("IDSlot").Text
                    selectedItems.Add(idSlot)
                  
 
                Next
 
              'TO DO
 
 
        Catch ex As Exception
 
        End Try
    End Sub

In the away here above I find all IDSlot (child) selected values but I don't know how to find their IDResource (parent)

Thank you
Jean-Marc
Top achievements
Rank 1
 answered on 04 Aug 2011
11 answers
550 views
Hi,
I have a rad combobox in Ajax update panel inside an ascx control. I need to show a confirm box every time the combo box is changed based on a condition. If the user chooses not to go with the change, I need to set the combo box value to the previous one.
I was able to use ScriptManager.RegisterStartupScript to show the confirm box from the SelectedIndexChanged event. But I'm not able to set the combo box value to previous one. I keep getting null for $find on the combo box. Please find the related code below. Any help is greatly helpful as I need to resolve this ASAP.

ASCX code:
<telerik:RadCodeBlock ID="rcbCodeBlock" runat="server">

    <script type="text/javascript">
        function ShowConfirmOrgCode(oldValue, combo) {
            if (!confirm('Do you want to continue...?')) {
                var orgcombo = $find(combo);
                if (orgcombo != null) {
                    alert(orgcombo.get_selectedIndex());
                    orgcombo .findItemByValue(oldValue).select();
                }
            }
        }
    </script>

</telerik:RadCodeBlock>

           <asp:UpdatePanel ID="updatePanelOrgCode" runat="server">
                <ContentTemplate>
                 <telerik:RadComboBox ID="ddlOrgCode" Width="300px" runat="server" AutoPostBack="true" Height="100px"
                DropDownWidth="570px" MarkFirstMatch="true" EnableLoadOnDemand="false" />
            <asp:RequiredFieldValidator ID="ddlOrgCodereqval" Enabled="true" runat="server" ControlToValidate="ddlOrgCode"
                Display="None" InitialValue="<<- Select Organization Code ->>" ErrorMessage="Organization code is required."
                ValidationGroup="Group1"></asp:RequiredFieldValidator>
            <asp:HiddenField ID="hiddenOrgCode" runat="server" />
            <asp:HiddenField ID="hiddenHasAccess" runat="server" />
                </ContentTemplate>
            </asp:UpdatePanel>


Code Behind:

        protected void ddlOrgCode_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            if (ddlOrgCode.SelectedIndex != -1)
            {
                OrganizationCodeCollection ogc = base.CurrentPDCreator.GetAssignedOrganizationCodes();
                int selectedOrgCode = Convert.ToInt32(ddlOrgCode.SelectedValue);
                string oldValue = hiddenOrgCode.Value;
                bool hasAccess = ogc.Contains(selectedOrgCode);
                string sorg = ddlOrgCode.ClientID;
                if (!hasAccess)
                {
                    hiddenHasAccess.Value = hasAccess.ToString();
                    string strScript = "setTimeout(ShowConfirmOrgCode('" + oldValue + "', '" + sorg + "'), 500);";
                    ScriptManager.RegisterStartupScript(updatePanelOrgCode, GetType(), "OrgCodePopup", strScript, true);
                }
                else
                {
                    hiddenOrgCode.Value = selectedOrgCode.ToString();
                }
            }
        }
Dimitar Terziev
Telerik team
 answered on 04 Aug 2011
2 answers
171 views
Hi,

I'm using the radbutton with the download icon to allow users to download files.

This works fine in most cases accept for mime types that the browser recognizes and opens directly
in the browser when the user would rather not open the file, but prefers to "Save As..." the file instead.

When I use a standard ASP.net hyperlink the user can either click to open or right click and select
"Save Target As..." and save it without opening it.

Is there any way to make the browsers work this way when using the radbutton as a download hyperlink?

Thank,
Scott
Slav
Telerik team
 answered on 04 Aug 2011
2 answers
229 views

I have a RadMenu in a SharePoint master page. The problem is,  when I select the site Actions dropdown it appears behind the RadMenu.  The Default z-index of the menu is 7000, I’ve set it to (z-index  3 !important) with no change to the issue.

How should I configure the RadMenu to appear below the SharePoint Site Actions Menu, But will still remain above the other Telerik controls.


Kate
Telerik team
 answered on 04 Aug 2011
3 answers
247 views

GridGroupHeaderItem groupHeader = dtgLeads.MasterTableView.GetItems(GridItemType.GroupHeader)[index] as GridGroupHeaderItem;
  
GridItem[] children = groupHeader.GetChildItems();
bool hasChild = groupHeader.HasChildItems;
children.Count() > 0
  
flag = true;
foreach (GridItem child in children)
{}

I got error on (GridItem child in children) line. If i use GridDataItem in place of GridItem again i got error, I ve done this on trila version now we have Paid 2011 Q2 Ajax control version, now its not running. even the code is copied and pasted from the project that was runing with trial version.

Thanks
Andrey
Telerik team
 answered on 04 Aug 2011
3 answers
141 views
Hi All,
Please view the attachment . I have just modified filtering style. Please let me can I achive a kind of filtering style as show in  the attachment  . I adding the filtering option as icon in the column header itself . And when I click on that icon I should be able to get the drop down list with filtering values.


Thanks ...

saravanakumar subramaniam
Top achievements
Rank 1
 answered on 04 Aug 2011
10 answers
348 views
Hi,

how to disable the Drag and drop feature for images in RadEditor. Currently , i can drag any image in my web page and drop this to Rad Editor. how to disable that ? but at the same time i want the copy/paste functionality for images in rad editor.
Rumen
Telerik team
 answered on 04 Aug 2011
1 answer
213 views
Greetings,

I have a page with a radGrid and a button that allow my user to download a file, now if I use the RadAjax Manger to configure
the button to an AJAX style postback this will confict with the file download  -- if you do this you get Parse Error, as you
are messing w/ the server response :)

This page also has a grid that shows the data that is being downloaded with a status column that displays if 'exported' process
has been completed. i.e..(the user downloaded the file)  

Here's my goal, user clicks to the get the download, and aspx server side code sub. rgRequests_NeedDataSource is  invoked causing the RadGrid to be updated 

I am using client side jQuery.to update the text lables on the page with out issue,

but I do not understand how to invoke a server side code (asp.net).


// this is wired up to a ASP:BUTTON -- onClick event

function upDatePAMLabel(label,grid) {
             $("#" + label).html("There are no User IDs waiting to be exported");
  
          // AJAX Call back here to refresh the grid
          //  $("#" + grid).ajax("PortalAdminManager.aspx", "", "rgRequests_NeedDataSource","");
          
        /*   does nothing!
          $.ajax({
              type: "POST",
              url: "PortalAdminManager.aspx/rgRequests_NeedDataSource",
              data: "{}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function (msg) {
                  alert(msg)
              }
          });
          */
          
        //  brute force method - to refresh the grid
         // force a reload so that Request Status is updated in the grid
          $(document).ready(function () {
              setTimeout(function () { window.location.href = "./PortalAdminManager.aspx"; }, 1000);
            });
        
 }


So if anyone has done this, please a post a solution  or a suggestion!

Thanks,

Dave Gilden MCSD / Ft. Worth, Tx




Radoslav
Telerik team
 answered on 04 Aug 2011
1 answer
114 views
I have been trying to get CSS styles to load into a RadEditor with no luck.  The editor needs to show image manger, unordered list, indent, outdent and Apply Styles.  I was going nuts thinking it was something in my code, so I created a new Telerik Web Application.  My test app only has the default page that is created when you do new project.  I placed a RadEditor on the page and included my CSS stylesheet linked on the page.

The problem is that when the tools are changed/added, the stylesheet does not load.  I am not even writing any code, I am letting the configuration manager put the changes into the file.  See code below...

Is this a bug, or do I need to do something special?

Thanks,
        Paul


When the apsx page contains the following the Apply Styles works great:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
  
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Hay">
    </telerik:RadSkinManager>
    <div>
     
        <telerik:RadEditor ID="RadEditor1" Runat="server">
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

When I customize the toolbar and the code looks like this, I get no dropdown for the Apply Styles.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
  
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Hay">
    </telerik:RadSkinManager>
    <div>
     
        <telerik:RadEditor ID="RadEditor1" Runat="server">
            <Tools>
                <telerik:EditorToolGroup Tag="MainToolbar">
                    <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                    <telerik:EditorTool Name="AjaxSpellCheck" />
                    <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                    <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                    <telerik:EditorTool Name="Cut" />
                    <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                    <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                    <telerik:EditorToolStrip Name="PasteStrip">
                    </telerik:EditorToolStrip>
                    <telerik:EditorSeparator />
                    <telerik:EditorSplitButton Name="Undo">
                    </telerik:EditorSplitButton>
                    <telerik:EditorSplitButton Name="Redo">
                    </telerik:EditorSplitButton>
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup Tag="InsertToolbar">
                    <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+G" />
                    <telerik:EditorTool Name="DocumentManager" />
                    <telerik:EditorTool Name="FlashManager" />
                    <telerik:EditorTool Name="MediaManager" />
                    <telerik:EditorTool Name="TemplateManager" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                    <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup>
                    <telerik:EditorTool Name="Superscript" />
                    <telerik:EditorTool Name="Subscript" />
                    <telerik:EditorTool Name="InsertParagraph" />
                    <telerik:EditorTool Name="InsertGroupbox" />
                    <telerik:EditorTool Name="InsertHorizontalRule" />
                    <telerik:EditorTool Name="InsertDate" />
                    <telerik:EditorTool Name="InsertTime" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="FormatCodeBlock" />
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup>
                    <telerik:EditorDropDown Name="FormatBlock">
                    </telerik:EditorDropDown>
                    <telerik:EditorDropDown Name="FontName">
                    </telerik:EditorDropDown>
                    <telerik:EditorDropDown Name="RealFontSize">
                    </telerik:EditorDropDown>
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup>
                    <telerik:EditorTool Name="AbsolutePosition" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                    <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                    <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                    <telerik:EditorTool Name="StrikeThrough" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="JustifyLeft" />
                    <telerik:EditorTool Name="JustifyCenter" />
                    <telerik:EditorTool Name="JustifyRight" />
                    <telerik:EditorTool Name="JustifyFull" />
                    <telerik:EditorTool Name="JustifyNone" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="Indent" />
                    <telerik:EditorTool Name="Outdent" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="InsertOrderedList" />
                    <telerik:EditorTool Name="InsertUnorderedList" />
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="ToggleTableBorder" />
                    <telerik:EditorTool Name="XhtmlValidator" />
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup>
                    <telerik:EditorSplitButton Name="ForeColor">
                    </telerik:EditorSplitButton>
                    <telerik:EditorSplitButton Name="BackColor">
                    </telerik:EditorSplitButton>
                    <telerik:EditorDropDown Name="ApplyClass">
                    </telerik:EditorDropDown>
                    <telerik:EditorToolStrip Name="FormatStripper">
                    </telerik:EditorToolStrip>
                </telerik:EditorToolGroup>
                <telerik:EditorToolGroup Tag="DropdownToolbar">
                    <telerik:EditorSplitButton Name="InsertSymbol">
                    </telerik:EditorSplitButton>
                    <telerik:EditorToolStrip Name="InsertTable">
                    </telerik:EditorToolStrip>
                    <telerik:EditorToolStrip Name="InsertFormElement">
                    </telerik:EditorToolStrip>
                    <telerik:EditorSplitButton Name="InsertSnippet">
                    </telerik:EditorSplitButton>
                    <telerik:EditorTool Name="ImageMapDialog" />
                    <telerik:EditorDropDown Name="InsertCustomLink">
                    </telerik:EditorDropDown>
                    <telerik:EditorSeparator />
                    <telerik:EditorTool Name="ConvertToLower" />
                    <telerik:EditorTool Name="ConvertToUpper" />
                    <telerik:EditorSeparator />
                    <telerik:EditorDropDown Name="Zoom">
                    </telerik:EditorDropDown>
                    <telerik:EditorSplitButton Name="ModuleManager">
                    </telerik:EditorSplitButton>
                    <telerik:EditorTool Name="ToggleScreenMode" ShortCut="F11" />
                    <telerik:EditorTool Name="AboutDialog" />
                </telerik:EditorToolGroup>
            </Tools>
            <Content>
</Content>
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>
Rumen
Telerik team
 answered on 04 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?