Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
117 views
Greetings,

I have a RadGrid, RadAjaxManager, RadToolbar and RadHtmlChart present on a page.  The RadAjaxManager is configured like so (the ControlIDs are obviously named):

<telerik:RadAjaxManager runat="server" ID="MainAjaxManager" DefaultLoadingPanelID="MainLoadingPanel">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="SurveyGrid">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="SurveyChart" />
                    <telerik:AjaxUpdatedControl ControlID="SurveyGrid" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="onRequestStart" OnResponseEnd="onResponseEnd" />
    </telerik:RadAjaxManager>

I am trying to update the chart when firing a grid-based custom command from javascript like so:

function onToolBarButtonClicking(sender, e) {
                switch (e.get_item().get_value()) {
                    case 'DataSave':
                        if (isInputValid() == true) {
                            var grd = $find('<%= SurveyGrid.ClientID %>').get_masterTableView();
                            grd.fireCommand('UpdateEdited', '');
                        }
 
                        break;
                    case 'NavCancel':
                        var grd = $find('<%= SurveyGrid.ClientID %>').get_masterTableView();
                        grd.fireCommand('CancelAll', '');
 
                        break;
                    default:
                        break;
                }
            }

Basically, at the time of partial postback, the grid requests its data source, but the chart doesn't.  The chart only requests its data source when the page initially loads.  Perhaps I'm missing something obvious.  I greatly appreciate any suggestions.

Konstantin Dikov
Telerik team
 answered on 19 Dec 2014
8 answers
189 views
Hi,

I'm having an issue with real time column resizing on a rad grid. 
I can actually reproduce the issue on your demo page here:

http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/columns/column-row-resize-reorder/defaultcs.aspx

Choose the No wrap for cell content and allow resize to fit options. 

Resize the postal code and address columns by moving them right so that the browser window horizontal scroll bar appears (screenshot 1).
Scroll the window completely to the right. 
Attempt to resize the postal code column to the left. 
The left hand side of the grid shoots to the right very quickly. 
In some cases like in  screenshot 2, the address column is lost. 
Sometimes the columns get reordered. 
 
I've seen it in all browsers.
 
 I know that in the grid on your demo it does not make sense to make the grid this wide. But in our own grids we have a lot more content so resizing to this type of width is necessary. 
 
 Would you have any suggestions to eliminate this issue?
 
 Thanks
Waynen12
Top achievements
Rank 1
 answered on 19 Dec 2014
1 answer
243 views
All the multiple file upload examples I've seen upload the files as soon as they are selected, which is not what I need.  I need to allow the users to select the files first, then click the upload button.  This scrrenshot is an example of what I need:

screenshot

Please let me know how to do this with AsuncUpload.  Thanks
Plamen
Telerik team
 answered on 19 Dec 2014
1 answer
153 views
Hi every body,

I have a <asp:ImageButton> that is supposed to force the browser to open "Save As" dialog box in attempt to download an image into the client machine.
The image was previously produced successfully in a previous process:

 Using bitmap As New Bitmap(188, 306)
            browser.DrawToBitmap(bitmap, New Rectangle(0, 0, 188, 306))
            Using stream As New MemoryStream()
                bitmap.Save(stream, System.Drawing.Imaging.ImageFormat.Png)
                Dim bytes As Byte() = stream.ToArray()
                myImage.ImageUrl = "data:image/png;base64," + Convert.ToBase64String(bytes)
            End Using
 End Using

and is shown successfully within the <asp:Image> tag.


My Download ImageButton has the following code behind:

Private Sub imgbtn_Download_Click(sender As Object, e As ImageClickEventArgs) Handles imgbtn_Download.Click
        Dim bytes As Byte() = Convert.FromBase64String(myImage.ImageUrl.Split(",")(1))
        Response.Clear()
        Response.Buffer = True
        Response.Charset = ""
        Response.Cache.SetCacheability(HttpCacheability.NoCache)
        Response.ContentType = "image/png"
        Response.AppendHeader("Content-Disposition", "attachment; filename=" + "abc.png")
        Response.BinaryWrite(bytes)
        Response.Flush()
        Response.End()
    End Sub

I noticed that if the <asp:ImageButton> was placed inside <Telerik:RadAjaxPanel> the "Save As" dialog box doesn't pop up and the consequently download process doesn't start. However, if I shift the ImageButton control out of the <Telerik:RadAjaxPanel> it works successfuly.

So is there any explanation from Telerik Team why such behavior is taking place. And is there any recommendation to make the "Save As" downlaod process succeeds while the <asp:ImageButton> is inside the <Telerik:RadAjaxPanel>?

Regards;
Viktor Tachev
Telerik team
 answered on 19 Dec 2014
2 answers
83 views
Hi,

I have a problem with my pivotGrid (last update of control)
My pivotgrid is connected to a multidimensionnal database and I would like to set in row zone a hierarchy.

this causes a shift of he columns zone which is displayed on the right of the grid, not aligned with the aggregated fields, as shown in the attached file.

is there something I can do with the properties of the pivotgrid to fix this display issue.

thanks in advance

Regards
Jérome
Top achievements
Rank 1
 answered on 19 Dec 2014
7 answers
194 views
Hi there

I am probably doing something really stupid or not understanding how to link up to the datasource properly but I have been working on this for a couple of days and I can't seem to work out how to get the rating to work with a datasource.

I have a stand alone rating control on my page that I wanted to link up to an  accessdatasource that would display the current rating.  (I also want to be able to allow users to rate using the same control and save the value into the database too, but that's another story)

Here is what I have

<div id="info">
            Hover over image for options and info <table id="rating">
                <tr>
                    <td>Rate this album:</td><td>
                        <telerik:RadRating ID="RadRating1" runat="server" AutoPostBack="True" Skin="Metro" DataSourceID="AccessDataSource3" Precision="Item" AppendDataBoundItems="True">
                            <ItemBinding ValueField="AverageRatingRounded"></ItemBinding>                                 
                        </telerik:RadRating>
                    </td>
                </tr>
            </table>
        </div>
 
 
 
 <asp:AccessDataSource ID="AccessDataSource3" runat="server" DataFile="~/App_Data/ASPNetDB.accdb"
        SelectCommand="SELECT AlbumID, CountRating, Totalrating, SUM(Totalrating) / CountRating AS AverageRating, ROUND(AverageRating, 0) AS AverageRatingRounded FROM qryRating GROUP BY AlbumID, CountRating, Totalrating HAVING (AlbumID = ?)"><SelectParameters>
            <asp:QueryStringParameter Name="AlbumID" QueryStringField="albumID" Type="Int32" />
        </SelectParameters>
         
    </asp:AccessDataSource>

As you can see, the datasource is based on a query which works out how many times the album has been rated and what the average rating is already, (by counting times rated, adding up all the ratings and dividing the total ratings by the count of times rated, then by rounding to whole value)

All that displays though is one empty star (if I hover over it, it does display the average rating though)

I have looked at EVERY demo and documentation on databinding for the rating control but I just can't seem to get my head around what I should be doing.

Please, please, please point me in the right direction before I pull all my hair out and bite my nails down to the quick

Thank you in advance


Ianko
Telerik team
 answered on 19 Dec 2014
1 answer
58 views
Hi. i´m developing an web with telerik and need to know if user has drag any header to group filtering in a postback. I can use client side o server side code, there are any way to achieve this?
Eyup
Telerik team
 answered on 19 Dec 2014
4 answers
120 views
Hi

I am using Telerik Version  2013.2.625.40 , is the Batch Update Exist in RadTreeList ?.
This is clients requirement ,

Please let me know

Karthik.K

Karthik Kantharaj
Top achievements
Rank 1
 answered on 19 Dec 2014
5 answers
327 views
I am binding my grid dynamically on the client side with JSON data similar to this example http://demos.telerik.com/aspnet-ajax/grid/examples/client/livedata/defaultcs.aspx. However I cannot get paging to work.

There is no mention on this page http://www.telerik.com/help/aspnet-ajax/client-side-binding-specifics.html of any limitations with paging. I have 25 items in my datasource and the page size is set to 10. However my grid footer shows " Page 1 of 2, items 1 to 10 of 11. " when displaying all 25 items.
<telerik:RadGrid runat="server" ID="RadGrid1" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" PageSize="10">

Do I need to specify anything else to get it to show the correct number of records?
John
Top achievements
Rank 1
 answered on 18 Dec 2014
6 answers
57 views
hey guys need some help here as we're upgrading or trying to upgrade telerik controls from:
File Version 2010.1.519.35  to File Version 2013.3.1114.40

there's an issue in the rad Filter as it cannot find the ControlName which back then was "rfContextMenu" but now I have no idea.

if it references a different "default Name" for the controls, I could do a simple find and replace. can someone help me out here cuz I have a lot of "code behind" for 66+ filters for prerender, apply and item command that the program is dependent on .
thanks 
rik - below is the code behind that can't find "rfContextMenu"

 protected void WorkOrdersRadFilter_PreRender(object sender, EventArgs e)
        {
            RadContextMenu menu = WorkOrdersRadFilter.FindControl("rfContextMenu") as RadContextMenu;
            WorkOrdersRadFilter.RootGroupItem.Controls[2].Controls[1].Visible = false;
            menu.DefaultGroupSettings.Height = Unit.Pixel(250);
            menu.EnableAutoScroll = true;
            WorkOrdersRadFilter.Culture = Thread.CurrentThread.CurrentCulture;            renameFilter();
            var ctrl = ControlsOfType<ITextControl>(WorkOrdersRadFilter).Where(p => p.GetType() != typeof(LiteralControl));
            if (ctrl.Count() > 0)
                (ctrl.Last() as Control).Focus();
            foreach (var picker in ControlsOfType<RadDateTimePicker>(sender as Control))
            {
               // picker.SelectedDate = DateTime.Today;
                picker.DateInput.DateFormat = "MM/dd/yyyy";
                picker.DateInput.DisplayDateFormat = "MM/dd/yyyy";
            }
        }
rik butcher
Top achievements
Rank 1
 answered on 18 Dec 2014
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?