Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
This is a conceptual question...

I'm doing server-side advanced binding. My data source is stored in session state. The app allows a user to drill in on a particular row of the grid, which redirects to another page showing tons of detail not available in the grid. The detail page has previous and next buttons which allow the user to cursor through the rows that were displayed in the grid.

This works fine unless the user has resorted the grid. Drilling on the first record in the resorted grid, for example, gets me the original first record in the data source, not the data from the first row. (That is to say, DataSetIndex 0 no longer represents the same data as row 0 in the original data source.) It seems this is because the grid is using its own working copy of the data source I originally assigned. I could, of course, listen for sorting changes in the grid and resort the original data source along with what's happening in the grid, but that is a very inelegant solution.

What's a better way to do this?
Yavor
Telerik team
 answered on 28 Jul 2009
6 answers
219 views
After updating to Q2 - I am now receiving this javascript error on the RadUpload control.  Ideas?  Thanks.
T. Tsonev
Telerik team
 answered on 28 Jul 2009
1 answer
34 views
after telerik update, it is now showing two progress animations on ajax panels, just want the progress bar to show
Daniel
Telerik team
 answered on 28 Jul 2009
1 answer
137 views
Hi

I was just wondering if it is possible to remove the vertical scrollbar that is displayed in month view, as displayed in the screenshot below?

http://i970.photobucket.com/albums/ae187/paulehn/calscrollbar.jpg
T. Tsonev
Telerik team
 answered on 28 Jul 2009
3 answers
102 views
Hello all,
    I have done an example like the demo"export to PDF"http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/pdfexport/defaultcs.aspx
when i click my example,it download a RadGridExport.pdf,but when i open the RadGridExport.pdf,it can't open and tell me "打开本文档时发生错误。文件已损坏并且无法修复"(means that it damaged and can't repair)
when i open the demo's RadGridExport.pdf , it's all right.
I think that it is my code wrong, I don't know how to do.

Please suggest. thank you!
my code:
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadGrid1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Black" />
        <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1"
            ClientEvents-OnRequestStart="requestStart">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None"
            AllowSorting="true" Skin="Black" Width="745px" AllowPaging="True" OnItemCreated="RadGrid1_ItemCreated"
             OnNeedDataSource="RadGrid1_NeedDataSource"
            AutoGenerateColumns="False">
            <ExportSettings IgnorePaging="true" OpenInNewWindow="true">
                <Pdf PageHeight="297mm" PageWidth="210mm" PageTitle="SushiBar menu" />
            </ExportSettings>
            <MasterTableView CommandItemDisplay="Top"  DataKeyNames="PermissionsId"
                PageSize="5">
                <PagerStyle Mode="NumericPages" />
                <CommandItemTemplate>
<asp:Button ID="DownloadPDF" runat="server" Width="100%" CommandName="ExportToPdf"
CssClass="pdfButton" />
<asp:Image ID="Image1" runat="server" ImageUrl="Image/Backgr.png" AlternateText="Sushi Bar"
Width="100%" />
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="PermissionsId" DataType="System.Int32" ReadOnly="True"
                        SortExpression="PermissionsId" UniqueName="PermissionsId" HeaderText="PermissionsId">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PermissionsName" HeaderText="PermissionsName" SortExpression="PermissionsName"
                        UniqueName="PermissionsName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PermissionsNo" HeaderText="PermissionsNo" SortExpression="PermissionsNo"
                        UniqueName="PermissionsNo">
                    </telerik:GridBoundColumn>
                   
                </Columns>
                <HeaderStyle Font-Names="Arial Unicode MS" Font-Size="16px" HorizontalAlign="Center" />
            </MasterTableView>
        </telerik:RadGrid>
       
    </form>
</body>
</html>
Daniel
Telerik team
 answered on 28 Jul 2009
7 answers
381 views
so far - completely unable to get telerik Q2 2009 to work in MVC projects using any sort of encapsulation with ascx files.

Trying to use a combo box inside a ascx that is rendered with Html.RenderPartial.

Is this possible?  Or do all the rad controls have to go in the aspx views?
BaiH
Top achievements
Rank 1
 answered on 28 Jul 2009
11 answers
627 views
First I must say, thanks for this new addition, defintely a nice to have feature.

However I am having some issues with it when not used inside a RadGrid as a BinaryImageColumn.

I took my existing app that used pictures on the file system and changed it to use images in the database using BinaryImage.  My datasources are all LINQ Data Sources.  My SQL 2000 table has a photo column of type 'Image'.  I am using a FormView that gets it data from my LINQ data source. 
Looking at your example you use a SQL data source and I would guess that it returns the Image column as a byte[] but when using LINQ my image column comes back as System.Data.Linq.Binary.  This causes a 'Specified cast is not valid' exception.
My first work around was to change my Linq definition of my image column to type Byte[] and all works well. Except in another part of my app I use a RadGrid and the BinaryImageColumn it fails to work there.  I believe its the opposite issue that it's expecting the other type.
I would prefer to leave my LINQ definition to have the default Image column as a System.Data.Linq.Binary and deal with the casting issue.

Can someone tell me the syntax of how to cast between Byte[] and System.Data.Linq.Binary in the aspx page or do I have to do it in code behind?

Thanks,

Perry
BaiH
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
263 views
Is it possible to have more then one datasource with the <#%Eval fieldname%> literal?  I am using sql data source for a radgrid and I want to use another sql data source for a sub section underneath the radgrid in a lower hierarchy.
Princy
Top achievements
Rank 2
 answered on 28 Jul 2009
2 answers
141 views
Hi

i have created a grid with checkbox column. I would like to get the record Id for multiple selected rows in an OnClick event of a button. The button is not part of the grid.
sabarishbabu
Top achievements
Rank 1
 answered on 28 Jul 2009
1 answer
448 views
HI
I have Radgrid with hierarchy.
Now i have checkbox as item template in master detail view as well in detail table view.
how can i bind the checkbox with the dataset.
Princy
Top achievements
Rank 2
 answered on 28 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?