Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
80 views
Ra
Hi,

I'm using simple radwindow  to open pdf doc .. below I mentioned the code  in the same page we using ajax setting,Telerik.WebControls

the pdf not opening in ie but Firefox working I tried all solution in net I found error like page open twice or page open twice on first click or it not working ie , I put up sample project it working fine i incorporate same in project it is not working. My page have ajax setting  .I dont know what happen . when click the button  AjaxNs.Arwo(new webform_Postbackoption("").. seen the link???
 


<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<telerik:RadWindow runat="server" ID="RadWindow2" EnableAjaxSkinRendering="false" ></telerik:RadWindow>
 RadWindow2.NavigateUrl = objFileManager.GetVirtualFilePath(objFileManager.GetFile(valTPContractUploadFile.CopiedFileFullPath));
 RadWindow2.VisibleOnPageLoad = true;
Danail Vasilev
Telerik team
 answered on 02 Aug 2013
1 answer
129 views
Hello,

I have tried and got success in hiding individual columns in Grid. But, my requirement is i want to hide multiple column header section also.



I want to hide "Product Details" Section also.

JS:
function ShowColumnHeaderMenu(ev, columnName) {
                var grid = $find("<%=RadGrid1.ClientID %>");
                var columns = grid.get_masterTableView().get_columns();
                for (var i = 0; i < columns.length; i++) {
                    if (columns[i].get_uniqueName() == columnName) {
                        columns[i].showHeaderMenu(ev, 75, 20);
                    }
                }
            }

Can you give me suggestions how can i do this.

Thanks in advance,
Venkata.

Marin
Telerik team
 answered on 02 Aug 2013
1 answer
73 views
Hi ,
The radgrid is getting misaligned as in the attached screen shot.It occurring only in browser version: Internet Explorer 8 Version 8.0.7600.16385. Please let us know how to fix the issue.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                                                                <ContentTemplate>
                                                                                    <telerik:RadGrid ID="gridCCU" AllowPaging="true" AllowSorting="true" OnNeedDataSource="gridCCU_NeedDataSource"
                                                                                        AutoGenerateColumns="false" AllowAutomaticInserts="true" GridLines="Horizontal"
                                                                                        ClientSettings-EnableRowHoverStyle="true" EnableAjaxSkinRendering="false" MasterTableView-RowIndicatorColumn-ItemStyle-BorderColor="ActiveBorder"
                                                                                        Height="220px" runat="server" OnItemCommand="getCCU">
                                                                                        <ClientSettings Scrolling-AllowScroll="true" EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true"
                                                                                            Scrolling-UseStaticHeaders="true">
                                                                                        </ClientSettings>
                                                                                        <MasterTableView AllowPaging="true" DataKeyNames="OBJID" Width="100%" TableLayout="Fixed"
                                                                                            EnableViewState="true" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                                                                            AlternatingItemStyle-HorizontalAlign="Center">
                                                                                            <Columns>
                                                                                                <telerik:GridBoundColumn DataField="MODEL" HeaderText="MODEL" HeaderStyle-Font-Bold="true">
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Connections.connectionType" HeaderStyle-Font-Bold="true" HeaderText="COMMUNICATION TYPE"
                                                                                                    >
                                                                                                </telerik:GridBoundColumn>
                                                                                                <telerik:GridBoundColumn DataField="Connections.IPAddress" HeaderStyle-Font-Bold="true" HeaderText="ADDRESS"
                                                                                                   >
                                                                                                </telerik:GridBoundColumn>
                                                                                                <%--<telerik:GridBoundColumn DataField="STATUS" HeaderText="STATUS" HeaderStyle-Font-Bold="true" >
                                                                                                </telerik:GridBoundColumn>--%>
                                                                                                <telerik:GridTemplateColumn UniqueName="statusCCU" HeaderStyle-Font-Bold="true" HeaderText="STATUS">
                                                                                               <ItemTemplate>
                                                                                                 <asp:Label ID="lblStatus" runat="server" Text="OFFLINE"></asp:Label>
                                                                                               </ItemTemplate>
                                                                                             </telerik:GridTemplateColumn>
                                                                                            </Columns>
                                                                                            <HeaderStyle CssClass="GridHeader" />
                                                                                        </MasterTableView>
                                                                                        <PagerStyle Mode="NextPrevAndNumeric" EnableSEOPaging="true" VerticalAlign="Bottom"
                                                                                            Position="Bottom" AlwaysVisible="true" />
                                                                                    </telerik:RadGrid>
                                                                                </ContentTemplate>
                                                                            </asp:UpdatePanel>

Thanks
Gayathri
Deyan Enchev
Telerik team
 answered on 02 Aug 2013
1 answer
139 views
i have used in my project telerik captcha in the login page,
In some times when i type the characters from the captcha image in to text box it is telling "The code you typed is in correct" even i typed correctly.  when i restart IIS it works fine and the same patter appears again after few days.
So please can any one help me.

Markup
-----------------
   <div class="captcha">
                <telerik:RadCaptcha ID="RadCaptcha1" runat="server" CaptchaTextBoxLabel="Please type the code from the image"
                    IgnoreCase="true" CaptchaTextBoxLabelCssClass="captchaLabel" EnableRefreshImage="False"
                    CaptchaLinkButtonText="Refresh" ValidatedTextBoxID="txtCaptcha" CaptchaImage-RenderImageOnly="True">
                    <CaptchaImage BackgroundNoise="Medium" TextLength="5" LineNoise="Medium" TextChars="CustomCharSet"
                        CharSet="abcdefghijkmnpqrstuvwxyz123456789" />
                </telerik:RadCaptcha>
                <div class="captchatextBox">
                    <telerik:RadTextBox ID="txtCaptcha" runat="server" Width="180px" Height="30px" MaxLength="5">
                    </telerik:RadTextBox>
                </div>
                <div class="captchaLabel">
                    <asp:Label ID="Label1" runat="server" Text="Type code from the image" Width="230px"></asp:Label>
                </div>
            </div>


C# Code
-------------
 if (!RadCaptcha1.IsValid)
                    {
                        auditClient.AddMessage("Captcha Validation", "False");
                        lblError.Text = "Please add text on image";
                        return;
                    }
                    auditClient.AddMessage("Captcha Validation", "True");
Slav
Telerik team
 answered on 02 Aug 2013
1 answer
108 views
Hello,
I'm trying to add a RadPivotGrid to an MVC project.  I followed the pattern mentioned here for regular Grids: http://www.telerik.com/help/aspnet-ajax/mvc-radgrid-databinding.html, but when I try to bind, I get this error: "Script controls may not be registered after PreRender".

Is it possible to do this?  This is what my view looks like:

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Report/Reports.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <%
        RadPivotGrid1.DataSource = ViewData["GridData"];
        RadPivotGrid1.DataBind();
    %>
    <telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1">
        <br />
        <br />

        <telerik:RadPivotGrid AllowPaging="True" Width="800px" Height="400px"
            ID="RadPivotGrid1" runat="server" ColumnHeaderZoneText="ColumnHeaderZone">
            <ClientSettings EnableFieldsDragDrop="true">
                <Scrolling AllowVerticalScroll="true"></Scrolling>
            </ClientSettings>
            <Fields>
                <telerik:PivotGridRowField DataField="Field1">
                </telerik:PivotGridRowField>
                <telerik:PivotGridRowField DataField="Field2">
                </telerik:PivotGridRowField>
                <telerik:PivotGridColumnField DataField="Field3">
                </telerik:PivotGridColumnField>
            </Fields>
            <SortExpressions>
                <telerik:PivotGridSortExpression FieldName="Field1" SortOrder="Descending"></telerik:PivotGridSortExpression>
            </SortExpressions>
        </telerik:RadPivotGrid>
    </telerik:RadAjaxPanel>

        

</asp:Content>


Marin
Telerik team
 answered on 02 Aug 2013
4 answers
215 views
Hello,

Is it possible to combine checkbox and autocomplete functionality in a RadComboBox?

We keep receiving the following error when we type in the comboxbox for the autocomplete functionality:
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete."

The following is the html for the related control:
<telerik:RadComboBox ID="cboProductCode" Filter="Contains" runat="server" Width="300px" MarkFirstMatch="true" EnableLoadOnDemand="true" CheckBoxes="true" DropDownAutoWidth="Disabled"></telerik:RadComboBox>

If it is possible, can you please provide suggestions on improving performance of the autocomplete functionality.

Thank You Very Much for your Assistance!
Plamen
Telerik team
 answered on 02 Aug 2013
5 answers
394 views
Hi,

The telerik demo for radeditor custom dialogs "http://demos.telerik.com/aspnet-ajax/editor/examples/customdialogs/defaultcs.aspx" is not working on the safari and chrome browser.In detail, when "Insert special link" button is clicked, nothing happened in safari and chrome although a dialog box is displayed in firefox ,IE8,IE7.


I am currently using this technique to load my custom dialog. Is there any solution?

Best Regards,
THA
-DJ-
Top achievements
Rank 1
 answered on 02 Aug 2013
1 answer
146 views
I have a series of dynamically created raddocks, that are dynamically placed in different RadDock zones. If the user presses "Save" I am trying to cycle through each raddockzone and then save information from them in a database. See below.

private void SaveWorkspacePanels(RadDockZone dockzone,int workspaceid,int panellocation)
    {
        try
        {
            BusinessLayer BL=new BusinessLayer();
            DemandSolutions_WorkspacePanel WorkspacePanel;
            string source;
            string [] parsed;
            string panelid;
            string paneltype;
            foreach(RadDock dock in dockzone.Docks)
            {
                WorkspacePanel=new DemandSolutions_WorkspacePanel();
                source=dock.Tag;
                parsed=source.Split(' ');
                panelid=parsed[0];
                paneltype=parsed[1];
                WorkspacePanel.PanelID=Convert.ToInt32(panelid);
                WorkspacePanel.PanelLocation=panellocation;
                WorkspacePanel.WorkspaceID=workspaceid;
                BL.InsertWorkspacePanel(WorkspacePanel);
            }//End For-Each
        }
        catch(Exception ex)
        {
            DisplayMessage.InnerText="Problem with "+dockzone.ID+" "+ex.ToString();
        }
 
    }//End Function

The problem is if the RadDock is moved from another dockzone, it is not detected and therefor not saved...any thoughts.

Here is how the RadDock is created

RadDock dock=new RadDock();
dock.DockMode = DockMode.Docked;
dock.ID= string.Format("RadDock{0}", Guid.NewGuid().ToString().Replace('-', 'a'));
dock.Tag=panelID+" "+controlType;
dock.Title=panelTitle;
dock.Text=panelDescription;
dock.Width=Unit.Percentage(100);
dock.AutoPostBack=true;
dock.Commands.Add(new DockExpandCollapseCommand());




Michael
Slav
Telerik team
 answered on 02 Aug 2013
3 answers
122 views
Hello!

I am hoping for whatever column header i click to then be sorted (Asc,Des,None)
Currently this works on the first header click, but then after selecting a different column, the wrong header is sorted!
Here is my click order:
Click Col 1, Col 1 sorts.
Click Col 2, Col 3 sorts.
Click Col 2, Col 2 sorts.
Click Col 3, Col 4 sorts.
Click Col 3, Col 3 sorts.
Click Col 1, Col 1 sorts!

Any tips on what might be happening would be great! I have a feeling it may be related to my binding causing a loss of header order?

C#:

protected void Page_Init(object sender, EventArgs e)
      {
          if (IsPostBack)
          {
              pogrid.DataSource = null;
              pogrid.Rebind();
          }
          else
          {
              //... set filteredPOList
              pogrid.DataSource = null;
              pogrid.Rebind();
 
 
public void Selection_Changed(object sender, EventArgs e)
      {
          //...
      }
 
      protected void Grid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
      {
          pogrid.DataSource = filteredPOList;
           
      }


ASPX:  
<telerik:RadGrid  ID="pogrid" runat="server" EnableViewState="true" AutoGenerateColumns="False" OnNeedDataSource="Grid_NeedDataSource" AllowFilteringByColumn="True"  AllowSorting="True"
ViewStateMode="Enabled" CellSpacing="0" OnSelectedIndexChanged="Selection_Changed" GridLines="None" >
                <GroupingSettings CaseSensitive="false"  />
                <ClientSettings EnableRowHoverStyle="True">
                <Selecting AllowRowSelect="True" ></Selecting>
                <Scrolling  UseStaticHeaders="True" AllowScroll="True" SaveScrollPosition="True" ScrollHeight="300px">     </Scrolling>
                <Resizing AllowColumnResize="True"></Resizing>
                </ClientSettings>
            <MasterTableView DataKeyNames="poId">
            <Columns>
                <telerik:GridBoundColumn HeaderStyle-Width="20%" HeaderStyle-Font-Bold="true" HeaderText="Promotion Number" UniqueName="PromotionNumber" DataField="PromotionNumber" SortExpression="PromotionNumber"
                  FilterDelay="2000" CurrentFilterFunction="StartsWith" FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="40%"  HeaderStyle-Font-Bold="true" HeaderText="Promotion Name" UniqueName="PromotionName" DataField="PromotionName" SortExpression="PromotionName"
                  FilterDelay="2000" CurrentFilterFunction="Contains"  FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="20%"  HeaderStyle-Font-Bold="true" HeaderText="Pep Contact" UniqueName="PepContact" DataField="PepContact" SortExpression="PepContact"
                  FilterDelay="2000" CurrentFilterFunction="Contains" FilterControlWidth="80%" ></telerik:GridBoundColumn>
                <telerik:GridBoundColumn HeaderStyle-Width="20%"  HeaderStyle-Font-Bold="true" HeaderText="PO Name" UniqueName="POName" DataField="POName" SortExpression="POName"
                  FilterDelay="2000" CurrentFilterFunction="Contains" FilterControlWidth="80%" ></telerik:GridBoundColumn>
            </Columns>
            </MasterTableView>
    </telerik:RadGrid>

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <ajaxsettings>
            <telerik:AjaxSetting AjaxControlID="pogrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pogrid" LoadingPanelID="RadAjaxLoadingPanel1">
                    </telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </ajaxsettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>

Joe
Top achievements
Rank 1
 answered on 02 Aug 2013
1 answer
199 views
We have the following problem when paging a grid that is contained within a node of a radtreeview. Loading the first time this load grid smoothly (Figure 1). After trying to page the grid that does not trigger the event NeedDataSource (Figure 2) causing all grids disappears. Attached sample project. I can support.
Princy
Top achievements
Rank 2
 answered on 02 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?