Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
197 views
Hello,
Is there a way to implement an "always visible" control with the Telerik ASP.NET AJAX tools?

I'm thinking of something like the following control in the MS ACT:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/AlwaysVisibleControl/AlwaysVisibleControl.aspx

I'd like to have a persistent pannel on the top right of a page with scrollbars.

Thanks.
Tanuj
Top achievements
Rank 1
 answered on 25 Apr 2015
2 answers
96 views

Hi,

  AS you can see in the attached screenshot, my x-axis does not start at zero. the Jan 28 starts after a little gap after 0. Can you please let me know how I can make the x-axis also start the same position (0) as the y-axis?

 

Thanks,

Sandeep

Sandeep
Top achievements
Rank 1
 answered on 24 Apr 2015
10 answers
1.9K+ views

Hello everyone:

I have been goin crazy over the last 3hrs trying to resolve this problem, can someone please help me....i keep getting this error: "Procedure or function spUpdatePerm has too many arguments specified"

I haved searched all the forums and support, i also tried everything i can but still get the same error.

Here is the aspx code:

<

telerik:RadGrid ID="gridPerms" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="dsPerms" GridLines="None" ShowGroupPanel="True" Skin="Office2007" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" ShowStatusBar="true">

 <AlternatingItemStyle BackColor="#E6E6E6" Font-Bold="False" Font-Italic="False"
Font-Overline="False" Font-Strikeout="False" Font-Underline="False"
Wrap="True" />

 <PagerStyle Mode="NextPrevAndNumeric" />

<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataKeyNames="PermissionID" DataSourceID="dsPerms">

<RowIndicatorColumn>
    
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<
ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

<
Columns> 
    
<telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
    <telerik:GridBoundColumn DataField="PermissionID" DataType="System.Int16" HeaderText="Permission ID" ReadOnly="True" SortExpression="PermissionID" UniqueName="PermissionID">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="PermissionName" HeaderText="Permission Name" SortExpression="PermissionName" UniqueName="PermissionName" DataType="System.String">
    </telerik:GridBoundColumn>
    <telerik:GridBoundColumn DataField="PermissionLevel" DataType="System.Int16" HeaderText="Permission Level" SortExpression="PermissionLevel" UniqueName="PermissionLevel">
    </telerik:GridBoundColumn>
</Columns>

<EditFormSettings>
    
<EditColumn UniqueName="EditCommandColumn"></EditColumn>
</EditFormSettings>

</MasterTableView>

<ClientSettings AllowDragToGroup="True"></ClientSettings>
<FilterMenu EnableTheming="True" Skin="Office2007">
    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>

</telerik:RadGrid>

 <asp:SqlDataSource ID="dsPerms" runat="server" ConnectionString="<%$ ConnectionStrings:VentrolSecurityConnectionString %>" InsertCommand="spCreatePerm" InsertCommandType="StoredProcedure" SelectCommand="spGetPerms" SelectCommandType="StoredProcedure"     
UpdateCommand
="spUpdatePerm" UpdateCommandType="StoredProcedure">
<UpdateParameters>
    <asp:Parameter Direction="Input" Name="argPermissionID" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionLevel" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionName" Type="String" ConvertEmptyStringToNull="true" />
</UpdateParameters>
<InsertParameters>
    <asp:Parameter Direction="Input" Name="argPermissionLevel" Type="Int16" />
    <asp:Parameter Direction="Input" Name="argPermissionName" Type="String" ConvertEmptyStringToNull="true" />
</InsertParameters>
</asp:SqlDataSource>


Here is the stored procedure to insert:


ALTER
PROCEDURE [dbo].[spCreatePerm]
-- Add the parameters for the stored procedure here
@argPermissionLevel int,
@argPermissionName nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
INSERT tbl_secure_Permission(PermissionLevel,PermissionName)
VALUES(@argPermissionLevel,@argPermissionName)
END

Here is the stored procedure to update:

ALTER
PROCEDURE [dbo].[spUpdatePerm]
-- Add the parameters for the stored procedure here
@argPermissionID int,
@argPermissionLevel int,
@argPermissionName nvarchar(50)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;

-- Insert statements for procedure here
UPDATE tbl_secure_Permission
SET PermissionLevel = @argPermissionLevel,
        
PermissionName = @argPermissionName
WHERE PermissionID = @argPermissionID
END

Please if anyone can help, much appreciation.

Thanks in advance.... 

Amparo
Top achievements
Rank 1
 answered on 24 Apr 2015
3 answers
209 views
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TelerikWebFormsTestBed._Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2015.1.225.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>
 
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
         <h2>Page methods</h2>
        <telerik:RadSearchBox ID="RadSearchBox2" runat="server"
                              EmptyMessage="Search Products" Width="300">
            <WebServiceSettings Path="default" Method="GetResults"/>
        </telerik:RadSearchBox>
        <p>
            <asp:Label runat="server" ID="Label1" />
        </p>
    </telerik:RadAjaxPanel>
</asp:Content>

 

and

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Script.Services;
using System.Web.Services;
using System.Web.UI;
using Telerik.Web.UI;
 
namespace TelerikWebFormsTestBed
{
    public partial class _Default : Page
    {
        private static readonly List<String> MyData = new List<string> {"a", "b", "c"};
 
        protected void Page_Load(object sender, EventArgs e)
        {
        }
 
        protected void RadSearchBox2_Search(object sender, SearchBoxEventArgs e)
        {
            Label1.Text = "Text: " + e.Text;
        }
 
        [WebMethod]
        public static SearchBoxData GetResults(SearchBoxContext context)
        {
            var results = MyData.Where(x => x.StartsWith(context.Text));
            var sbids = new List<SearchBoxItemData>();
            foreach (var result in results)
            {
                var itemData = new SearchBoxItemData();
                itemData.Text = itemData.Value = result;
                sbids.Add(itemData);
            }
            var sbd = new SearchBoxData {Items = sbids.ToArray()};
            return sbd;
        }
    }
}

 GetResults is never invoked. The Page_Load is every time I type something, but not the actual method... 

 

 

Merritt
Top achievements
Rank 1
 answered on 24 Apr 2015
0 answers
360 views

I have a ragrid in a aspx page , from this grid by clicking on a row I open a radtooltipmanager that contains a usercontrol . On opening this user control I want to Maintain Scrollbar panel Position.
I tried to folow this exemples :

http://www.codeproject.com/Tips/595712/Call-JavaScript-in-an-ASP-NET-User-Control

https://basgun.wordpress.com/2008/06/09/maintain-scroll-position-updatepanel-postback/

 http://www.aspsnippets.com/Articles/Find-and-access-control-inside-UserControl-ASCX-from-Parent-Page-ASPX-using-JavaScript-in-ASPNet.aspx

But the problem is that the  panel.scrollHeight return 0, I attached ths screenshot for page and this a part of my code :

<body>
    <form id="form1" runat="server">
        <uc1:Name runat="server" ID="ucConusltationLieesCtl" />
        <asp:ScriptManager runat="server" ID="ScriptManager1">
              </asp:ScriptManager>
          <script type="text/javascript">
              Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(ToCallOnBeginRequest);
              function ToCallOnEndRequest(sender, args) {
                  var panel = document.getElementById('<%=ucConusltationLieesCtl.FindControl("Consul_Panel2").ClientID %>');

                  if (panel) {
                    panel.scrollTop = panel.scrollHeight;
                 }
                 document.documentElement.scrollTop = yPos;

              }
              function ToCallOnBeginRequest(sender, args) {
                   yPos = document.documentElement.scrollTop;
               }
               Sys.WebForms.PageRequestManager.getInstance().add_endRequest(ToCallOnEndRequest);
          </script>

 

Thanks

Patrick
Top achievements
Rank 1
 asked on 24 Apr 2015
1 answer
48 views

Hi,

I have an application that uses RadGrid from the 2013-Q2 build.

I understand that I probably have no support for this anymore, but anyway it appears to be broken in anything other than Internet Explorer.

Specifically, one of the (many) problems is that it throws a JavaScript error of "d.onclick is null" if you are not using IE (e.g. when clicking a client-side delete button).

I know that the library should be updated but the testing overhead is too much for me right now.  Can anyone help with a quick (elegant) fix?

 

          <telerik:GridButtonColumn UniqueName="DeleteColumn" CommandName="Delete" ConfirmTitle="Delete confirmation" ConfirmDialogType="RadWindow" ConfirmText="Are you sure you want to delete this record?" ButtonType="LinkButton" Text="<img src='images/delete.gif' alt='Delete record' />">
            <HeaderStyle Width="60px" />
            <ItemStyle HorizontalAlign="Center" />
          </telerik:GridButtonColumn>

Adam
Top achievements
Rank 1
 answered on 24 Apr 2015
3 answers
695 views

In order to handle the event Item Click on the menu, I had to reset the NavigateUrl property in each Item.

But by doing so, I do not work any more chance, to the context menu, to open the menu page in a new tab, as it always opens the current page.

Is there a solution for this problem?

It would not be useful in a new version of the menu, a property that forces the event ItemClick even in the presence of a value in the property NavigateUrl?

Thanks.

Ivan Danchev
Telerik team
 answered on 24 Apr 2015
2 answers
102 views

Hello Admin,

 I have query regarding the radschedular. Currently i'm using the outlook skin for radschedular. I need to change only the background color from yellow to white. Please find the screen shot as below. Which is having a yellow color currently. How to change the same to white. Could you guys please shed some light to me. I'm stucked up in an lion's den now.

Ivan Danchev
Telerik team
 answered on 24 Apr 2015
1 answer
208 views

Hello,

I have a radGrid with BatchEdit mode activated. In each row i have 2 radComboBox, the first combobox depends of the value of the second to bind one datasource or other. How can i access to the editItemTemplate in the itemDataBound and set the radComboBox of the each row with the datasource associated?

The problem is that the bind of the radComboBox depends of the selected value of the other radComboBox that i have in the same row. Some idea?

 

Thanks

Maria Ilieva
Telerik team
 answered on 24 Apr 2015
5 answers
291 views
I try to set the EditImageUrl (also update and cancel) in the Detailtable but the defaultimage appears (An pen for edit and the texts "update" "cancel" for the commands).
What I have to do to solve this?

<radG:RadGrid ID="Grid_ris_ein" runat="server" EnableAJAX="True" OnNeedDataSource="Grid_ris_ein_NeedDataSource"  
                        AutoGenerateColumns="False" OnItemDataBound="Grid_ris_ein_ItemDataBound" OnItemCommand="Grid_ris_ein_ItemCommand" 
                        AllowPaging="False" BorderStyle="None" CellPadding="0" Skin="None" > 
                    <AlternatingItemStyle /> 
                     
                    <HeaderStyle Font-Bold="false" ForeColor="#000000" BackColor="#ffffff" BorderWidth="1px" HorizontalAlign="Center" VerticalAlign="Top" BorderStyle="Solid" BorderColor="White"  /> 
                    <FooterStyle BackColor="#cc6633"></FooterStyle> 
                    <EditItemStyle Font-Bold="True" /> 
                    <MasterTableView Width="780px" GridLines="None" BorderStyle="None" PageSize="7" 
                          Name="tblMaster" CellPadding="0" CellSpacing="3" HorizontalAlign="Left" EditMode="InPlace" 
                          DataKeyNames="ris_ein_id" > 
                        <ExpandCollapseColumn Resizable="False" Visible="True" CollapseImageUrl="/images/down.png" ExpandImageUrl="/images/right.png"
                            <HeaderStyle Width="20px" /> 
                        </ExpandCollapseColumn> 
                        <RowIndicatorColumn Visible="False"></RowIndicatorColumn> 
                        <Columns> 
                            <radg:GridBoundColumn UniqueName="ris_ein_id" HeaderText="ris_ein_id" DataField="ris_ein_id" Visible="False" ReadOnly="True" ></radg:GridBoundColumn>     
                            <radg:GridBoundColumn UniqueName="ris_ein_nr" HeaderText="ris_ein_nr" DataField="ris_ein_nr" Visible="False" ReadOnly="True"></radg:GridBoundColumn>     
                            <radg:GridBoundColumn UniqueName="ris_ein_text" HeaderText="Monatliche Einnahmen (netto)" DataField="ris_ein_text" ReadOnly="true"
                                <ItemStyle Width="250px" /></radg:GridBoundColumn>     
                            <radg:GridBoundColumn UniqueName="ris_ein" HeaderText="" DataField="ris_ein" DataFormatString="{0:###,### &euro;}" DataType="System.Double"
                                <ItemStyle Width="120px" /></radg:GridBoundColumn>   
                            <radG:GridEditCommandColumn UniqueName="Editbutton" ButtonType="ImageButton" EditImageUrl="/images/edit.png" > 
                                <ItemStyle Width="16px" /></radg:GridEditCommandColumn>  
                            <radg:GridBoundColumn UniqueName="ris_ein_comment" HeaderText="" ReadOnly="true"
                                <ItemStyle Width="394px" /></radg:GridBoundColumn>   
                        </Columns> 
                        <DetailTables> 
                            <radg:GridTableView AllowSorting="False" DataKeyNames="ris_ein_id" width="255px" 
                                Name="tblDetail" > 
                                <ParentTableRelation> 
                                    <radG:GridRelationFields DetailKeyField="ris_ein_id" MasterKeyField="ris_ein_id" /> 
                                </ParentTableRelation> 
                                 
                                <Columns> 
                                    <radg:GridBoundColumn UniqueName="ris_ein_id" HeaderText="ris_ein_id" DataField="ris_ein_id" Visible="False" ReadOnly="True" ></radg:GridBoundColumn>     
                                    <radg:GridBoundColumn UniqueName="ris_ein_nr" HeaderText="ris_ein_nr" DataField="ris_ein_nr" Visible="False" ReadOnly="True"></radg:GridBoundColumn>     
                                    <radg:GridBoundColumn UniqueName="ris_ein_beg" HeaderText="Beginn" DataField="ris_ein_beg" DataFormatString="{0:dd.MM.yyyy}"
                                        <ItemStyle Width="85px" /></radg:GridBoundColumn>     
                                    <radg:GridBoundColumn UniqueName="ris_ein_end" HeaderText="Ende" DataField="ris_ein_end" DataFormatString="{0:dd.MM.yyyy}"
                                        <ItemStyle Width="85px" /></radg:GridBoundColumn>     
                                    <radg:GridBoundColumn UniqueName="ris_ein_inffak" HeaderText="Infl.-Ausgl." DataField="ris_ein_inffak" DataFormatString="{0:0.0%}" DataType="System.Double"
                                        <ItemStyle Width="85px" /></radg:GridBoundColumn>    
                                    <radG:GridEditCommandColumn UniqueName="EditbuttonDetail" ButtonType="ImageButton" EditImageUrl="/images/edit.png" UpdateImageUrl="/images/update.gif" CancelImageUrl="/images/cancle.gif" > 
                                        <ItemStyle Width="16px" /></radg:GridEditCommandColumn> 
                                </Columns> 
                            </radg:GridTableView> 
                        </DetailTables> 
                    </MasterTableView> 
                </radG:RadGrid> 


Konstantin Dikov
Telerik team
 answered on 24 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?