Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
97 views
On December 29 2011 a vulnerability was found in the .NET Framework (http://support.microsoft.com/kb/2638420) basically the vulnerability is related with the number of parameters that an ASP.NET application can receive, the problem is that if you have a RadGrid with more than 10 rows and 15 RadTextBox per row every request will exceed the maximum amount of parameters.

The error that I got was:
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

We can fix this issue using the information of the next link: http://support.microsoft.com/kb/2661403
To fix this issue we just need to set the maximum amount of parameters the page is allowed to get to something that we calculate covers our needs, in my case 3000:
<configuration>
  <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="3000" />
  </appSettings>
</configuration>

Regards
Raul
Top achievements
Rank 1
 asked on 18 Jan 2012
1 answer
49 views
Hi,
I am using SharePoint 2010, and i was learning how to incoorperate AJAX with RADLoadingPanel. The LoadingPanel did shows up but when i scroll, the loadingPanel stick at one location which it is not suppose to.

Anything i did is not right or AJAXPanel donot 100% compatible with SharePoint 2010?

Regards,
Galin
Telerik team
 answered on 18 Jan 2012
5 answers
77 views
When viewed on IE9; contents of all pageviews will be shown in selected index at once.
But when tab is click; corresponding pageview will behave normally..

Note: Tabstrip is within custom control used inside RadGrid.

---- Code below ----

<
telerik:RadTabStrip runat="server" ID="tabStripDetails" SelectedIndex="0" MultiPageID="radMultipage">
        <Tabs>
            <telerik:RadTab runat="server" id="tabPersonal" PageViewID="viewPersonal" Text="Personal Details">
            </telerik:RadTab>
            <telerik:RadTab runat="server" id="tabEducation"  PageViewID="viewEducation" Text="Educational Background">
            </telerik:RadTab>
            <telerik:RadTab runat="server" id="tabEmployment" PageViewID="viewEmployment" Text="Employment Details">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
 <telerik:RadMultiPage runat="server" ID="radMultipage" SelectedIndex="0">
        <telerik:RadPageView ID="viewPersonal" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #1 Goes Here
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="viewEducation" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #2 Goes Here
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="viewEmployment" runat="server">
            <div style="border: 1px solid #828282; margin-top: -1px; display: block; background: #ffffff">
                Content #3 Goes Here
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Kaushal
Top achievements
Rank 1
 answered on 18 Jan 2012
12 answers
198 views
I have a panelbar that I am using on a masterpage.  I am saving state on it so it will pass the state to the next level.  My issue is, when users select the home page tab to return to the home page, I would like the panelbar to collapse.  I do not want the state to stay the same.  I think my goal can be accomplished by having a collapse on load for my Home masterpage.  I currently use a Javascript to collapse on selecting another level 1 page.  See script below. Can someone tell me how to add an additional javascript that will collapse the panelbar onload.

function collapseItem(panelbar, args)  
        {     
            if(args.get_item().get_items.length < 1)     
            {     
        for (var i=0; i < panelbar.get_items.length; i++)
        {
            panelbar.get_items[i].Collapse();
        }
        }
        }
        </script>
Kate
Telerik team
 answered on 18 Jan 2012
1 answer
92 views
I've got some controls that do ajax requests on the page, however, i've noticed that they're posting to the wrong page address.

myfirendlyurl/myunfriendlyurl.aspx

From a few searches it seems i've got to set the ajaxurl property of the rad ajax manager. Only thing is .. I can't find it. I've looked at the intellisense attributes in both aspx and the code behind file. Neither list an AjaxUrl property. what gives?

FYI i'm using this version of the controls

2011.2.712.40
Maria Ilieva
Telerik team
 answered on 18 Jan 2012
1 answer
51 views
in the 2011 Q3 documentation that is installed on my local computer during setup, I found what I am pretty sure is a typo for the RadAjaxManagerProxy.

The ASPX code has the following:

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function myUserControlClickHandler() {
            $find("<%= RadAjaxManager.GetCurrent(PageClientID %>").ajaxRequest("content");
        }
    </script>
</telerik:RadCodeBlock>

I believe that the code in the $find has an error, and should be the following instead:

$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");

The difference is that is should be ".GetCurrent(Page).ClientID" instead of ".GetCurrent(PageClientID".

At least that is what works for me.

Maria Ilieva
Telerik team
 answered on 18 Jan 2012
5 answers
179 views
I have a RadGrid with a self-referencing dataset, and while it expands and collapses fine, column resizing is not working with multiple levels of data.  If the entire grid is collapsed, resizing works fine, but when they are expanded, the cell contents of the highest level rows get resized but the child levels are totally out of alignment.  Is this a known issue?
Jose
Top achievements
Rank 1
 answered on 18 Jan 2012
10 answers
122 views
Hopefully someone can help me out here.  I have a radtooltip that uses ajax and that works fine on the page.  I also have a radajaxmanager object that works fine as well.  The radajaxmanager has both OnRequestStart and OnResponseEnd events.  When calling any ajaxified control, the process works correctly, however, when I cancel an ajax request in the OnRequestStart event (by calling eventArgs.set_enableAjax(false) and eventArgs.set_cancel(true);), the OnResponseEnd event fires after I hover over the tooltip.  The arguments are the same as the prior cancelled event so I'm led to believe the prior ajax call really didn't cancel and the OnResponseEnd is called after my radtooltip's ajax call.  Also, if I click another button and the process is allowed to go through (without cancelling), the tooltip works fine on subsequent calls.  Any help would be appreciated.

Another thing, the tooltip never fires the OnRequestStart or OnResponseEnd AjaxManager events.  It is only after an ajax request is cancelled will this happen.  
Maria Ilieva
Telerik team
 answered on 18 Jan 2012
2 answers
99 views

Is there anyway to get rowindex of the cell that trigger this function.
I know there is a way which uses OnRowClick or OnRowSelect.
In my case i dont want the user to selectrow to update the cell.

This there anyway to change the 4 into rowindex

function editQuantity(sender, eventArgs) {
    var masterTable = $find("<%= CartRadGrid.ClientID %>").get_masterTableView();
        masterTable.updateItem(4);
}


This is my radgrid

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="CartRadGrid">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="CartRadGrid" LoadingPanelID="RadAjaxLoadingPanel1" />
<telerik:AjaxUpdatedControl ControlID="RadWindowManager1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" Skin="Default">
</telerik:RadAjaxLoadingPanel>
<telerik:RadGrid ID="CartRadGrid" runat="server" AllowSorting="True" ShowStatusBar="True"
CellSpacing="0" DataSourceID="CartObjectDataSource" GridLines="None" ShowFooter="True"
Skin="Hay" AllowAutomaticDeletes="True" AutoGenerateColumns="False"
onitemcommand="CartRadGrid_ItemCommand" AllowAutomaticUpdates="True">
<ClientSettings ClientEvents-OnRowClick="OnRowClick">
<Selecting AllowRowSelect="True" />
<ClientEvents OnRowClick="OnRowClick"></ClientEvents>
</ClientSettings>
<MasterTableView DataSourceID="CartObjectDataSource" DataKeyNames="productID" EditMode="InPlace" CommandItemDisplay="Top">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
<Columns>
<telerik:GridBinaryImageColumn DataField="image" ImageHeight="80px" ImageWidth="80px"
UniqueName="image" ResizeMode="Fit" HeaderText="Item">
<HeaderStyle Width="10%" HorizontalAlign="Center" />
</telerik:GridBinaryImageColumn>
<telerik:GridBoundColumn DataField="productID"
FilterControlAltText="Filter column column" HeaderText="id"
UniqueName="productID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="productName"
FilterControlAltText="Filter productName column" HeaderText="Name"
UniqueName="productName">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="productDesc"
FilterControlAltText="Filter productDesc column" HeaderText="Description"
UniqueName="productDesc">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="price" DataFormatString="{0:C}"
FilterControlAltText="Filter price column" UniqueName="price"
HeaderText="Unit price">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="quantity"
FilterControlAltText="Filter TemplateColumn column" UniqueName="quantity"
HeaderText="Quantity" SortExpression="quantity">
<ItemTemplate>
<telerik:RadNumericTextBox ID="quantityTextBox" runat="server"
ShowSpinButtons="True" width="50px"
DbValue='<%# Convert.ToDouble(Eval("quantity")) %>'
DataType="System.Int32" Culture="en-SG" NumberFormat-DecimalDigits="0" MinValue="0" MaxValue="999"
ClientEvents-OnValueChanged="editQuantity">
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="stock"
FilterControlAltText="Filter stock column" HeaderText="Stock left"
UniqueName="stock">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="total" DataFormatString="{0:C}"
FilterControlAltText="Filter total column" HeaderText="Total"
UniqueName="total" Aggregate="Sum" FooterAggregateFormatString="Total: {0:C}" FooterStyle-CssClass="total">
<FooterStyle CssClass="total"></FooterStyle>
</telerik:GridBoundColumn>
<telerik:GridButtonColumn Text="Delete" CommandName="Delete"
ButtonType="ImageButton" UniqueName="Delete" CommandArgument="asd"
FilterControlAltText="Filter Delete column">
<HeaderStyle Width="2%" />
</telerik:GridButtonColumn>
</Columns>
<PagerStyle AlwaysVisible="True" />
<FooterStyle Height="30px" />
<CommandItemTemplate>
<table border="0" style="width: 100%;" class="rgCommandTable">
<tr>
<td align="left"><asp:Label ID="Label1" runat="server" Text="My Cart"></asp:Label></td>
<td align="right">
<asp:Button CommandName="RebindGrid" runat="server" ID="btnRefresh" Text="Refresh" title="Refresh" CssClass="rgRefresh" />
<asp:Label ID="refreshLabel" runat="server" Text="Refresh"></asp:Label>
</td></tr>
</table>
</CommandItemTemplate>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
</telerik:RadGrid>
<asp:ObjectDataSource ID="CartObjectDataSource" runat="server"
SelectMethod="loadCart" TypeName="GroceryStore.Cart.Cart">
</asp:ObjectDataSource>
Weilun
Top achievements
Rank 1
 answered on 18 Jan 2012
6 answers
235 views
I am wanting to create pie chart with no title, label, legend, etc that takes up the full size of the chart.

However, when I set DiameterScale to 1 (100%) a small amount of the right and bottom sides of the chart is lost, making it no longer look perfectly circular. (Attached are some examples)

I did try and fix this with xoffset and yoffset but the smallest movement was too much.

Is there any way to make a pie chart take up the full size of the chart without losing any pixels?
Vijaianand
Top achievements
Rank 1
 answered on 18 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?