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

I getting problem to set indian currency for in RadNumericTextBox

Example : i have amount 5000000.00( Fifty lakh)

I need in radnumeric text box like     -  50,00,000.00 (i need comma(,)  three digits before decimal and after that every two digits and after decimal it should take 2 points)



Thanks
Manish
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
1 answer
107 views
Hi,

I have 2 grids. I am unable to drag and drop cell (1) of the selected row in grid 1 to  cell (1) in grid 2.

In mouse down, how to I get the row selected. Current row and the selected row gives only the old row position. I want to get the new row position. How do I get that?

Also can someone give an example to dragsrop one cell from a grid to another cell in a different grid?

Thanks.
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
5 answers
469 views
HI
I am using checklist filtering in RagGrid. But I want to change filter button icon for active filter and default state.
Is it possible to have the default state of the dropdown icon to be an arrow, or the standard downward pointing triangle, and then if the filter is active, meaning the user has filtered the list, then change from arrow to funnel like you have now?
If yes, then how can i do this. please see an example.

Thanks

Princy
Top achievements
Rank 2
 answered on 11 Jul 2014
7 answers
535 views
Hai All,


i have a radwindow , whose content is loading from an aspx page, in that i have a norma textboxes and buttons when i click a save button in my radwindow page
i am showing radlalert using radajaxmanager i.e
RadAjaxManager1.ResponseScripts.Add(@"radalert('my message !', 330, 210);");
instead of radajaxmanger1 we even used radwindowmanager1 , propblem is when we run our application in internet explorer we get below exception in telerik.web.ui.scriptwebresource.axd
SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference 
Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line 
 if(d&&d.tagName.toLowerCase()!="body")

please help!!
Shinu
Top achievements
Rank 2
 answered on 11 Jul 2014
1 answer
87 views
Is it possible to set the font styling of a Radbutton clientside?  So far I've not been able to alter a dynamically added radbutton clientside
Erik
Top achievements
Rank 1
 answered on 11 Jul 2014
2 answers
144 views
Dear Telerik,
    Can we have a small demo source code regarding the following .
1.RadGrid (1 label,1 comboBox) contains DetailTableView with 1 combobox and 1 Textbox inside ItemTemplate.
2.On clicking SAVE button(Outside of grid). It must save all the selected vales of radGrid and   DetailTableView to any Dataset.

*NOTE: Values of the DetailTableView SHOULD NOT clear on collapsing.
Angel Petrov
Telerik team
 answered on 10 Jul 2014
12 answers
146 views
Hi,

I am using tabstrip as a wizard.

I have previous and next buttons on my page and I load a user control in the multipage for each tabstrip.
When I navigate with the previous button. I have some binding controls on my pages which get bound when i pass the data for that particular tab.
WHen I am using the previous button it is trying to render all the tabs. SInce I don't pass data for all the tabs my code is not able to bind some controls.
Below is my code and html.

Let me know what am I doing wrong. I suspect I am not using the LoadStep() function call at the right place but I am not able to figure out the right event.

<table cellpadding="0" cellspacing="0" width="100%">
        <tr>
            <td>
                <telerik:RadTabStrip ID="rtsEnrollment" runat="server" MultiPageID="rmpEnrollment"
                    OnTabClick="rtsEnrollment_TabClick" SelectedIndex="0" CausesValidation="true"
                    Align="Justify" AutoPostBack="true">
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="rmpEnrollment" runat="server" SelectedIndex="0" OnPageViewCreated="rmpEnrollment_PageViewCreated"
                    CssClass="multiPage">
                </telerik:RadMultiPage>
            </td>
        </tr>
       <tr>
            <td class="enrollmentButton">
                <telerik:RadButton runat="server" ID="PreviousButton" Text="<< Previous" OnClick="PreviousButton_Click"
                    AutoPostBack="true" CausesValidation="false">
                </telerik:RadButton>
                <telerik:RadButton runat="server" ID="ContinueButton" Text="Next >>" CausesValidation="true"
                    AutoPostBack="true" OnClick="ContinueButton_Click">
                </telerik:RadButton>
            </td>
        </tr>
    </table>

public partial class enrollment_theCompany_EDCP : EnrollmentBasePage
{
    protected void LoadStep()
    {
        string tabName = rtsEnrollment.SelectedTab.Text;
        RadTab tab = rtsEnrollment.FindTabByText(tabName);
 
        switch (rtsEnrollment.SelectedTab.Text)
        {
            case "Deferral Elections":
                LoadSalaryElections(tab);
                break;
 
            case "Distribution Elections":
                LoadDistributionElections(tab);
                break;
 
            case "Fund Allocations":
                RadPageView pvFundAllocations = (RadPageView)tab.PageView.FindControl("fundAllocations");
                ucFundBucket ucFundAllocations = (ucFundBucket)pvFundAllocations.FindControl("ucFundAllocations");
                ucFundAllocations.LoadPlan();
                break;
 
            case "Enrollment Summary":
                // commit data
                RadPageView pvEnrollmentSummary = (RadPageView)tab.PageView.FindControl("enrollmentSummary");
                enrollment_ucEnrollmentSummary ucEnrollmentSummary = (enrollment_ucEnrollmentSummary)pvEnrollmentSummary.FindControl("ucEnrollmentSummary");
                _enrollment.CommitEnrollmentData(DeferralSources());
                break;
        }
    }
 
    protected override void UpdateStep(int nextStepIndex)
    {       
            string tabName = rtsEnrollment.SelectedTab.Text;
            RadTab tab = rtsEnrollment.FindTabByText(tabName);
            switch (tabName)
            {
                case "Deferral Elections":
                    RadPageView pvDeferralElections = (RadPageView)tab.PageView.FindControl("deferralElections");
                    enrollment_theCompany_deferralElections ucDeferralElections = (enrollment_theCompany_deferralElections)pvDeferralElections.FindControl("ucDeferralElections");
                    ucDeferralElections.SaveForEnrollment(_enrollment);
                    break;
 
                case "Distribution Elections":
                    RadPageView pvPaymentOptions = (RadPageView)tab.PageView.FindControl("paymentOptions");
                    enrollment_theCompany_paymentOptions ucPaymentOptions = (enrollment_theCompany_paymentOptions)pvPaymentOptions.FindControl("ucPaymentOptions");
                    ucPaymentOptions.PlanPeriodName = _enrollment.PlanPeriodName;
                    ucPaymentOptions.SaveForEnrollment(_enrollment);
                    break;
 
                case "Fund Allocations":
                    RadPageView pvFundAllocations = (RadPageView)tab.PageView.FindControl("fundAllocations");
                    ucFundBucket ucFundAllocations = (ucFundBucket)pvFundAllocations.FindControl("ucFundAllocations");
                    ucFundAllocations.SaveAllocationForEnrollment(_enrollment);
                    break;
 
                case "Enrollment Summary":
                    break;
            }
    }
 
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            AddTab("Deferral Elections", true);
 
            RadPageView pageView = new RadPageView();
            pageView.ID = "DeferralElections";
            rmpEnrollment.PageViews.Add(pageView);
 
            AddTab("Distribution Elections", false);
            AddTab("Fund Allocations", false);
            AddTab("Enrollment Summary", false);
 
            LoadStep();
        }
    }
 
    #region UI Events
 
    protected void rmpEnrollment_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        Control pageViewContents = new Control();
        switch (e.PageView.ID)
        {
            case "DeferralElections":
                pageViewContents = LoadControl("~/enrollment/thecompany/deferralElections.ascx");
                pageViewContents.ID = "uc" + e.PageView.ID ;
                break;
            case "PaymentOptions":
                pageViewContents = LoadControl("~/enrollment/thecompany/paymentOptions.ascx");
                pageViewContents.ID = "uc" + e.PageView.ID;
                break;
            case "FundAllocations":
                pageViewContents = LoadControl("~/fund/ucFundbucket.ascx");
                pageViewContents.ID = "uc" + e.PageView.ID;
                break;
            case "EnrollmentSummary":
                pageViewContents = LoadControl("~/enrollment/ucEnrollmentSummary.ascx");
                pageViewContents.ID = "uc" + e.PageView.ID;
                break;
        }
 
        e.PageView.Controls.Add(pageViewContents);
    }
 
    protected void PreviousButton_Click(object sender, EventArgs e)
    {
        GoToPreviousTab();
        GoToPreviousPageView();
        LoadStep();        
    }
 
    protected void ContinueButton_Click(object sender, EventArgs e)
    {
        UpdateStep();       
        GoToNextTab();
        GoToNextPageView();
        LoadStep();        
    }
     
    #endregion
 
    #region Private Events
     
    private void GoToNextTab()
    {
        string tabName = rtsEnrollment.SelectedTab.Text;
 
        switch (tabName)
        {
            case "Deferral Elections":
                RadTab paymentOptionsTab = rtsEnrollment.FindTabByText("Distribution Elections");
                rtsEnrollment.ValidationGroup = "PaymentOptionsTabValidationGroup";
                paymentOptionsTab.Enabled = true;
                paymentOptionsTab.Selected = true;
                break;
 
            case "Distribution Elections":
                RadTab fundAllocationsTab = rtsEnrollment.FindTabByText("Fund Allocations");
                fundAllocationsTab.Enabled = true;
                fundAllocationsTab.Selected = true;
                break;
 
            case "Fund Allocations":
                RadTab enrollmentSummaryTab = rtsEnrollment.FindTabByText("Enrollment Summary");
                enrollmentSummaryTab.Enabled = true;
                enrollmentSummaryTab.Selected = true;
                break;
 
            case "Enrollment Summary":
                break;
        }       
    }
 
    private void GoToNextPageView()
    {
        string tabName = rtsEnrollment.SelectedTab.Text;
 
        switch (tabName)
        {
            case "Deferral Elections":
                break;
 
            case "Distribution Elections":
                RadPageView paymentOptionsTabPageView = rmpEnrollment.FindPageViewByID("PaymentOptions");
                if (paymentOptionsTabPageView == null)
                {
                    paymentOptionsTabPageView = new RadPageView();
                    paymentOptionsTabPageView.ID = "PaymentOptions";
                    rmpEnrollment.PageViews.Add(paymentOptionsTabPageView);
                }
                paymentOptionsTabPageView.Selected = true;
                break;
 
            case "Fund Allocations":
                RadPageView fundAllocationsTabPageView = rmpEnrollment.FindPageViewByID("FundAllocations");
                if (fundAllocationsTabPageView == null)
                {
                    fundAllocationsTabPageView = new RadPageView();
                    fundAllocationsTabPageView.ID = "FundAllocations";
                    rmpEnrollment.PageViews.Add(fundAllocationsTabPageView);
                }
                fundAllocationsTabPageView.Selected = true;
                break;
 
            case "Enrollment Summary":
                RadPageView enrollmentSummaryTabPageView = rmpEnrollment.FindPageViewByID("EnrollmentSummary");
                if (enrollmentSummaryTabPageView == null)
                {
                    enrollmentSummaryTabPageView = new RadPageView();
                    enrollmentSummaryTabPageView.ID = "EnrollmentSummary";
                    rmpEnrollment.PageViews.Add(enrollmentSummaryTabPageView);
                }
                enrollmentSummaryTabPageView.Selected = true;
                break;
        }
    }
 
    private void GoToPreviousTab()
    {
        string tabName = rtsEnrollment.SelectedTab.Text;
 
        switch (tabName)
        {
            case "Deferral Elections":
                break;
 
            case "Distribution Elections":
                RadTab deferralElectionsTab = rtsEnrollment.FindTabByText("Deferral Elections");
                rtsEnrollment.ValidationGroup = "DeferralElectionsTabValidationGroup";
                deferralElectionsTab.Enabled = true;
                deferralElectionsTab.Selected = true;
                break;
 
            case "Fund Allocations":
                RadTab paymentOptionsTab = rtsEnrollment.FindTabByText("Distribution Elections");
                rtsEnrollment.ValidationGroup = "PaymentOptionsTabValidationGroup";
                paymentOptionsTab.Enabled = true;
                paymentOptionsTab.Selected = true;
                break;
 
            case "Enrollment Summary":
                RadTab FundAllocationsTab = rtsEnrollment.FindTabByText("Fund Allocations");
                FundAllocationsTab.Enabled = true;
                FundAllocationsTab.Selected = true;
                break;
        }
    }
 
    private void GoToPreviousPageView()
    {
        string tabName = rtsEnrollment.SelectedTab.Text;
 
        switch (tabName)
        {
            case "Deferral Elections":
                RadPageView deferralElectionsTabPageView = rmpEnrollment.FindPageViewByID("DeferralElections");
                if (deferralElectionsTabPageView == null)
                {
                    deferralElectionsTabPageView = new RadPageView();
                    deferralElectionsTabPageView.ID = "DeferralElections";
                    rmpEnrollment.PageViews.Add(deferralElectionsTabPageView);
                }
                deferralElectionsTabPageView.Selected = true;
                break;
 
            case "Distribution Elections":
                RadPageView paymentOptionsTabPageView = rmpEnrollment.FindPageViewByID("PaymentOptions");
                if (paymentOptionsTabPageView == null)
                {
                    paymentOptionsTabPageView = new RadPageView();
                    paymentOptionsTabPageView.ID = "PaymentOptions";
                    rmpEnrollment.PageViews.Add(paymentOptionsTabPageView);
                }
                paymentOptionsTabPageView.Selected = true;
                break;
 
            case "Fund Allocations":
                RadPageView fundAllocationsTabPageView = rmpEnrollment.FindPageViewByID("FundAllocations");
                if (fundAllocationsTabPageView == null)
                {
                    fundAllocationsTabPageView = new RadPageView();
                    fundAllocationsTabPageView.ID = "FundAllocations";
                    rmpEnrollment.PageViews.Add(fundAllocationsTabPageView);
                }
                fundAllocationsTabPageView.Selected = true;
                break;
 
            case "Enrollment Summary":
                break;
        }
    }
     
    private void AddTab(string tabName, bool enabled)
    {
        RadTab tab = new RadTab(tabName);
 
        tab.Enabled = enabled;
 
        switch (tab.Text)
        {
            case "Deferral Elections":
                break;
            case "Distribution Elections":
                break;
            case "Fund Allocations":
                break;
            case "Enrollment Summary":
                //tab.ImageUrl = "Images/4_normal.png";
                //tab.SelectedImageUrl = "Images/4_active.png";
                //tab.DisabledImageUrl = "Images/4_disable.png";
                break;
            default:
                break;
        }
 
        rtsEnrollment.Tabs.Add(tab);
    }
 
    private void LoadSalaryElections(RadTab tab)
    {
        RadPageView pvDeferralElections = (RadPageView)tab.PageView.FindControl("deferralElections");
        enrollment_theCompany_deferralElections ucDeferralElections = (enrollment_theCompany_deferralElections)pvDeferralElections.FindControl("ucDeferralElections");
        ucDeferralElections.PlanPeriodName = _enrollment.PlanPeriodName;
        ucDeferralElections.NextPlanPeriodName = _enrollment.NextPlanPeriodName;
        ucDeferralElections.LoadDeferralElections(_enrollment);       
    }
 
     private void LoadDistributionElections(RadTab tab)
     {
         RadPageView pvPaymentOptions = (RadPageView)tab.PageView.FindControl("paymentOptions");
         enrollment_theCompany_paymentOptions ucPaymentOptions = (enrollment_theCompany_paymentOptions)pvPaymentOptions.FindControl("ucPaymentOptions");        
          
         ucPaymentOptions.LoadPaymentOptions(_enrollment);
     }   
    #endregion
}
MBEN
Top achievements
Rank 2
Veteran
 answered on 10 Jul 2014
2 answers
347 views
Does anyone know if there is a way to get a Mutually Exclusive Checkbox with this listbox control. Like the one available thru the Ajax Toolkit?
William
Top achievements
Rank 1
 answered on 10 Jul 2014
1 answer
132 views
Hi,
I was using Telerik RadSplitter and in one of the pane I have both horizontal and scrollbars set to visible always. The scrollbars are appearing in Chrome without any issues. But in IE I can see vertical one but not the horizontal one. It doesn't seem like compatibility related issue as I can view the scroll bar either in zoom plus mode. But I can't ask the website viewers to do the same whenever they visit this web page.

Below is my aspx code:

<telerik:RadSplitter ID="RadSplitter" runat="server" Height="100%"
        Orientation="Vertical" VisibleDuringInit="false" BorderWidth="0px">
        <telerik:RadPane ID="RadPane" runat="server" BorderWidth="0px" Scrolling="Both"
            Width="100%" Orientation="HorizontalTop">

Can anyone help me to resolve this issue?

Thank you.

Vessy
Telerik team
 answered on 10 Jul 2014
1 answer
117 views
Hi all, literally as the title says, I need to change column header(s) during the grid export without changing it on the UI...

I've tried loads of stuff I've found by searching both here and google...

I would have thought something like this would work : -



        Private Sub FrameworkGrid_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles Me.ItemCommand

            If e.CommandName.StartsWith("Export") Then

                For Each item In Me.Items

                    If TypeOf item Is GridHeaderItem Then

                        For Each cell As TableCell In CType(item, GridHeaderItem).Cells
                            StripTags(cell.Text)
                        Next

                    End If

                Next


            End If

        End Sub


But there never is a GridHeaderItem when doing that... It's just all the normal DataGridItems in the grid instead...

Basically, we've appended a load of css styling into some of the column headers and obviously when exporting we want to remove that and put it back to just plain text... I've got a function to strip the HTML using RegEx no problem ('StripTags') but I can't even get it that far...

Any suggestions?
Adam
Top achievements
Rank 1
 answered on 10 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?