Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
62 views
Hello,

Could we please have another demo added to this page: http://demos.telerik.com/aspnet-ajax/grid/examples/clientbinding/defaultcs.aspx that shows how a RadGrid can be bound to an OData service containing links? That is, a master/detail (parent/child) relationship between two feeds?

Background: I have created an OData feed with WCF Data Services and Entity Framework. It contains a relationship (e.g. Product Categories, each containing multiple Products). I can't see how to configure the RadGrid to display this.

Thank you for any help!

Alex Angas.
Veli
Telerik team
 answered on 03 Oct 2011
1 answer
84 views
Dear Telerik,

The chart has been configured EmptyValue = true, ChartSeriesOrientation = Horizontal and Skin = Default.

Item label of series shows incorrectly when its value is empty. 

Can you check what issue with the chart?

Please refer my attached file for information.

Thanks / Phong Dang.
Peshito
Telerik team
 answered on 03 Oct 2011
2 answers
55 views
Hi Guys,

While uploading files with the Media Manager, I'm trying to upload a 4mb file and it constantly looses the connection and the upload fails. Is there something that I'm doing wrong with how I set this up?

Thanks for your time,
William
William
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
161 views
Hi Telerik,

I am confused. I was under the impression that if I had the following page declaration:

<%@ Page Title="Home Page" MasterPageFile="~/Views/Shared/WebForm.master" EnableViewState="False" Language="C#" AutoEventWireup="True" CodeBehind="Dashboard.aspx.cs" Inherits="CableSolve.Web.Dashboard.Dashboard"%>

that ViewState for controls on the page, at least when not explicitly stated, would be disabled. Is this an erroneous assumption? If so, what does setting ViewState at the Page level do?

If my assumption is not erroneous -- I am seeing the following behavior:

  • Inside of an event for RadTabStrip I set my RadTabStrip's selected index to 1 and my MultiPage.PageViews[1].Selected = true.
  • Instead of calling Update on an UpdatePanel to visually show the changes to the MultiPage, I register a StartupScript.
  • Now, client-side, I set the MultiPage's PageView. This now causes the PageView to visually change for the user.
  • I then refresh the page. In my control regeneration code I see that my TabStrip and MultiPage are both set with indices of 1.
  • The RadTabStrip shows the tab at index 1 selected, but the MultiPage shows the PageView at index 0.

If I call Update on an UpdatePanel, instead of doing the changes client-side, everything works great.
If I disable ViewState on the MultiPage, everything works great.

This was just a surprise to me because I thought that the ViewState was implicitly disabled for the control. I hadn't set the ViewState one way or the other, and I know it defaults to true, but I thought the Page would override this value.

/// <summary>
/// Performs one tick of a timer on the chart.
/// Ticks based on time for testability and to prevent
/// weird cases when skipping the clock time forward.
/// </summary>
public void DoTimerCycleTick(object sender, TimerEventArgs eventArgs)
{
    GlobalSettings globalSettings = StateManager.GetStates<GlobalSettings>();
 
    if( globalSettings.CycleEnabled )
    {
        if (!Equals(DateTime.Now.CompareTo(globalSettings.TimeLastCycled.AddMinutes(globalSettings.CycleInterval)), -1)) //CompareTo returns -1 when time is earlier than.
        {
            int oldIndex = SelectedIndex;
            int newIndex = (oldIndex + 1) != Tabs.Count ? (oldIndex + 1) : 0;
 
            SelectedIndex = newIndex;
            LayoutManager.Instance.MultiPage.PageViews[newIndex].Selected = true;
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "KEY", string.Format("OnServerTabSelected({0});", newIndex), true);
            globalSettings.TimeLastCycled = DateTime.Now;
        }
    }
 
    StateManager.SaveGlobalSettings(globalSettings);
}

var showLoadingPanel = true;
function OnServerTabSelected(newIndex) {
    var oldID = $find(multiPageID).get_selectedPageView().get_id();
    var newID = $find(multiPageID).get_pageViews().getPageView(newIndex).get_id();
 
    if ($telerik.$("#" + oldID).is(":visible")) {
        $telerik.$("#" + oldID).fadeOut(1000, function () {
            $telerik.$("#" + newID).fadeIn(1000, function () {
                showLoadingPanel = true;
                $find(multiPageID).set_selectedIndex(newIndex);
            });
        });
 
        showLoadingPanel = false;
        FixSplitter($find(rightPaneID));
        return;
    }
}

Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
2 answers
54 views
I have a radgrid on a multipage in a Intrasite module. The OnNeedDataSource doesn't seem to fire when the multipage shows the pageview with the datagrid. But if i click the Grid tab again after clicking first tab the OnNeedDataSource  firing.

The Grid is placed in the second tab which is not a selected page initially.

Please help me 


Thanks
Gopinath
Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
3 answers
228 views

i am working on a web application that needs to load customised grid column headers depending on the logged in users locale.

there are a number of different grids in the application, and whilst many of the header labels for these grids are generic, a small number are not and need to be loaded at runtime to the term relevant to them.

how would i do this?

currently my grid is populated from a datatable and the column names are coming from the datatable column names.

i think first step will be to create my localised column names in a database for each locale and bring them into my datatable.

i just need to know how to populate/override my radgrid column header text with the database values for specific columns.

Mark
Top achievements
Rank 1
 answered on 03 Oct 2011
2 answers
46 views

One of my end-user copied this kind of text from Word:

<P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN style="TEXT-DECORATION: underline"><SPAN style="mso-ansi-language: EN-US" lang=EN-US>Symptom<o:p></o:p></SPAN></SPAN></B></P>

The problem is that the RadEditor transforms that to:

<p class="MsoNormal"><b style="mso-bidi-font-weight: normal;">Symptom<o:p _rdEditor_exists="1"></o:p></b></p>

Here, the "underline" style disappears. Is there a way to prevent that? 

jc mag
Top achievements
Rank 1
 answered on 03 Oct 2011
1 answer
76 views
Hi there,

I have a little problem with my Radcombobox. When I am opening the Advanced form and I am clicking on a combobox the view looks fine. But when I start scrolling the scheduler is scrolling and the items are  scrolling with it. I added a screenshot of it in the attached files. 

Does anyone know how to disable scrolling when the Advanced form is openened, or how to solve this problem.

Hope someone can help me,

Thanks
Dimitar Terziev
Telerik team
 answered on 03 Oct 2011
1 answer
67 views
I have a grid with 7 columns of which 3 are checkboxes. I have applied sorting in the grid as shown below :-
<telerik:RadGrid ID="grdSearchResults" runat="server" AllowSorting="true" 
  
GridLines="None" Skin="Windows7" AutoGenerateColumns="False" 
  
PageSize="5" onitemdatabound="grdSearchResults_ItemDataBound" 
  
onneeddatasource="grdSearchResults_NeedDataSource" >
  
<ClientSettings EnablePostBackOnRowClick="true" EnableRowHoverStyle="true"> </ClientSettings>
  
<MasterTableView Width="100%" TableLayout="Auto" CommandItemDisplay="Top" AllowPaging="true" AllowSorting="true" PageSize="10" >
When I click on any of the column headers the grid is sorted correctly for the first 4 columns. However the 3 checkbox columns are not re-ordered according to the newly sorted grid. I am attaching screenshots for "Grid before sorting" and "Grid After Sorting" to get a better idea. The 3 chkbox columns are manipulated in the itemdatabound event of the rad grid. The code of item databound event is as follows :-
protected void grdSearchResults_ItemDataBound(object sender, GridItemEventArgs e)
        {
            try
            {
            if (e.Item is GridDataItem)
            {
                DataTable dt = (DataTable)ViewState["StatementList"];
                if (dt != null)
                {
                     
                        string credit = dt.Rows[e.Item.ItemIndex]["CreditImage"].ToString();
                        string BackImages = dt.Rows[e.Item.ItemIndex]["BackImage"].ToString();
                        string AddImages = dt.Rows[e.Item.ItemIndex]["Image"].ToString();
  
                        CheckBox chkCredits = (CheckBox)e.Item.FindControl("chkCredits");
                        CheckBox chkBackImages = (CheckBox)e.Item.FindControl("chkBackImages");
                        CheckBox chkAddImages = (CheckBox)e.Item.FindControl("chkAddImages");
  
  
                        if (credit == "True")
                            chkCredits.Checked = true;
                        else
                            chkCredits.Checked = false;
                        if (BackImages == "True")
                            chkBackImages.Checked = true;
                        else
                            chkBackImages.Checked = false;
                        if (AddImages == "True")
                            chkAddImages.Checked = true;
                        else
                            chkAddImages.Checked = false;
                }
  
            }
          
            }
            catch (Exception ex)
           {
                Log.WriteLine(LogParams.USERCONTROLS, "StatementGrid : grdSearchResults_ItemDataBound : " + ex.Message, LogLevel.Error, LogParams.ERRORMSG);
                LoadDummyData();
            }
        }
Let me know how can I solve this issue and get the sorting right.
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Oct 2011
0 answers
30 views
Hello,

I have a web part which contains RadPanelBar.Inside it there are many RadPanelItem.One of my RadPanelItem contains a FileUpload(ASP.Net file upload) control and also a button to submit it after browsing the image.I have used RadAjaxManager,but the page refresh and also i am not getting the HasFile property of FileUpload control at server side. Please give the solution for this problem.

Thanks
Er.Velkumar
Velkumar
Top achievements
Rank 2
 asked on 03 Oct 2011
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?