Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
229 views

Attached error is coming while i am trying to upload a image via image manager. This is only happening when image name contains special characters.

The error message is not very user friendly. Is ther something i am doing wrong or its a issue with RAd Editor.

Please let me know if somebody have experienced the same.

Rumen
Telerik team
 answered on 08 Jun 2010
4 answers
391 views
Hi,

In my current project, I have a RadGrid having 2 CheckBoxes similar to the following:


The code is given as follows:

ASPX
<body> 
    <form id="form1" runat="server"> 
    <div> 
        <telerik:RadScriptManager ID="radScriptManager" runat="server" /> 
        <telerik:RadGrid ID="radGrid" AutoGenerateColumns="false" AllowMultiRowEdit="true" AllowPaging="true" AllowSorting="true" PageSize="10" OnNeedDataSource="radGrid_NeedDataSource" OnPreRender="radGrid_PreRender" runat="server"> 
            <ClientSettings> 
                <Scrolling UseStaticHeaders="true" /> 
            </ClientSettings> 
            <PagerStyle Mode="NumericPages" /> 
            <MasterTableView DataKeyNames="Name" EditMode="InPlace" TableLayout="Fixed"> 
                <Columns> 
                    <telerik:GridBoundColumn DataField="Name" DataType="System.String" HeaderText="Name" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="true" ReadOnly="true" UniqueName="Name" /> 
                    <telerik:GridCheckBoxColumn DataField="Select1" DataType="System.Boolean" HeaderText="Select1" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false" ReadOnly="false" UniqueName="Select1" /> 
                    <telerik:GridCheckBoxColumn DataField="Select2" DataType="System.Boolean" HeaderText="Select2" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" AllowSorting="false" ReadOnly="false" UniqueName="Select2" /> 
                </Columns> 
            </MasterTableView> 
        </telerik:RadGrid>     
    </div> 
    </form> 
</body> 

C#
    public partial class RadGridWithCheckBoxes : System.Web.UI.Page 
    { 
        private List<Data> _data; 
 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
            if (!IsPostBack) 
            { 
                this._data = Data.Load(); 
                Session["DATA"] = this._data; 
            } 
            else 
            { 
                this._data = (List<Data>)Session["DATA"]; 
            } 
        } 
 
        protected void radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e) 
        { 
            this.radGrid.DataSource = this._data; 
        } 
 
        protected void radGrid_PreRender(object sender, System.EventArgs e) 
        { 
            foreach (GridDataItem item in this.radGrid.Items) 
            { 
                item.Edit = true; 
            } 
            this.radGrid.Rebind(); 
        } 
    } 
 
    public class Data 
    { 
        public string Name { get; set; } 
        public bool Select1 { get; set; } 
        public bool Select2 { get; set; } 
 
        public Data(string name, bool select1, bool select2) 
        { 
            Name = name; 
            Select1 = select1; 
            Select2 = select2; 
        } 
 
        public static List<Data> Load() 
        { 
            List<Data> data = new List<Data>(); 
            for (int i = 0; i < 25; i++) 
            { 
                data.Add(new Data(String.Format("Data{0}", i), true, false)); 
            } 
            return data; 
        } 
    } 

As soon as a checkbox in the grid is checked or unchecked, I would like to save the value back into the data object.

Therefore, the sorting and paging will always display the values correctly.

Can you please show me how to do this?

Regards,
Herman Gouw
Veli
Telerik team
 answered on 08 Jun 2010
1 answer
95 views
One of our clients has an issue with image and document management in the editor, I have attached a screenshot which demonstrates the issue. This happens in both IE8, Firefox and Chrome for them. I have the exact same version of IE8 however, and it works fine on my end. Firefox and Chrome also work for me

Does anyone know what may cause this issue? Could it be a port or security setting?

Best,

Evan
Rumen
Telerik team
 answered on 08 Jun 2010
1 answer
110 views
Hi,
    I find that if I create page with RadControl, the page size will be very larger, even though a few controls on it, the size will be reach to 1M or more.

    Why??????????
Sebastian
Telerik team
 answered on 08 Jun 2010
1 answer
178 views
Hello,
I have a situation where I need to format decimal numbers in a grid to Feet and Inches.  ie: 2.5 = 2' 6" I have an extension written to the decimal type that takes care of this, and it works fine.  However, now we are getting into wanting to sort, and sum, etc.. I implemented custom aggregates that work fine, but the code is getting more and more convoluted.  I am taking a step back, and it seems that if I could just implement a custom IFormatProvider and use the formatting within the grid control DataFormatString that all my problems would go away.  I was thinking something like DataFormatString="fi{0}" and within my format provider, I could check that it starts with "fi" and format it the correct way. 

Is this even possible, or am I barking up the wrong tree?

Thanks
Lance
Yavor
Telerik team
 answered on 08 Jun 2010
1 answer
83 views
Is there a Telerik skin that matches any Sharepoint 2010 skins/themes? And/Or is there a way that I can dynamically change the Telerik control skin to match the current Sharepoint skin?
Vasil Yordanov
Telerik team
 answered on 08 Jun 2010
1 answer
227 views
Hi, I have a radupload inside a <div> container on my page.  The control always defaults to the left side even though I set the text-align and float properties to "right" in the div as well as in the control.  I need this control to be on the right side of the div.  Please help me with this since it is driving me crazy!!!

Thanks,
Manuel
Shinu
Top achievements
Rank 2
 answered on 08 Jun 2010
1 answer
120 views
Fairly basic question, but one that I have not been able to find the answer to.

I have a page in which I need to set the OnRequestStart of the RadAjaxManager event handler from the client side based on other functions on the page.  I can easily get the reference to the manager on the client; however setting the event handler does not seem to be available?  Is this true?  If not (I hope) what is the correct method?
Nikolay Rusev
Telerik team
 answered on 08 Jun 2010
6 answers
275 views
Okay, so this seems really strange to me.  I've got a RadNumericTextBox.  I have a client-side Javascript function that gets its value using this line...

            var orderTotal = $find('<%= OrderTotal.ClientID %>').get_value();

...for use in some client-side stuff.  This works fine.

However, occasionally the value of this RadNumericTextBox is changed through a CallBack, with the change being made from the Code-Behind.  The value of the RadNumericTextBox changes in the browser, and everything seems to work fine there too.

BUT if I then call the Javascript function again, to get the value, it gives me the old value, as if the CallBack had never been made and the value of the RadNumericTextBox had never been changed.  What is going on?

I need to always be pulling the proper, current value of the RadNumericTextBox with my Javascript function.

Thanks!


Maria Ilieva
Telerik team
 answered on 08 Jun 2010
2 answers
176 views
Hello,

I have a strange situation maybe you can help.

I have a custom control that contains three RadComboBoxes. They have their width set to 60px. In Mozzila and IE 8 they show up just fine , but in Chrome , the Input control has bigger width as you can see from the attached images. I have no custom skin .

<div runat="server" id="ContainerDiv"> 
    <telerik:RadComboBox ID="cbYear" runat="server" Height="200px" Width="60px" 
                        DropDownWidth="60px"             
                        OnClientLoad="cbYear_Loaded" 
                        OnClientSelectedIndexChanged="cbYear_SelectedIndexChanged"                        
                        OnClientTextChange="cb_OnClientTextChange" 
                        CausesValidation="false" MarkFirstMatch="false" AllowCustomText="false"  > 
 
    </telerik:RadComboBox> 
    <telerik:RadComboBox ID="cbMonth" runat="server" Height="200px" Width="60px" 
                        DropDownWidth="60px"   
                        OnClientSelectedIndexChanged="cbMonth_SelectedIndexChanged" 
                        OnClientTextChange="cb_OnClientTextChange" 
                        CausesValidation="false" MarkFirstMatch="false" AllowCustomText="false" > 
                        <Items> 
                            <telerik:RadComboBoxItem Text="" Value="00" /> 
                        </Items> 
    </telerik:RadComboBox> 
    <telerik:RadComboBox ID="cbDay" runat="server" Height="200px" Width="60px" 
                        DropDownWidth="60px" HighlightTemplatedItems="true" 
                        EnableLoadOnDemand="false" CausesValidation="false"  
                        OnClientSelectedIndexChanged="cbDay_SelectedIndexChanged" 
                        OnClientTextChange="cb_OnClientTextChange"    
                        OnClientLoad="cbDay_Loaded"                     
                        MarkFirstMatch="false" AllowCustomText="false"> 
                        <Items> 
                            <telerik:RadComboBoxItem Text="" Value="00" /> 
                        </Items> 
    </telerik:RadComboBox> 
</div> 

Please advise on this situation.

Thank you
Bogdan Cucosel
Top achievements
Rank 1
 answered on 08 Jun 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?