Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
1.0K+ views
How can I change GridButtonColumn text/image at runtime. Text or image will ba based on grids data.

Im using asp.net ajax 2009 Q1
Thanks in advance.
RJ
Top achievements
Rank 1
 answered on 28 Sep 2009
6 answers
162 views

Hi
I am using the RadEditor un my web pages however getting the following error with the new version of IE (IE8)

'Error while excuting filter XHTML - TypeError: 'getAttribute(...).length' is null or not an object'

Is there an upgrade or a fix i need to add, has anyone else had this error?

Many thanks
T

 

Lini
Telerik team
 answered on 28 Sep 2009
3 answers
209 views
Good morning. I have a radMaskedTextBox in my .aspx page. And I am using javascript to populate it. The javascript is fine, it populates the radcontrol with a 10-digit phone number. The control also has a requiredfield validator. When I try to postback the requiredfield validator fails. Please tell me why it fails as I see the phone number in correct format in the control when javascript populates it. But if I type in the same number in the radmaskedtextbox  it passes without any error.
Thanks
Phil DeVeau
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
181 views
    I've used them in radgrids before, but now I'm trying to do it with a totally ajax-driven grid and it doesn't work. No matter what technique I use I get this error: "Microsoft JScript runtime error: Sys.InvalidOperationException: Cannot serialize object with cyclic reference within child properties." 
    Why does this happen with checkboxes? I can use text inputs just fine. I've tried the '<telerik:GridClientSelectColumn>', the '<telerik:GridCheckBoxColumn>', I've tried using item template with asp checkboxes and regular html checkboxes, and I've tried all these things in various configurations. I'm both baffled and frustrated. Has anyone else been able to do this, and if so, how?
Michael H.
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
324 views
I'm trying to setup tooltips on our product listing page. The problem I'm seeing is that tooltips don't seem to be showing up on Literal controls. Is this true? Are there other asp.net types that tooltips cannot be applied to?
Nik
Top achievements
Rank 1
 answered on 28 Sep 2009
1 answer
297 views
Hello

The ajax manager on my page is not triggering client side request start and response end events even though it is performing ajax postbacks.

<script type="text/javascript">  
   
function requestStart(sender, eventArgs)  
{  
     
      alert('here');  
      document.getElementById('ZoomBar1').style.visibility = "hidden";  
   
}  
 
function responseEnd(sender, eventArgs)  
{  
    alert('here');  
   document.getElementById('ZoomBar1').style.visibility = "visible";  
 
}  
</script> 
 
   <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
   <ClientEvents OnRequestStart="requestStart" OnResponseEnd="responseEnd" /> 
       <AjaxSettings> 
           <telerik:AjaxSetting AjaxControlID="ZoomBar1">  
               <UpdatedControls> 
                   <telerik:AjaxUpdatedControl ControlID="Map1" /> 
               </UpdatedControls> 
           </telerik:AjaxSetting> 
       </AjaxSettings> 
    </telerik:RadAjaxManager> 

I have other pages on which the request start and response end are being triggered. I guess something on my page must be interfering but I don't know how to debug this.

thanks
andieje
Top achievements
Rank 1
 answered on 28 Sep 2009
2 answers
229 views
Hi There,

I have a RadGrid with three NumericColumns.
When in EditMode, I need to check if the sum of the values of the three columns are not greater than 100%. If so, I might not let RadGrid update or insert.

I couldn't find any reference or example to accomplish that.

If someone could help...

Thanks.

Marcio Nascimento
Marcio Nascimento
Top achievements
Rank 1
 answered on 28 Sep 2009
4 answers
188 views

I encountered a problem with my clientbound grid. The markup is shown below. The grid successfully generates a default pagesize of 10 rows. As you can see the first column is a Template column showing a linkbutton. All 10 rows initially contain the corect data in the linkbutton column.
The problem is that when I increase the page size from 10 to say 20 at runtime the template column does not generate any content for the rows beyond the initial first 10. Everything else is present and accounted for (i.e. rows 11 to 20 are complete in every other column) but only the original 10 links will appear. Links 11 to 20 are blank. I've checked the RadGrid1_RowDataBound() event and it's correctly firing 20 times when the page size is incresed to 20 so the problems not there.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" AutoGenerateColumns="False" GridLines="None">
    <mastertableview ClientDataKeyNames="EquipID">
        <PagerStyle Mode="NumericPages" />
        <Columns>
            <telerik:GridTemplateColumn HeaderText="EquipID" SortExpression="EquipID" DataField="EquipID" DataType="System.Int32">
                <ItemTemplate>
                    <asp:linkbutton ID="lnkEquipID" NavigateUrl="#" runat="server"></asp:linkbutton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>            
            <telerik:GridBoundColumn DataField="OrgID" HeaderText="OrgID" DataType="System.Int32"
                Visible="false">
            </telerik:GridBoundColumn>

           ... rest of GridBoundColumns ...
           
               <clientsettings allowcolumnsreorder="True" reordercolumnsonclient="True" databinding-enablecaching="false" EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="True" />
        <DataBinding SelectMethod="GetDataAndCount" Location="https://localhost/MyService/MyService.svc"
            SortParameterType="Linq" FilterParameterType="Linq">
        </DataBinding>
        <Selecting AllowRowSelect="True" />
        <ClientEvents OnRowContextMenu="RowContextMenu" OnDataBinding="RadGrid1_DataBinding" OnRowDataBound="RadGrid1_RowDataBound" />
    </clientsettings>
</telerik:RadGrid>


Any idies. As always any help would be appreciated.
Pavlina
Telerik team
 answered on 28 Sep 2009
7 answers
165 views
I am having a problem with RadTreeView contextMenu clicks in Chrome 3.    We have a production application that does not work anymore with chrome 3.   This problem just happed this week, worked fine with earlier version of chrome.   We have suggested that our users use chrome as it is very fast for ajax calls.  Please help!
Paul
Telerik team
 answered on 28 Sep 2009
3 answers
114 views
Trying to display a total footer row and I could of swore it was working fine until today and I made a master page

As you can see in the screen shot the total footer only displays "Count: " but no data ... but all the group by footers are just fine.  Ideas?

http://mmo-rpg.com/footermiss.png



<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
<%@ Register assembly="Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" namespace="Telerik.Charting" tagprefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="Header" Runat="Server">  
</asp:Content> 
<asp:Content ID="Content2" ContentPlaceHolderID="PrimaryContent" Runat="Server">  
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Default_ShipGrid">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="Default_ShipGrid" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
<telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0"   
                        MultiPageID="RadMultiPage1" Width="100%">  
                <Tabs> 
                    <telerik:RadTab runat="server" Text="Welcome" Selected="True">  
                    </telerik:RadTab> 
                    <telerik:RadTab runat="server" Text="Shipping">  
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"   
                        Width="100%">  
                <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%">  
                <h2><a href="#">Welcome</a></h2>  
                <p>This is a development site to test things out.  Its ASP.NET and VB and RadContorls.<br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    <br /> 
                    The Bacground ends about here yay!<br /> 
                    <br /> 
                </p>      
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView2" runat="server" Width="100%">  
                    <asp:SqlDataSource ID="ShipChartSQL" runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ERPLXFConnectionString %>"   
                        SelectCommand="SELECT ILDATE, ILPFAC, SUM(ILQTY * ILNET) AS TTL, SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) + '-' + SUBSTRING(CAST(ILDATE AS char(8)), 7, 2) AS NomDate FROM SIL WHERE (ILPFAC &lt;&gt; '') AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) AS int) = MONTH(GETDATE())) AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 1, 4) AS int) = YEAR(GETDATE())) AND (ILPROD &lt;&gt; 'FREIGHT') GROUP BY ILDATE, ILPFAC ORDER BY ILDATE, ILPFAC"   
                        DataSourceMode="DataReader"></asp:SqlDataSource> 
                   <div align="center">  
                    <telerik:RadChart ID="RadChart2" runat="server" AutoLayout="True"   
                        AutoTextWrap="True" DataGroupColumn="ILPFAC" DataSourceID="ShipChartSQL"   
                        Height="400px" Skin="Office2007" Width="850px" 
                        IntelligentLabelsEnabled="True">  
                        <Series> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="010"><Appearance><FillStyle FillType="Solid" MainColor="69, 115, 167"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="69, 115, 167" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="040"><Appearance><FillStyle FillType="Solid" MainColor="107, 70, 68"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="107, 70, 68" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="050"><Appearance><FillStyle FillType="Solid" MainColor="136, 166, 78"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="136, 166, 78" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="070"><Appearance><FillStyle FillType="Solid" MainColor="113, 88, 143"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="113, 88, 143" /></Appearance></telerik:ChartSeries> 
                            <telerik:ChartSeries DataYColumn="TTL" Name="080"><Appearance><FillStyle FillType="Solid" MainColor="66, 152, 175"></FillStyle><LabelAppearance Visible="False"></LabelAppearance><TextAppearance TextProperties-Color="Black"></TextAppearance><Border Color="66, 152, 175" /></Appearance></telerik:ChartSeries> 
                        </Series> 
                        <PlotArea> 
                            <DataTable> 
                                <Appearance Position-AlignedPosition="Bottom" RenderType="AutoSize">  
                                </Appearance> 
                            </DataTable> 
                            <XAxis AutoScale="False" DataLabelsColumn="NomDate" MaxValue="20090911"   
                                MinValue="20090901" Step="1">  
                                <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"   
                                    ValueFormat="ShortDate">  
                                    <MajorGridLines Color="134, 134, 134" Width="0" /> 
                                    <TextAppearance TextProperties-Color="Black">  
                                    </TextAppearance> 
                                </Appearance> 
                                <AxisLabel> 
                                    <TextBlock Text="Date">  
                                        <Appearance TextProperties-Color="Black">  
                                        </Appearance> 
                                    </TextBlock> 
                                </AxisLabel> 
                                <Items> 
                                    <telerik:ChartAxisItem Value="20090901"><TextBlock Text="9/1/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090902"><TextBlock Text="9/2/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090903"><TextBlock Text="9/3/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090904"><TextBlock Text="9/4/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090908"><TextBlock Text="9/8/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090909"><TextBlock Text="9/9/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090910"><TextBlock Text="9/10/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                    <telerik:ChartAxisItem Value="20090911"><TextBlock Text="9/11/2009 12:00:00 AM"></TextBlock></telerik:ChartAxisItem> 
                                </Items> 
                            </XAxis> 
                            <YAxis> 
                                <Appearance Color="134, 134, 134" MajorTick-Color="134, 134, 134"   
                                    MinorTick-Color="134, 134, 134" ValueFormat="Currency">  
                                    <MajorGridLines Color="134, 134, 134" /> 
                                    <MinorGridLines Color="134, 134, 134" /> 
                                    <TextAppearance TextProperties-Color="Black">  
                                    </TextAppearance> 
                                </Appearance> 
                                <AxisLabel> 
                                    <TextBlock Text="$">  
                                        <Appearance TextProperties-Color="Black">  
                                        </Appearance> 
                                    </TextBlock> 
                                </AxisLabel> 
                            </YAxis> 
                            <Appearance> 
                                <FillStyle FillType="Solid" MainColor="">  
                                </FillStyle> 
                            </Appearance> 
                        </PlotArea> 
                        <Appearance> 
                            <Border Color="134, 134, 134" /> 
                        </Appearance> 
                        <ChartTitle> 
                            <Appearance Position-AlignedPosition="Top">  
                                <FillStyle MainColor="">  
                                </FillStyle> 
                            </Appearance> 
                            <TextBlock Text="Shipments by $ by Facility by Day">  
                                <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 18px">  
                                </Appearance> 
                            </TextBlock> 
                        </ChartTitle> 
                        <Legend> 
                            <Appearance Dimensions-Margins="15%, 2%, 1px, 1px"   
                                Dimensions-Paddings="2px, 8px, 6px, 3px">  
                                <ItemTextAppearance TextProperties-Color="Black">  
                                </ItemTextAppearance> 
                                <ItemMarkerAppearance Figure="Diamond">  
                                </ItemMarkerAppearance> 
                            </Appearance> 
                        </Legend> 
                    </telerik:RadChart> 
                    </div> 
                    <asp:SqlDataSource ID="ShipGridSQL" runat="server"   
                        ConnectionString="<%$ ConnectionStrings:ERPLXFConnectionString %>"   
                        SelectCommand="SELECT top 500 ILDATE, ILPFAC, ILQTY * ILNET AS TTL, SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) + '-' + SUBSTRING(CAST(ILDATE AS char(8)), 7, 2) AS NomDate, ILPROD, ILQTY, ILNET, ILWHS, ILORD, ILCUST FROM SIL WHERE (ILPFAC &lt;&gt; '') AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 5, 2) AS int) = MONTH(GETDATE())) AND (CAST(SUBSTRING(CAST(ILDATE AS char(8)), 1, 4) AS int) = YEAR(GETDATE())) AND (ILPROD &lt;&gt; 'FREIGHT') ORDER BY ILDATE DESC, ILPFAC"   
                        DataSourceMode="DataReader"></asp:SqlDataSource> 
                        <div> 
                    <telerik:RadGrid ID="Default_ShipGrid" runat="server" AllowFilteringByColumn="True"   
                        AllowSorting="True" DataSourceID="ShipGridSQL"   
                        GridLines="None" ShowGroupPanel="True" ShowFooter="True">  
                        <MasterTableView AutoGenerateColumns="False" GroupsDefaultExpanded="False" ShowGroupFooter="True" ShowFooter="True">  
                            <RowIndicatorColumn> 
                                <HeaderStyle Width="20px" /> 
                            </RowIndicatorColumn> 
                            <ExpandCollapseColumn> 
                                <HeaderStyle Width="20px" /> 
                            </ExpandCollapseColumn> 
                            <Columns> 
                                <telerik:GridBoundColumn DataField="NomDate" HeaderText="Date"   
                                    ReadOnly="True" SortExpression="NomDate" UniqueName="NomDate" Aggregate="Count">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILPFAC" HeaderText="Facility"   
                                    SortExpression="ILPFAC" UniqueName="ILPFAC">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILORD" DataType="System.Decimal"   
                                    HeaderText="Order No." SortExpression="ILORD" UniqueName="ILORD">  
                                </telerik:GridBoundColumn>    
                                <telerik:GridBoundColumn DataField="ILCUST" DataType="System.Decimal"   
                                    HeaderText="Cust No." SortExpression="ILCUST" UniqueName="ILCUST">  
                                </telerik:GridBoundColumn>                                                                
                                <telerik:GridBoundColumn DataField="ILPROD" HeaderText="Prod"   
                                    SortExpression="ILPROD" UniqueName="ILPROD">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILQTY" DataType="System.Decimal"   
                                    HeaderText="Qty" SortExpression="ILQTY" UniqueName="ILQTY"   
                                    DataFormatString="{0:n}" Aggregate="Sum"   
                                    FooterAggregateFormatString="{0:n}">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="ILNET" DataType="System.Decimal"   
                                    HeaderText="Net $" SortExpression="ILNET" UniqueName="ILNET"   
                                    DataFormatString="{0:c}">  
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn DataField="TTL" DataType="System.Decimal"   
                                    HeaderText="Total" ReadOnly="True" SortExpression="TTL" UniqueName="TTL"   
                                    DataFormatString="{0:c}" Aggregate="Sum">  
                                </telerik:GridBoundColumn>                                  
                                <telerik:GridBoundColumn DataField="ILWHS" HeaderText="Warehouse"   
                                    SortExpression="ILWHS" UniqueName="ILWHS">  
                                </telerik:GridBoundColumn> 
                            </Columns> 
                <GroupByExpressions> 
                    <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                            <telerik:GridGroupByField FieldName="ILPFAC" /> 
                       </GroupByFields> 
                       <SelectFields> 
                            <telerik:GridGroupByField FieldName="ILPFAC" HeaderText="Facility" /> 
                       </SelectFields>                                               
                    </telerik:GridGroupByExpression> 
                    <telerik:GridGroupByExpression> 
                       <GroupByFields> 
                            <telerik:GridGroupByField FieldName="NomDate" /> 
                       </GroupByFields> 
                       <SelectFields> 
                            <telerik:GridGroupByField FieldName="NomDate" HeaderText="Date" /> 
                       </SelectFields> 
                    </telerik:GridGroupByExpression> 
                </GroupByExpressions> 
                        </MasterTableView> 
                        <FooterStyle Font-Bold="True" Font-Size="Small" Font-Italic="True" /> 
                        <ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True">  
                            <Selecting AllowRowSelect="True" /> 
                        </ClientSettings> 
                        <GroupingSettings ShowUnGroupButton="true" /> 
                    </telerik:RadGrid> 
                </div> 
                </telerik:RadPageView> 
            </telerik:RadMultiPage>           
</asp:Content> 
 
 
 
Pavlina
Telerik team
 answered on 28 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?