Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
131 views
I've spent many hours trying to reduce page size by removing redundant spaces, tabs, and EOL marks. It seems no matter what I do, Telerik JavaScripts are going to cough somewhere. Is there a published bit of code which can be placed in the Render method which will reduce page size without adversely affecting scripts?

Please do not refer me to CodeProject, StackOverflow, or other googled resources unless you're sure something works. Many blogs and forum postings imply have wrong and/or incomplete info. Regular expressions are often cited but frequently wrong. I'm looking for code that people are actually using with Telerik RadControls for ASP.NET Ajax. With this, I and others may be able to improve upon it - but we need a better base than some unknown code that someone simply found somewhere on the net.

On the flip-side of this, code in the Render method must be optimized. It doesn't do much good to reduce network through put and browser rendering time if we're going to spend more time on the server whittling down some small number of bytes. The best that I can shave off so far is about 30k from pages of less than 200k in size. It's not worth it to lose time with a 15% size reduction.

Thanks.
Pavlina
Telerik team
 answered on 08 Mar 2011
2 answers
180 views
Hello! I have been trying to get data bound to a textbox nested inside an ItemTemplate to no avail. I have attempted to bind it in code behind by looping through items in the list, as well as in the ASP and I am coming up with no answers.

As you can see below, I have three cells in the ComboBox, and I have no problems loading the combobox items not bound to asp objects.  The problem is that I am unable to bind values to the nested asp:CheckBox and asp:TextBox.

The text in the section <%#  DataBinder.Eval(Container, "Value")%> is all black, not three tone as is normal in VS2010.
It's almost as one cannot bind data to ASP items in an ItemTemplate.  Is that correct?

Here is the ASP.  If this is possible, what am I doing wrong?

Thanks in advance!

<telerik:RadComboBox runat="server" ID="ddlHardCopies" HighlightTemplatedItems="true" Width="250px" AllowCustomText="True">
    <ItemTemplate>
        <table>
            <tr>
                <td>
                    <asp:checkbox runat="server" ID="chkHardCopy" onclick="stopPropagation(event);" Text='<%# DataBinder.Eval(Container, "Value")%>'/>
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtHardCopyQuantity" onclick="stopPropagation(event);" Width="20px" Text='<%# DataBinder.Eval(Container, "Quantity")%>'/>
                </td>
                <td>
                    <%# DataBinder.Eval(Container, "Text")%>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>
Mike
Top achievements
Rank 1
 answered on 08 Mar 2011
1 answer
101 views
See picture if a long word does not have space it exceeds the border instead of going into 2nd line.   Is this expected?

2010.3.1304.20 IE8
Marin Bratanov
Telerik team
 answered on 08 Mar 2011
1 answer
74 views

Hi,

The ASP.NET List Box control allowed the user to hold down shift then accumulate the selection i.e. select first item, second item then fourth and all items would be selected however in the Telerik ASP.NET AJAX List Box selecting first, second then fourth would select 2-4 and de-select the first item.

Does a setting exist that reverts back the behaviour of the old ASP.NET controls?

Genady Sergeev
Telerik team
 answered on 08 Mar 2011
1 answer
65 views
Hello,

I am using a Usercontrol as my edit form for my radgrid and cannot seem to get its Update button to function properly.

The grid is ajaxified with a radajaxmanager to update itself and has the OnUpdateCommand set to the name of my code-behind function that handles the grid's .UpdateCommand event.

The input button that I put in my usercontrol is shown below.

<asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" />

When clicked, it causes the Ajax loading panel to appear briefly but does not change anything (data or the edit form).  It does not close the edit form the way the Cancel button does, either.

Any idea what I might be missing here?

Mike

Tsvetoslav
Telerik team
 answered on 08 Mar 2011
4 answers
127 views
hello is there a way to add a margin to the editor tool bar when using "PageTop" ?
I don't want it display it at the very top but maybe 100px down from the top.
Thank you
Dobromir
Telerik team
 answered on 08 Mar 2011
11 answers
120 views
Hi there

I'm trying to develop an ascx control in Visual Studio 2008 SP1. I get the 'Fail to create designer' rendering error when I switch to the VS design page. Apparently this is due to the absence of Telerik.Web.Design.dll - am I correct in asssuming this. The trouble is, I'm using the 2010.2.929.35 version of Telerik.Web.UI integrated into DotNetNuke 5.6

My questions are:
1. Is there even such Telerik.Web.Design.dll to match this bundled version of Telerik.Web.UI ?
2. Is the error just cosmetic, or does it actually result in corruption of the designer.vb file in Visual Studio?
3. Am I OK to continue my ascx DNN module despite the error, or is there a download location for the correct version of this Telerik.Web.Design.dll, as it does not appear to be included in any of the DotNetNuke installation downloads?

Thanks very much if you can clarify this for me!

Regards






Helen
Telerik team
 answered on 08 Mar 2011
8 answers
94 views
Can you give me the option to set a CssClass on the detail rows?
Tsvetina
Telerik team
 answered on 08 Mar 2011
1 answer
91 views

User love to cut and paste from here and there. apply and reapply font styles etc.

This continuously leaves residual html, what for the user results in ‘strange behavior’.


Is there some way to clean or prevent this? From the editor except from going in the source?

Stanimir
Telerik team
 answered on 08 Mar 2011
1 answer
76 views
Hi,
    Current version in use  RadControls for ASP.NET AJAX Q3 2010. Noticing issue with number and bullet list in editor, where after enabling number or bullet list for editor text not yet all seen in editor. After saved, content area is showing list outside reserved area of content.


Rumen
Telerik team
 answered on 08 Mar 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?