Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
56 views
Dear Team

I want to know if it is possible to have Different EditFormSettings for Add and Edit Operation. in Add operation i am using a usercontrol in which taking a lot of inputs in edit operation i just want inline option to change 1 or 2 fields. if it is possible please let me know\


thanks in advance
Best Regards
Mubasshar
Mubasshar
Top achievements
Rank 1
 asked on 25 Jul 2011
2 answers
48 views
Hello

I have 2 grids in RadPane, depending on the user input, i need to bind one grid to source and display it and subsequently the other grid should be hidden.  It does not seem to work.
Any suggestions or any other control that I should use for this purpose.
Pradeep
Top achievements
Rank 1
 answered on 25 Jul 2011
2 answers
99 views
Hi

I want to read a function(javascript) on another page.
I'm getting error if that function dnt exists..
how can i check whether that function is available or Not.......................

Code : 
 var AllArray = oActive.GetContentFrame().contentWindow.getDocTypeSeriesNo();

oActive -  contains the ref of window.
getDocTypeSeriesNo - javascript function on other page.....


How ca i achieve this....

 
Sunil
Top achievements
Rank 1
 answered on 25 Jul 2011
1 answer
100 views

I was using gridview of Q3 2009 release, which was providing me the filterExpression  like we use to filter in datatable.
Now i have upgraded to Q1 2011 release , and now the GridView is returning FilterExpression in some other format.
This broke my code. Can anyone tell me , how to resolve this?

 

e.g. this i am getting as filterExpression :
  
 (it[\"fieldName\"].ToString().Contains(\"H\"))

    It should be as following :

 fieldName LIKE '%H%'
 

 

Iana Tsolova
Telerik team
 answered on 25 Jul 2011
3 answers
133 views
Hello) I'm having this problem! I have a grid! and there is editformsettings! I use it to display the detailed information! In editformsettings I have a rating! I want to change inthis ranking also changed rating in the main line! How do I get information about the current line by clicking on the rating? Here's a picture!
Timyr
Top achievements
Rank 1
 answered on 25 Jul 2011
1 answer
97 views
Hi all,

i have two radcombobox which are related to each other,i am binding the second combox based on 1st combobox,but i want to display the default text to "ALL" when 2nd loads with data.how can i do that?

Thanks
Princy
Top achievements
Rank 2
 answered on 25 Jul 2011
1 answer
95 views
Hi,

I have a page on which there are multiple tabs. Validations are checked on all tabs before you finally click Submit button on main page.
Now in one of the tabs I have radgrid which user should be allowed to edit at all times.
I'm able to make all items Editable on Edit command. But when I try to update it; it checks for all page validations.
Is there any way to set CausesValidation property to false for it or skip all the validations and update grid only?

I even followed below approach, Skipping valiadation was achieved but its not going inside 'image_Click' even after clicking on it.
protected void rgRequest_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
        {
            if (e.Item is GridDataItem && e.Item.IsInEditMode)
            {
                GridDataItem item = (GridDataItem)e.Item;
                ImageButton image = (ImageButton)e.Item.FindControl("UpdateButton");
                image.CausesValidation = false;
                image.Click += new ImageClickEventHandler(image_Click);
            }
        }
Thanks.
Sebastian
Telerik team
 answered on 25 Jul 2011
3 answers
370 views
Do you have an example that doing the same thing as http://www.telerik.com/help/aspnet-ajax/ajax-show-loadingpanel-on-initial-pageload.html, but there are there are several user controls on the page (tab/pageview).

I think this should use radajaxmanagerproxy?  I have read http://www.telerik.com/help/aspnet-ajax/ajax-ajaxmanagerproxy.html but can't make it work. Can you give a code example for showing loading panel on initial pageload while there are several user control's on the page, tab/pageview, when each tab clicks - new page loads and the ajax loading panel needs to show on initial pageload

Thanks!
Maria Ilieva
Telerik team
 answered on 25 Jul 2011
1 answer
301 views
Hi,

I have a user control "test.ascx" which has editable rad grid. In the aspx page, i have a rad tab-strip and radpageview. What am doing here is to add a user control dynamically (test.ascx) dynamically and adding this to multiple rad tabs. Now, any time i click on radgrid "Edit" (which is present in the user control), entire page gets lost on postback. I looked at couple of articles that was there that said to reload the controls since we are binding dynamically. But it didn't help.

Your timely help is appreciated.

Test.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Test.ascx.cs" Inherits="WebApplication4.Test" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<h4>
    Scenario Lab Management</h4>
<asp:Label ID="lblId" runat="server"></asp:Label>:
<asp:Label ID="lblValue" runat="server"></asp:Label>
<telerik:RadGrid ID="radSIFMAHypotheticalMaintenance" runat="server" AutoGenerateColumns="False"
    PageSize="25" AllowAutomaticUpdates="True">
    <MasterTableView Width="100%" PageSize="25" AutoGenerateColumns="False">
        <Columns>
            <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"
                CommandName="Edit" Text="Edit" />
            <telerik:GridBoundColumn DataField="MaturityType" HeaderText="Maturity" SortExpression=""
                ReadOnly="true" />
            <telerik:GridBoundColumn DataField="Sequence" HeaderText="Sequence" SortExpression=""
                ReadOnly="true" />
            <telerik:GridNumericColumn UniqueName="SIFMA" SortExpression="SIFMA" HeaderText="SIFMA"
                DataType="System.Decimal" DataField="Rate" ColumnEditorID="GridNumericColumnEditor1">
            </telerik:GridNumericColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>
<telerik:GridNumericColumnEditor ID="GridNumericColumnEditor1" runat="server">
    <NumericTextBox MaxLength="25" EmptyMessage="Percentage.">
        <NumberFormat GroupSeparator="" DecimalDigits="2" />
    </NumericTextBox>
</telerik:GridNumericColumnEditor>
<telerik:RadGrid ID="radLIBOR" runat="server" AutoGenerateColumns="False" PageSize="25">
    <MasterTableView Width="100%" CommandItemDisplay="None" PageSize="25" AutoGenerateColumns="False"
        EditMode="EditForms">
        <Columns>
            <telerik:GridButtonColumn ButtonType="LinkButton" UniqueName="EditCommandColumn"
                CommandName="Edit" Text="Edit" />
            <telerik:GridBoundColumn DataField="maturityType" HeaderText="Maturity" SortExpression=""
                ReadOnly="true" />
            <telerik:GridBoundColumn HeaderText="Sequence" DataField="sequence" SortExpression=""
                ReadOnly="true" />
            <telerik:GridNumericColumn UniqueName="LIBOR" SortExpression="LIBOR" HeaderText="LIBOR"
                DataType="System.Decimal" DataField="rate" ColumnEditorID="GridNumericColumnEditor2">
            </telerik:GridNumericColumn>
        </Columns>
    </MasterTableView>
    <ClientSettings>
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>
<telerik:GridNumericColumnEditor ID="GridNumericColumnEditor2" runat="server">
    <NumericTextBox MaxLength="25" EmptyMessage="Percentage.">
        <NumberFormat GroupSeparator="" DecimalDigits="2" />
    </NumericTextBox>
</telerik:GridNumericColumnEditor>

Test.ascx.cs:
using System;
 
namespace WebApplication4
{
    public partial class Test : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        public void LoadData(TestData td)
        {
            lblId.Text = td.id.ToString();
            lblValue.Text = td.var1.ToString();
 
            radSIFMAHypotheticalMaintenance.DataSource = td.sifmaList;
            radLIBOR.DataSource = td.liborList;
            radSIFMAHypotheticalMaintenance.DataBind();
            radLIBOR.DataBind();
        }
    }
}
Default.aspx:

<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="WebApplication4._Default" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadTabStrip ID="RadTabStrip1" Width="100%" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="0">
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">
    </telerik:RadMultiPage>
    </form>
</body>
</html>

Default.aspx.cs:
using System;
using System.Collections.Generic;
using Telerik.Web.UI;
 
namespace WebApplication4
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                List<TestData> lst = DataSetUp();
 
                foreach (var item in lst)
                {
                    RadTab tab = new RadTab();
                    tab.Text = item.tabName;
                    tab.PageViewID = item.id.ToString();
                    RadTabStrip1.Tabs.Add(tab);
 
                    RadPageView pageView = new RadPageView();
                    pageView.ID = item.id.ToString();
                    Test userControl = this.LoadControl("~/Test.ascx") as Test;
                    userControl.LoadData(item as TestData);
                    pageView.Controls.Add(userControl);
                    RadMultiPage1.PageViews.Add(pageView);
                }
            }
        }
 
        private static List<TestData> DataSetUp()
        {
            List<TestData> lst = new List<TestData>();
 
 
            List<LIBOR> liborLst = new List<LIBOR>();
            liborLst.Add(new LIBOR { maturityType = "Weekly", rate = 25.5, sequence = 100 });
            liborLst.Add(new LIBOR { maturityType = "Monthly", rate = 35.5, sequence = 1001324 });
 
            List<SIFMA> sifmaLst = new List<SIFMA>();
            sifmaLst.Add(new SIFMA { maturityType = "Weekly", rate = 45.5, sequence = 1000 });
            sifmaLst.Add(new SIFMA { maturityType = "Monthly", rate = 55.5, sequence = 10013240 });
 
            var test = new TestData
            {
                id = 1,
                tabName = "10 Year Average",
                var1 = "string1",
                var2 = "string11",
                liborList = liborLst,
                sifmaList = sifmaLst
            };
 
            lst.Add(test);
 
 
            List<LIBOR> liborLst2 = new List<LIBOR>();
            liborLst2.Add(new LIBOR { maturityType = "Quarterly", rate = 65.5, sequence = 10 });
            liborLst2.Add(new LIBOR { maturityType = "Yearly", rate = 75.5, sequence = 10013 });
 
            List<SIFMA> sifmaLst2 = new List<SIFMA>();
            sifmaLst2.Add(new SIFMA { maturityType = "Quarterly", rate = 85.5, sequence = 1 });
            sifmaLst2.Add(new SIFMA { maturityType = "Yearly", rate = 95.5, sequence = 100 });
 
            var test2 = new TestData
            {
                id = 2,
                tabName = "1987 Crash",
                var1 = "string2",
                var2 = "string22",
                liborList = liborLst2,
                sifmaList = sifmaLst2
            };
            lst.Add(test2);
 
            return lst;
        }
    }
 
    public class TestData
    {
        public int id;
        public string tabName;
        public string var1;
        public string var2;
        public List<LIBOR> liborList;
        public List<SIFMA> sifmaList;
    }
 
    public class LIBOR
    {
        public string maturityType;
        public double rate;
        public int sequence;
 
        public string MaturityType
        {
            get
            {
                return maturityType;
            }
 
        }
 
        public double Rate
        {
            get
            {
                return rate;
            }
 
        }
 
        public int Sequence
        {
            get
            {
                return sequence;
            }
        }
    }
 
    public class SIFMA
    {
        public string maturityType;
        public double rate;
        public int sequence;
 
        public string MaturityType
        {
            get
            {
                return maturityType;
            }
 
        }
 
        public double Rate
        {
            get
            {
                return rate;
            }
 
        }
 
        public int Sequence
        {
            get
            {
                return sequence;
            }
        }
    }
}


Regards,
Kishan G K
Kate
Telerik team
 answered on 25 Jul 2011
1 answer
131 views
Hello-

I'm trying to remove the dotted line inserted on the active state of an item in a listbox. I've isolate the class to:

.RadListBox

 

.rlbGroup .rlbActive

 

{

 

border: 1px dotted #555;

 

 

padding: 1px 4px;

 

}


but making changes to this or any surrounding class seems to have no effect. Is there a way to get rid of this dotted line? I've search the entire solution for any other references to dotted borders and found only this.


Images attached for reference

Shinu
Top achievements
Rank 2
 answered on 25 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?