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

I am using a Radnumerictextbox with this code on front side and I am setting its parameters on the codebehind according to selection,
On aspx:

<telerik:RadNumericTextBox ShowSpinButtons="true" NumberFormat-DecimalDigits="4"  IncrementSettings-InterceptArrowKeys="true"

 

 

IncrementSettings-InterceptMouseWheel="true" Label="" runat="server" ID="txtPrice"

 

 

Width="80px">

 

 

</telerik:RadNumericTextBox>


On .cs

txtPrice.MinValue = 1.2575
txtPrice.MaxValue= 1.4575
txtPrice.IncrementSettings.Step =0.0005

The problem is while using spin buttons to change values , it show the decimal part more than i set which was 4.

For instance ; when the value is set to 1.2580 it shows 1.257999999999. After clickling up spin button it makes it 1.2585 and after some more clicking on some other values ist shows this 999999 part of decimal thing.

Is this a bug of the component ? if so, what can i do to fix this.

 

Pavel
Telerik team
 answered on 12 Jan 2010
4 answers
178 views
Hello,
I am creating a custom webpart using telerik combobox . And i have used Radajaxmanager to avoid postback on the selectedindexchanged event of the combobox.But when i run the webpart this event works fine but postback happens in the first attempt.But from second attempt onwards ajax works. Please tell me the solution to avoid this postback in the first attempt of change event of combobox.

Please find the below code  for your reference.


   protected override void CreateChildControls()
        {
            base.CreateChildControls();
            try
            {
                _panel = new Panel();
                _panel.ID = "panel";

                _tblSearch = new Table();
                _tblSearch.ID = "TblSearchCriteria";
                _tblSearch.CssClass = "ms-formtable";
                _tblSearch.Attributes.Add("border", "0");
                _tblSearch.Attributes.Add("width", "100%");
                _tblSearch.CellPadding = 0;
                _tblSearch.CellSpacing = 0;
                _tblSearch.Style.Add("margin-top", "8");



         _cobSearchCriteria = new RadComboBox();
                _cobSearchCriteria.ID = "cobSearchCriteria";
                _cobSearchCriteria.Width = Unit.Pixel(500);
                _cobSearchCriteria.Skin = "WebBlue";
                _cobSearchCriteria.MarkFirstMatch = false;
                _cobSearchCriteria.AutoPostBack = true;
                _cobSearchCriteria.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(_cobSearchCriteria_SelectedIndexChanged);

        _tblSearch.Controls.Add(_cobSearchCriteria);

        _panel.Controls.Add(_tblSearch);


              am = new RadAjaxManager();
                    am.ID = "RadAjaxManager1";
                    Controls.Add(am);
                    Page.Items.Add(typeof(RadAjaxManager), am);
                    lp = new RadAjaxLoadingPanel();
                    lp.ID = "RadAjaxLoadingPanel1";
                    //  lp.IsSticky = true; Check this property for the position of Loading Panel..
                    Controls.Add(lp);
                    lp.Transparency = 50;

                    img = new System.Web.UI.WebControls.Image();
                    img.ID = "Image1";
                    lp.Controls.Add(img);
                    img.AlternateText = "Loading...";
                    img.ImageUrl = RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif");
                    img.Style.Add("border", "0px");

                    am.DefaultLoadingPanelID = lp.ID;

                    // Adding Controls to RadAjax Manager
                    am.AjaxSettings.AddAjaxSetting(_cobPredPrijemce, _panel);
                    // Done Adding Controls to RadAjax Manager


    }


protected void _cobPredPrijemce_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        {
            // throw new NotImplementedException();
            //am.AjaxSettings.AddAjaxSetting(_cobPredPrijemce, _panel);
            _tblUpdate.Visible = true;
            _tblFyzická.Visible = false;
            _tblPodnikající.Visible = false;
            _tblOVM.Visible = false;
            _tblPrávnická.Visible = false;
            _tblSearch.Visible = true;

        }


Kindly revert asap. Thanking you in Advance.

Regards,
Martin

Jana
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
187 views
Error Creating Control - 'RadAjaxPanel'
Duplicate component name 'RadAjaxPanel'. Component names must be unique and case-insensitive.

How to solve this error on the Designer view?
Johny
Top achievements
Rank 1
 answered on 12 Jan 2010
2 answers
196 views
Hi.

Please find the two attached snapshots of WebGrid control from Intersoft WebUI Control Library.
We're migrating from Intersoft to Telerik Library to get the Keyboard support feature requested by customers.
The question is regarding the two features shown from WebUI:
- to show one column as a hidden section (not load-on-demand) to be available on clicking the arrow (as shown in PreviewRow_WebUI.png), and
- to show a grouping of the headers with a TopHeader sitting on top of two SubHeaders in Grid.

Can this behaviour somehow be achieved in Telerik RadGrid?
If it is already supported, please tell me where I can find it or how ti can be done. And if not, customizations are most welcome.

Thanks and Regards,
Veenu Munjal
Princy
Top achievements
Rank 2
 answered on 12 Jan 2010
3 answers
163 views
Hello,

i've created a vertical menu by showing and hiding divs using JQuery. I have wrapped all the divs in a RadAjax panel. The jquery script is written in Page load to show and hide the divs. After the panel loads the scripts are not fired and all the divs are rendered visible. So what should i do?

Also if i'm in the fourth menu, after the ajax loads the page should show the fourth div hiding all the other divs. How to do that?

Thank You.
NLV
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
243 views
Hi, I'm wondering if there is a way to allow only Insert and Delete actions in a RADGrid when using EditMode="InPlace".  I have a GridEditCommandColumn in the grid, but I really only want users to be able to Insert/Delete records in this grid, not add.  Any ideas?

Thanks in advance,
Andrew
Shinu
Top achievements
Rank 2
 answered on 12 Jan 2010
1 answer
144 views
Is this at all possible? I want to have a common loading panel, that covers my entire page, and is shown no matter what ajaxcontrolid is issuing the call. I know I can do it by creating an ASP panel around the entire page, but that would also transmit all the data within that panel... which is exactly what I'm trying to avoid. I want to have Control A update Control B, and Control C update Control D, etc. but any of these minor updates need to show a loading panel over the entire page.
Princy
Top achievements
Rank 2
 answered on 12 Jan 2010
2 answers
132 views
I would like to remove the New folder, Delete and Upload incons from the Image Manager.

I have accessed the EditorDialogs using the ExternalDialogsPath but can't find these icons in ImageManager.ascx.

Your help would be much appreciated.

Thanking you in anticipation.

Roger


Roger Withnell
Top achievements
Rank 1
 answered on 12 Jan 2010
8 answers
223 views
Hi,

I am using a combo box with an item template to display a list of checkboxes and need to add new combo items on the client - how can I create new items with the checkbox displayed.

Thanks in advance,
 
Michael

LeBear
Top achievements
Rank 1
 answered on 11 Jan 2010
2 answers
132 views
Hi, anybody could help me, i want change text of radgrid popup buton close tooltip, any idea?? thx
Jhonattan
Top achievements
Rank 2
 answered on 11 Jan 2010
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?