Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
202 views
Hi

If I resize a column and then click on a row, the postback occurs but the column new size is lost.

Can you please help me with this issue.

Thank you
Michael

ASPX
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" /> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        <Scripts> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> 
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> 
        </Scripts> 
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server"> 
    </telerik:RadSkinManager> 
    <div> 
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowMultiRowEdit="True" AllowMultiRowSelection="True" 
            AllowPaging="True" GridLines="None"> 
            <MasterTableView> 
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
            </MasterTableView> 
            <ClientSettings EnablePostBackOnRowClick="True"> 
                <Selecting AllowRowSelect="True" /> 
                <Resizing AllowColumnResize="True" /> 
            </ClientSettings> 
        </telerik:RadGrid> 
    </div> 
    </form> 
</body> 
</html> 
 

VB
Imports Telerik.Web.UI 
 
Partial Class _Default 
    Inherits System.Web.UI.Page 
 
    Protected Sub RadGrid1_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource 
        Dim DT As New Data.DataTable 
        DT.Columns.Add("ID") 
        DT.Columns.Add("Value") 
        DT.Rows.Add(New Object() {1, "test1"}) 
        DT.Rows.Add(New Object() {2, "test2"}) 
        DT.Rows.Add(New Object() {3, "test3"}) 
        DT.Rows.Add(New Object() {4, "test4"}) 
 
        RadGrid1.DataSource = DT 
    End Sub 
 
End Class 

Michael Melloff
Top achievements
Rank 2
 answered on 12 Jan 2010
1 answer
118 views
Hello all:

I have a rather complex ASP.NET web site that I built using several Telerik components from an earlier release (I do not have the version in front of me right now). I want to install the latest version of the toolkit as I need some of the functionality (like ExportToPdf )the new version provides, but I am wondering how this will affect the web site built with the older version? Will the install just overwrite the older toolkit with the new files, and then the website will sue the new components?

Thanks for any and all input.

John.
Poul Henningsen
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
219 views
In the radgrid, filter columns are enabled. For student last name column if I enter D'Souza or D' , 0 records are returned.  How can the apostrophe be taken into account.

As per the thread, single quote should be escaped automatically for version 2009.2.86. I am also using the sameversion of radcontrols.

Am I missing something?
Pavel
Telerik team
 answered on 12 Jan 2010
1 answer
261 views
I have a problem to access textbox in edit form user control RadGrid in case use 'Javascript'.
 
Error on javascript show me that 'Reference object is null' or 'getElementID(...)'

How do I fix it out ?
Anyone help me,please.

Thank you,
NaPann

Princy
Top achievements
Rank 2
 answered on 12 Jan 2010
1 answer
144 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
187 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
193 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
203 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
170 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
249 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?