Telerik Forums
UI for ASP.NET AJAX Forum
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
1 answer
57 views
HI

I have tried several of the ideas in this forum but have not managed to make them work for my case.

I have a panel bar with sub menus, and the cookie is set to retain the sub menu open when navigating to the 
pages in the menu.

What is also happening - that I don't want to happen - is that when the visitor closes their browser and then comes back to the site later, the menu is still at the state it was when they left . ie if there was a sub menu open, it is still open.

What I have been trying to do (in the panel bar load event) is detect whether there is null referrer (visiting from a bookmark) or the referrer is not a page on the site, and then clear cookies and close all items

If Request.UrlReferrer IsNot Nothing Then
                strReferrer = Request.UrlReferrer.GetLeftPart(UriPartial.Authority).ToString()
                If   InStr(strReferrer, "scargillmovement") > 0 Then
                    ' internal referrer  do not remove cookie
                Else
                    'external referrer so close menu
                    If Page.Request.Cookies("TelerikRadPanelBarCookie") IsNot Nothing Then
                    Page.Request.Cookies("TelerikRadPanelBarCookie").Value = Nothing
                    End If
 
                    For Each item As RadPanelItem In RadPanelBar1.GetAllItems()
                        If Not item.Items.Count = 0 Then
                            item.Expanded = False
                        End If
                    Next
 
                End If
            Else
                ' link straight in from bookmark or type in so remove cookie and close menu
                      If Page.Request.Cookies("TelerikRadPanelBarCookie") IsNot Nothing Then
                       Page.Request.Cookies("TelerikRadPanelBarCookie").Value = Nothing
                       End If
 
                     For Each item As RadPanelItem In RadPanelBar1.GetAllItems()
                            If Not item.Items.Count = 0 Then
                               item.Expanded = False
                            End If
                      Next
            End If

Maybe the referrer information is not even available in this page event.   Maybe it can be done in JavaScript after page load?

Thanks

Clive


Kate
Telerik team
 answered on 18 Jan 2012
0 answers
87 views

We are facing an issue on those pages containing telerik grid. When the page loads, there is an error in IE which says - 'Syntax Error' Line 3 Char 1. We get this error only if CustomError is set to On in the web.config file.

<customErrors mode="On" defaultRedirect="General/Error.aspx">

    <error statusCode="403" redirect="General/Error.aspx"/>

    <error statusCode="404" redirect="General/Error.aspx"/>

</customErrors>

 

 

It works fine on pages where telerik grid is not present. We are using the version 2010.1.519.35 of Telerik.Web.UI.dll and Telerik.Web.Design.dll.

When we tried to debug the error, we got the message - 'Sys is undefined' and debugging took us to the file WebResource_2.axd. Seeing the previous threads on this error, we tried to modify the web.config with changes suggested in http://www.asp.net/ajax/documentation/live/ConfiguringASPNETAJAX.aspx and also added
<location path="Telerik.Web.UI.WebResource.axd">  
   <system.web> 
     <authorization> 
       <allow users="*"/>  
     </authorization> 
   </system.web> 
 </location>
but both the things did not work.

Please have a look and let us know if you need any other details.

Attached the global.asax code for application_error event and the file we get when we debug the IE js error.
Sonia
Top achievements
Rank 1
 asked on 18 Jan 2012
10 answers
149 views
Dear reader,

I have a deploy script accidentally deploying the radeditormoss.wsp to a SP2010 farm.
On my user acceptance this lead to some display problems. Retracting the solution solved it.
On the production this is not the case - I did some deploying/retracting/iisesetting in the hope it would solve the problem but no luck.
See the picture for the result

 http://twitpic.com/856slo 

Can not find anything quickly in the ULS. The screenshot is from a list where in the column the setting is enhanced rich text editor.
Stanimir
Telerik team
 answered on 18 Jan 2012
10 answers
131 views
Hi

I just encounter the same problem (refer to http://www.telerik.com/community/forums/aspnet-ajax/editor/enable-toolbar-button-in-preview-mode.aspx). When I change my editor to html view, I want to enable the "FontName", it seems dropdown stop working. I can't see any value.

    function showSource(tab, multiPage, editor) { 
        editor.set_mode(2); 
        showEditorToolbar(true); 
        if (multiPage.get_selectedIndex() != 0) 
            multiPage.set_selectedIndex(0); 
 
        var oTool = getEditor().getToolByName("FontName"); //get a reference to the custom tool 
        oTool.setState(0); 
         
    } 

BTW: It works under IE, but not firefox
Rumen
Telerik team
 answered on 18 Jan 2012
1 answer
48 views
There appears to be a bug in IE9 when it comes to rendering whitespace between table elements which are generated in an ajax update. You can see the effects of this bug in the attached before and after screen shots. After an ajax update the top row of the table gets shifted to the right because an extra column is inserted just in that row. I have found several threads relating to this IE9 bug:

http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/e6f49d52-ec3f-47c5-802e-b80d1a58ed39

http://stackoverflow.com/questions/7267014/ie9-table-has-random-rows-which-are-offset-at-random-columns

Most of the posts seem to point to the elimination of spaces between <.td></td> tags as a work around, but I believe I have done that and the issue still occurs.

Anyhow, is Telerik aware of this IE9 bug? If so, I wonder if Telerik can implement the whitespace scrubbing method shown in the second forum listed here when generating the content being sent through AJAX.

Any thoughts/ideas on how to avoid this issue? Microsoft doesn't seem to be in a hurry to fix it.
Maria Ilieva
Telerik team
 answered on 18 Jan 2012
4 answers
778 views

Hi ,
I have a user control having a radCombobox Now I want to use the selectedvalue from this dropdown on an aspx page where I want to use this selected value as an input parameter to a function which fills a normal dropdown list on this page based on what the value was selected.
I have called this function in the onitemsrequested event of the normal dropdown.Now the problem is that it always takes null.
As a result the dropdown is blank irrespective of what I choose.

Please let me know how to achieve this,if this is not possible by onitemsrequested event,I do not want to create a new user control having both the things on one page.Instead i want the page to call usercontrol value.
I tried using public property concept.it does not work.

Here is the event definition.

  [
protected void ddlCommodity_itemRequested(object o, RadComboBoxItemsRequestedEventArgs e)
    {
         string exchange1 = ExchangeType.Exchange;                               
         DataSet CommodityCodes = service.GetCommodities(exchange1);

        ddlCommodity.DataSource = CommodityCodes.Tables[0];
        ddlCommodity.DataTextField = "'ALL'";
        ddlCommodity.DataValueField = "'ALL'";
        ddlCommodity.DataBind();
    }


the property is
public string Exchange
    {
        get { return ddlExchangeType.SelectedValue;}
        set { ddlExchangeType.SelectedValue = value; }
    }
]

Abhishek
Top achievements
Rank 2
 answered on 18 Jan 2012
2 answers
387 views

Hi Telerik Team,

I want to open and Edit a Word Document Online means open the document in client browser Without save the document on user System

and when edit the document that would be saved on server.

So, Is there any tool available in Telerik Controls?

Below are the steps:

1. Browse a file using fileupload or  Select a file.

2. Use the file upload file and when hit on a button,the file needs to opened/edited something like an GoogleDoc. Or Open in Editor) without save on Client/User machine.

3 .User makes necessary changes and save the file on Server.

please reply ASAP and if possible send me the example. 

I am rally thankful to you.

Best Regrdas,

Ashish
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?