Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
144 views
Just upgraded my code to the lastest version and I have a detail table with the following code:
<DetailTables>
<telerik:GridTableView runat="server" DataKeyNames="JobID,JobCompleted,OrderCompleted,JobCancelled,Status" DataSourceID="dsJobs" Name="JobDetail" AllowFilteringByColumn="False" ShowHeadersWhenNoRecords="False" AllowSorting="false" ExpandCollapseColumn-Display="false">

It now gives me an error of System.NullReferenceException: Object reference not set to an instance of an object.

I tracked it down to the property of:

ExpandCollapseColumn-Display="false"

If I remove this then it works (although the expand/collapse column appears).  If I set it to ExpandCollapseColumn-Visible="false" it errors again.  It does work on the mastertableview.  I know I can hide it through CSS (but I have a mix-and-match on the same page) or codebehind, but I really don't want to update the ton of pages that this is used on.  I would rather wait for an update if this is a verified error.
Tsvetoslav
Telerik team
 answered on 19 Jun 2012
0 answers
104 views
Hi,

We have enable IIS dynamic compression on our Sitefinity website. We have a separate asp page using a RadlistView control.

It seems that dynamic compression block the page (postbaclk is not taken in consideration / page refresh )

What can we do to enable this compression ?

Thanks

Elsa
Elsane
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
133 views
Hi. I'm using the XmtHttpPanel for the first time. At the moment I have the XmlHttpPanel within a <div id="panelDiv" runat="server">

At the moment I am using callback similar to the first look demo on the Telerik website (ie javascript to set the XmlHttpPanel.value and that then calling code behind).

If I set the panelDiv.visible = false; nothing seems to happen. If I set panel.visible = false; the panel disappears. However, if I then make another click that results in panel.visible=true; I get an error:

    Server Error in '/prototype' Application. 
    -------------------------------------------------------------------------------- 
     Script control 'Async_highlights' is not a registered script control. Script controls must be registered using RegisterScriptControl()
     before calling RegisterScriptDescriptors(). 
    Parameter name: scriptControl


I also have a button separate to the XmlHttlpPanel that I want to also use to switch the panel's visibility. I found problem using .visible but it seems to work using the display attribute.

Can you give any advice about the best way to hide/show an XmlHttpPanel dynamically (I don't care about the content because if the panel is subsequently revealed again the content will be updated).


Slav
Telerik team
 answered on 19 Jun 2012
1 answer
46 views
Hi,
I am trying to load 3 combo boxes using LoadOnDemand (or a similar method that doesnt require post backs).  The pseudo idea is that, the first box contains a list of books, then on selection of a book they get a list of chapter names for that book and they would select a chapter and then finally the third box would populate and contain a list of say paragraphs.

My issue is that when using LoadOnDemand the back end isn't able to receive the value of the previous box.  What would be the best way about doing this?  I understand I could use ajax but it seems really messy to pass it all back as strings to the front end.  I am pretty sure there must be some way to use LoadOnDemand how i require but i just cant seem to find it.

Many Thanks,
Michael


Ivana
Telerik team
 answered on 19 Jun 2012
1 answer
38 views

When using IE8 in compatability mode, the RadUpload control "select" button appears hidden when the InputSize property is increased to a value above 55.  How can I fix this?

Here is the code on my simple test page.  See attached for display results.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="test" %>

 

<%

 

@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

 

<%

 

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

 

<!

 

 

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>

 

</

 

 

head>

 

<

 

 

body>

 

 

 

<form id="form1" runat="server">

 

 

 

<ajaxToolkit:ToolkitScriptManager runat="Server" EnablePartialRendering="true" ID="ScriptManager1" />

 

 

RadUpload with InputSize = 65...

 

<br />

 

 

 

<telerik:RadUpload

 

 

 

ID="RadUpload0"

 

 

 

runat="server"

 

 

 

MaxFileInputsCount="1"

 

 

 

InitialFileInputsCount="1"

 

 

 

ControlObjectsVisibility="None"

 

 

 

CssClass=""

 

 

 

InputSize="65" />

 

<

 

 

br /><br />

 

RadUpload with InputSize = 50...

 

<br />

 

 

 

<telerik:RadUpload

 

 

 

ID="RadUpload1"

 

 

 

runat="server"

 

 

 

MaxFileInputsCount="1"

 

 

 

InitialFileInputsCount="1"

 

 

 

ControlObjectsVisibility="None"

 

 

 

CssClass=""

 

 

 

InputSize="50" />

 

 

 

</form>

 

</

 

 

body>

 

</

 

 

html>

 

Peter Filipov
Telerik team
 answered on 19 Jun 2012
1 answer
59 views
Hello !

How can I  always start   top of the page after PageIndexChanged in  RadListView and GridView.

I am really appreciate your help.

With BR,
Tin
Galin
Telerik team
 answered on 19 Jun 2012
4 answers
173 views
Hi,

I want to create a template column with an image, like in this example:

<telerik:GridTemplateColumn

HeaderText="test" HeaderStyle-Width="50px" ItemStyle-Width="16px"

UniqueName="test" AllowFiltering="false">

<ItemTemplate>

<asp:Image ID="StatusImage" runat="server" Width="16px" Height="16px"/>

</ItemTemplate>

but I want to create it on server side.

How can I do that?

Thanks.

</telerik:GridTemplateColumn>

Covertix
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
168 views
Hi,

I have a page that uses the RadListView control and a RadDataPager control. The RadListView control holds checkboxes with each item. The checkboxes have been wired to a click event using jQuery (see below). 

$(document).ready(function () {
           //Update the hidden variable with all fieldchoices to be added
            $('#FieldSet1').find("input[type='checkbox']").click(function () {
//do something

});
});
    

However, when I page to another page using the RadDataPager, the checkboxes lose their onclick event AND the checked state. 

Does anyone have any idea how to keep the checkbox wired to the click event, and also how to keep the checkboxes checked?

Thanks
Princy
Top achievements
Rank 2
 answered on 19 Jun 2012
1 answer
139 views
I have a RadGrid on my page that has <ClientSettings EnableRowHoverStyle="true" /> set. In Firefox, when you mouseover a row, the performance is incredibly slow. Swiping the mouse down a list of 10 items fairly slowly will only show the animation on 2-3 of them because it takes so long to change from the normal style to the hovered style. The CPU usage on my machine spikes greatly when i hover over a row. In IE9 and Chrome this doesn't happen, the transition from unhovered -> hovered is instantaneous, scrolling down the list will show each of them hovered at the correct time.

Is there something in the CSS that Firefox doesn't like, that we can change to increase this performance? Or is this a known issue with the Grid? This slowdown makes our app very annoying to use in Firefox.
We're using the Vista theme with no custom CSS set for the theme or for the grid. See the attached pictures:
1- CPU usage of Firefox with no row hovered (0%).
2- CPU usage of Firefox with a row hovered (~25%)
3- CPU Usage of IE with a row hovered (~6%)

Below is the code for the grid. It's bound OnPreRender in the codebehind.
<tel:RadGrid ID="rgSearchResults" runat="server" AllowPaging="True" AllowSorting="True" CellSpacing="0"
            GridLines="None" OnItemCommand="rgSearchResults_ItemCommand" OnItemDataBound="rgSearchResults_ItemDataBound"
            AutoGenerateColumns="False">
            <ClientSettings EnableRowHoverStyle="true" Selecting-AllowRowSelect="false" EnablePostBackOnRowClick="true" />
            <MasterTableView DataKeyNames="ID" AllowMultiColumnSorting="true">
                <SortExpressions>
                    <tel:GridSortExpression FieldName="Name" SortOrder="Ascending" />
                    <tel:GridSortExpression FieldName="SubBasin" SortOrder="Ascending" />
                    <tel:GridSortExpression FieldName="SubSubBasin" SortOrder="Ascending" />
                </SortExpressions>
                <Columns>
                    <tel:GridButtonColumn HeaderText="View" UniqueName="View" ButtonType="ImageButton" ImageUrl="~/Content/Images/edit.png"
                        Text="View" CommandName="View" />
                    <tel:GridButtonColumn HeaderText="Select" UniqueName="SelectTroutParentWater" ButtonType="ImageButton"
                        ImageUrl="~/Content/Images/edit.png" Text="Select" CommandName="SelectTroutParentWater" Visible="false" />
                    <tel:GridTemplateColumn HeaderText="Select" UniqueName="Select" Visible="false">
                        <ItemTemplate>
                            <asp:CheckBox runat="server" ID="rgcbSelect" OnCheckedChanged="rgcbSelect_CheckChanged" />
                        </ItemTemplate>
                    </tel:GridTemplateColumn>
                    <tel:GridBoundColumn DataField="ID" UniqueName="ID" Display="False" />
                    <tel:GridBoundColumn DataField="Name" HeaderText="Water Name" />
                    <tel:GridBoundColumn DataField="Latitude" HeaderText="Latitude" />
                    <tel:GridBoundColumn DataField="Longitude" HeaderText="Longitude" />
                    <tel:GridBoundColumn DataField="SubBasin" HeaderText="Sub Basin" />
                    <tel:GridBoundColumn DataField="SubSubBasin" HeaderText="Sub Sub Basin" />
                    <tel:GridBoundColumn DataField="ReceivingWater" HeaderText="Receiving Water" />
                    <tel:GridBoundColumn DataField="RiverMile" HeaderText="River Mile of Entry" />
                    <tel:GridBoundColumn DataField="CountyName" HeaderText="County" />
                    <tel:GridBoundColumn DataField="WaterType" HeaderText="Water Type" />
                    <tel:GridBoundColumn DataField="TagName" HeaderText="Tags" />
                </Columns>
            </MasterTableView>
        </tel:RadGrid>


What can I change to keep this functionality but improve performance?
Martin
Telerik team
 answered on 19 Jun 2012
2 answers
121 views
Hi,

I tired latest verion Radcontrol Q2 2012 and found out the RadMaskedTextBox doesn't work with RegularExpressionValidator on IE 8 when you put wrong format input  and tab out the RadMaskedTextBox.  TheRegularExpressionValidator  doesn't show the error message even if the input doesn't match with Validation Expression. But works on the Firefox 12.

Note: I mean tab out not click button.

Following is my testing code:
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
 <telerik:RadMaskedTextBox ID="RadMaskedTextBox1" runat="server" Mask="(###)-######">
 </telerik:RadMaskedTextBox>
 <asp:RequiredFieldValidator Display="Dynamic" ID="MaskedTextBoxRequiredFieldValidator"
   runat="server" ErrorMessage="Please, enter a phone number." ControlToValidate="RadMaskedTextBox1"></asp:RequiredFieldValidator>
 <asp:RegularExpressionValidator Display="Dynamic" ID="MaskedTextBoxRegularExpressionValidator"
   runat="server" ErrorMessage="Format is (###)-######" ControlToValidate="RadMaskedTextBox1"
   ValidationExpression="\(\d{3}\)-\d{6}" />
 <asp:Button ID="Button1" runat="server" Text="Postback" OnClick="Button1_Click">
 </asp:Button>
 <asp:Label ID="lblMessage" runat="server"></asp:Label>
 </form>


I also tested on your demo site and same behavior:

http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultcs.aspx

Alan
Vasil
Telerik team
 answered on 19 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?