Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
HI all,
I have a requirement.
I have a radgrid and paging with size 5 is enabled.If i got to 5 th page and do a search .I want the the page to set back to 1.

In one shot qs is how i can set the page to a specific number in paging.

Thanks,
A2H
Princy
Top achievements
Rank 2
 answered on 07 Oct 2010
5 answers
194 views
It seems autopostback needs to be true for month navigation to work. Can calendar navigate without postbacks, just with using javascript?
Jean-Pascal van der Endt
Top achievements
Rank 1
 answered on 07 Oct 2010
4 answers
90 views
I'm having an odd problem with our Ajax loading panel. It's showing up in the wrong place on the page--it loads in the top left corner, where it pushes then entire contents of the page down. This only happens if the page forward button on the RadGrid is the first control clicked right after the page is loaded. All subsequent postbacks have the loading panel appearing in the right spot, which is centered on the page. Also, if you click any other control on the page first (the RadPanelBar, any of the filter controls), the loading panel appears in the right spot and always in the right spot.

The loading panel is part of the site's master page. The page I'm having this problem on has just a single user control on it, which loads a RadPanelBar and a RadGrid on the page. I've included how that's set up below:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadPanelBar1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadPanelBar1" UpdatePanelRenderMode="block" />
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                <telerik:AjaxUpdatedControl ControlID="RadFilter1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadFilter1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadFilter1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td width="240" valign="top">
    <telerik:RadPanelBar runat="server" ID="RadPanelBar1" DataSourceID="SqlDataSource1"
        DataFieldParentID="parent_ID" DataTextField="text" DataValueField="ID"
        AllowCollapseAllItems="True" ExpandMode="SingleExpandedItem" CollapseAnimation-Type="None" ExpandAnimation-Type="None"
        OnItemClick="RadPanelBar1_ItemClick" CausesValidation="false"
        Skin="Windows7" Width="240">
    </telerik:RadPanelBar>
</td>
<td width="*" valign="top">
    <telerik:RadFilter runat="server" ID="RadFilter1" FilterContainerID="RadGrid1"
        ShowApplyButton = "false">
    </telerik:RadFilter>
 
    <telerik:RadGrid runat="server" ID="RadGrid1" DataSourceID="SqlDataSource2"
        AllowPaging="True" AutoGenerateColumns="false" AllowSorting="true"
         OnItemCommand="RadGrid1_ItemCommand">
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings AllowColumnsReorder="True" ColumnsReorderMethod="Reorder">
            <Scrolling AllowScroll="False" UseStaticHeaders="True" />
        </ClientSettings>
        <MasterTableView IsFilterItemExpanded="false" CommandItemDisplay="Top" PageSize="20">
            <CommandItemTemplate>
                <table cellpadding="0" cellspacing="5px" width="100%"><tbody><tr>
                    <td style="width: 15ex;">
                        <asp:LinkButton ID="lbApplyFilter" runat="server"
                            CausesValidation="false" CommandName="FilterRadGrid"
                            CssClass="gridToolButton" ToolTip="Click to apply filter settings">
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Icons/filter.gif" />
                            <asp:Label ID="Label1" runat="server" Text="Apply Filter" />
                        </asp:LinkButton>
                    </td>
                    <td style="width: auto;"><div style="width: 100%;"><!-- --></div></td>
                    <td style="width: 10ex;">
                        <asp:LinkButton ID="LinkButton1" runat="server"
                            CssClass="gridToolButton" OnClientClick="return false;">
                            <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/Icons/16x16/Save.png" />
                            <asp:Label ID="Label4" runat="server" Text="Save" />
                        </asp:LinkButton>
                        <telerik:RadToolTip ID="RadToolTip1" runat="server"
                            AutoCloseDelay="0" EnableAjaxSkinRendering="True"
                            Height="150" RelativeTo="Element" ShowDelay="0"
                            ShowEvent="OnClick" OnClientBeforeShow="OnClientBeforeShow"
                            TargetControlID="LinkButton1" Width="400">
                            <uc2:saveDialog ID="saveDialog1" runat="server" />
                        </telerik:RadToolTip>
                    </td>
                    <td style="width: 15ex;">
                        <asp:LinkButton ID="lbDownloadExcel" runat="server"
                            CausesValidation="false" CommandName="ExportToCSV"
                            CssClass="gridToolButton"
                            ToolTip="Click to export current student discovery body to Excel">
                            <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/Icons/excel_icon.png" />
                            <asp:Label ID="Label2" runat="server" Text="Export Excel" />
                        </asp:LinkButton>
                    </td>
                </tr></tbody></table>
            </CommandItemTemplate>
        </MasterTableView>
        <HeaderContextMenu EnableAutoScroll="True">
        </HeaderContextMenu>
    </telerik:RadGrid>
</td>
</tr>
</table>

There's a bit of fiddling about going on in the codebehind, but that's all logic related to setting up the data sources for the panel bar and the grid. There's not much else to the page. Any idea why the loading panel is behaving like this?

Thank you!

Bryan
Maria Ilieva
Telerik team
 answered on 07 Oct 2010
3 answers
254 views
Hi there

Could someone advise me how to create a gridbuttoncolumn to delete records in a dynamic radgrid that's generated on the fly. I'm using the code in this link as a reference - http://www.telerik.com/help/aspnet-ajax/grdchanginggridstructuredynamically.html, but can't get the command to fire.

I've added a hander for the item_command:

 

AddHandler grid.ItemCommand, AddressOf grid_ItemCommand


but I never get that far when the code runs.

Thanks in advance!!

Steven
Iana Tsolova
Telerik team
 answered on 07 Oct 2010
3 answers
569 views

I would like to use Telerik Rad ASP.Net Ajax controls in mono environment. My O.S. is Ubuntu.

Here my doubt is... Can I make use of Rad ASP.Net Ajax controls on ubuntu.

If it is possible, cud you please help me with the steps, like installation, working...

Thanks in advance.

--
Pradeep...
Daniel
Telerik team
 answered on 07 Oct 2010
7 answers
219 views
Hi,

I'm using RadEditor in custom Aspx file which located under _layouts folder
but I am having problem with "Find and Replace" icon, when I click this icon popup diaglo appare as attached image (No text).

How to resolve this?

PS. Here is web.config of DialogHandler
    <add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.aspx"  /> 

Thanx,


Stanimir
Telerik team
 answered on 07 Oct 2010
1 answer
139 views
I get the following error (Using VS2010 .Net and Dynamic Data + latest DD bits for Telerik RadGrid, and Entity Framework for data model);

Error: Store update, insert, or delete statement affected an unexpected number of rows (0). Entities may have been modified or deleted since entities were loaded. Refresh ObjectStateManager entries.

when Inserting with the following code;
<Columns>
    <telerik:GridTemplateColumn UniqueName="CommandColumn">
        <ItemTemplate>
            <asp:LinkButton runat="server" ID="LinkButton1" Text="Edit" CommandName="Edit" /><br />
            <asp:LinkButton runat="server" ID="LinkButton2" Text="Delete" CommandName="Delete" OnClientClick='return confirm("Are you sure you want to delete this item?");'/>
        </ItemTemplate>
        <EditItemTemplate>
            <asp:LinkButton runat="server" ID="LinkButton1" Text="Update" CommandName="Update" /><br />
            <asp:LinkButton runat="server" ID="LinkButton2" Text="Cancel" CommandName="Cancel" CausesValidation="false" />
        </EditItemTemplate>
    </telerik:GridTemplateColumn>
    <%--<telerik:GridEditCommandColumn />
    <telerik:GridButtonColumn CommandName="Delete" Text="Delete" ConfirmText="Are you sure you want to delete this item?" />--%>
</Columns>

Note I've commented out the telerik command columns (wich work fine) to get the command buttons in the same column (and use icons removed for simplification)

Note: the error only occurs when clicking Update during Insert, and just by changing button the the two telerik buttons commented out the error goes away :(

Regards
Steve Naughton (MVP)
Radoslav
Telerik team
 answered on 07 Oct 2010
3 answers
240 views
hi,

i am trying to run Telerik.Web.UI_2010_2_826_Trial.msi
by running the command:
  "msiexec /i Telerik.Web.UI_2010_2_826_Trial.msi /limev Telerik.Web.UI.Install.log" from the terminal.
But installation error is coming.
I want to know,is there support for telerik controls on ubuntu debian environment or not?
if there is suggest me how to work.

Thanks
Daniel
Telerik team
 answered on 07 Oct 2010
1 answer
62 views

Hi,

         FilterDelay is not supported by Telerik.Web.UI.GridRatingColumn.

I think this is a bug, its already fixed. In which version the above bug is fixed. We are using Version is 2010.1.519.40.

Regards,
Tamilselvan.S
Veli
Telerik team
 answered on 07 Oct 2010
1 answer
150 views
Hi all,

I'm having an odd problem - odd in that it used to work, and I can't identity what's changed to make it no longer work.

I have a user control which contains a multiview, and on one tab there's a RadGrid showing attachments (more-or-less lifted from the example on the Telerik site) and an "add new attachment" button which displays a filename box, browse button and an insert / cancel links... again, just like the example on the telerik site.

When I browse to a file (e.g. dialonly.png) and select it the filename (but not path) is populated in the filename box. I hit "insert" and I get this:

Source: System.Web

Message: Exception of type 'System.Web.HttpUnhandledException' was thrown.

Stack trace: at System.Web.UI.Page.HandleError(Exception e) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
at System.Web.UI.Page.ProcessRequest() 
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) 
at System.Web.UI.Page.ProcessRequest(HttpContext context) 
at ASP.trading_customerview_aspx.ProcessRequest(HttpContext context) in c:\Users\Kevin\AppData\Local\Temp\Temporary ASP.NET Files\root\31738672\d2138b1c\App_Web_m5moos4i.12.cs:line 0 
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 

Inner exception:

Source: System.Web.Extensions

Message: Invalid JSON primitive: dialonly.png.

Stack trace: at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializePrimitiveObject() 
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth) 
at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer) 
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit) 
at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input) 
at Telerik.Web.UI.RadUpload.LoadPostData(String postDataKey, NameValueCollection postCollection) 
at Telerik.Web.UI.RadWebControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) 
at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) 
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)



I'm pretty sure (having been back though subversion logs) that the only thing that's changed since this worked is that we're now using a newer build of the telerik ASP.Net AJAX suite than we were before when it worked. We're not using jQuery or any other library on that page, and nor are the controls embedded in any non-telerik controls. There is a RadAjaxManager and RadScriptManager on the page, and the user controls in question (I have the same problem on all of them) are loaded into a pane of a RadSplitter.

I'm at a bit of a loss as to where to start looking at this - I don't actually know where the JSON stuff is happening in the background, so I'm a bit in the dark as to where to look for more info!

Cheers for any help,

Kev
Veli
Telerik team
 answered on 07 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?