Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
470 views
I used RadAjaxLoadingPanel control.At first I run the project with a small window.The RadAjaxLoadingPanel's height and width are both 100%,and then I click the maximize the RadAjaxLoadingPanel's height and width are not 100% but a beginning size of the small window

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Panel">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel   ID="RadAjaxLoadingPanel1" runat="server" Style="height: 100%;
        width: 100%;" Skin="" Transparency="30" >
        <div class="loading">
            <div style="width: 100%; height: 50%;">
            </div>
            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/loading5.gif" AlternateText="loading" />
            <asp:Label runat="server" Text="<%$Resources:Languages,loading%>" Style="font-family: Calibri;" />
        </div>
    </telerik:RadAjaxLoadingPanel>
    <fieldset style="width: 100%; height: 100%;">
        <asp:Panel ID="Panel" runat="server" Style="width: 100%; height: 100%;">
                <table style="height: 100%; width: 100%;" cellpadding="0" cellspacing="0">
                 </table>
        </asp:Panel>
    </fieldset>
I set the UpdatePanelsRenderMode="Inline"  and try set RadAjaxManager's height and width 100%
,but no use.Please help look at what went wrong.Thank you.
Diana
Top achievements
Rank 1
 answered on 16 Sep 2010
2 answers
392 views
Hi

In javascript how do I access custom attributes that I have added to a RadDatePicker in the code behind?

protected void Page_Load(object sender, EventArgs e)
{
    RadDatePicker1.ClientEvents.OnDateSelected = "LoadChildrenForDatePicker";
    RadDatePicker1.Attributes.Add("children", "someothercontrolid");
}


and the javascript:
function LoadChildrenForDatePicker(sender, e)
{
    if (e.get_oldDate() != e.get_newDate())
    {
        //doesn't work - throws error
        //var childs = sender.getAttribute("children");
        //doesn't work - returns null
        var childs = sender.get_element().getAttribute("children");
    }
}
Jeremy
Top achievements
Rank 1
 answered on 16 Sep 2010
2 answers
232 views
Hi

I want to prevent a user closing the radwindow (which pops up by clicking on a row in a grid) without entering some data
I have tried onUnload and onBeforeUnload event but my telerik window runs those events after i close the window

Ex: If a click a row window pops up and then i close it and then If i try to open pop up by clicking on a different row then the onunload and onbeforeunload events are running

Do you have any idea how to prevent a user closing the window

by giving an alert or by disabling the close button on top (ofcourse we have customized close button on the page)

I have to allow user if he enters data or prevent him if doesn't enter
is there a way to do it for radwindow
anvesh amaravadi
Top achievements
Rank 1
 answered on 16 Sep 2010
4 answers
121 views
Hi,

My client has told me that sometimes the charts in their application are not rendering in IE6.

How I've got the charts setup:

There's a RadGrid hooked up to an EntitySpaces DataSource for data retrieval. On the DataBound event on the RadGrid, I'm looping through each row and getting the required data to then place a ChartSeriesItem in each of my two charts. There are two RadComboBoxes (as drop downs), which fire a Rebind on the RadGrid on the SelectedIndexChanged event to update the data. This works fine for me 100% of the time, and my client says that about 75% of the time it works for him. However, he said that in IE6 (their standard browser), it's quite common for the charts to not show after selecting a new value from one of the drop downs. The screen space is still reserved for where the charts would be, resulting in a large blank space, but no data is rendered. All of these controls are housed within an ASP.NET UpdatePanel for partial postbacks. I have not yet been able to replicate this issue on my environment.

Anybody have any suggestions as to what might be happening?

Cheers
Kieran
Top achievements
Rank 1
 answered on 15 Sep 2010
2 answers
97 views
I would like to display a grid differently than the normal "rows" view.  I have attached a screen capture graphic that shows (basically) two large cells across and two rows down with each of the resulting 4 cells being a different record in the results data set.  This particular screen capture displays houses for sale, but the contents could, obviously, be anything (employees, clients, catalog products, etc.).

Questions:
(1) Can the grid display record sets in this manner complete with paging capabilities?
(2) If so, is there an example or sample that can demonstrate the basics of getting it to do this?

Thanks in advance!

Lynn
Lynn
Top achievements
Rank 2
 answered on 15 Sep 2010
2 answers
156 views
Hello, today I upgraded my fully functioning FileExplorer to the new version, using the installer Telerik.Web.UI_2010_2_826_Dev.msi.  First there was a build error because there is no longer a PageSize property on the FileExplorer, no big deal I just removed it.  The bigger problem I'm noticing is that my MoveFile and MoveFile methods in my custom content provider no longer work.  The values passed in as path and newpath are incorrect, and do not contain the path separator.  I am using
'\\'
as my PathSeparator, and I'm wondering if that is causing problems.  I didn't see anything in the documentation about these changes with the upgrade.  I have tried uninstalling and reinstalling and these problems still exist.  Did I use the wrong installer or am I doing something else wrong here?
Aaron C
Top achievements
Rank 1
 answered on 15 Sep 2010
2 answers
81 views
Hi,
  I'm trying to bind the data in my RadScheduler using the Data Source Property.  I'm following the instructions in the Help file and have hit a stone wall.  According to the help file, this way of binding allows you to "bind the scheduler directly to a DataTable or DataView (IListSource), or to various List objects (IEnumerable)".  In the demo it states "RadScheduler can also be bound to both generic and non-generic collections. This allows you to directly use your business objects as a data source."
  Here is my problem, the properties of my business objects reflect the fields of the records in the database. The properties in the Help file do not reflect the fields of the records in the database.  In the AppointmentInfo Class of the example, there is the following property:

public RecurrenceState RecurrenceState
{
    get { return recurState; }
    set { recurState = value; }

This is not a field in the example Database structure.

I cannot add fields to my business objects because they are derived directly from the database and are integrated into a framework (Mere Mortals.NET) managing many aspects of the data-to-database functions.  Therefore, I cannot create a generic collection of type <MyBusinessObject> and bind the scheduler to it.
Also, I do not understand how you would use the Data Property to bind the RadScheduler to a DataTable or DataSet.  Wouldn't you run into the same problem with the RecurrenceState property shown above?

At the moment, I have the RadScheduler bound to the Generic List and it is returning the appointments, however, I am trying to emulate the following code using my business objects and have no way of reconciling the RecurrenceState property passed in via the Appointment object (source) and my business object:

public void CopyInfo(Appointment source)
    {
        subject = source.Subject;
        start = source.Start;
        end = source.End;
 ------>recurState = source.RecurrenceState; <------------Here
        recurData = source.RecurrenceRule;
        if (source.RecurrenceParentID != null)
           recurParentID = source.RecurrenceParentID.ToString();
        Resource r = source.Resources.GetResourceByType("Room");
        if (r != null)
            room = (int) r.Key;

Any elucidation would be great.

Thanks for all your help,

Don

Daniel
Top achievements
Rank 1
 answered on 15 Sep 2010
4 answers
224 views
I have two Calendar Controls on a page for Start and End Dates for a scheduling app.  In the page load I am setting the dates that are saved in the database as such:

radcalStartDate.SelectedDate = oSurvey.StartDate;

radcalEndDate.SelectedDate = oSurvey.EndDate;


The dates get selected fine, however, if the dates are in future months there is an issue.

for example the Start Date is June 15, the End Date is June 30...  the dates themselves are selected but when the page renders the calendar controls are still focused on the current month of May.  I have to go forward a month in order to see the selected dates.  How can I get the controls to focus on the month where the day is selected?

Espen Fosshaug
Top achievements
Rank 1
 answered on 15 Sep 2010
4 answers
159 views
Hi,

I have a RadTreeView that is populated with data using linq;
---
var sobjects = from so in context.Source
                           select new { so.ID, so.Name, so.Parent_ID, StatusID=so.Status_1.ID };

            SourceRadTreeView.DataSource = sobjects;
---
I then want to extract the StatusID value in the NodeDataBound event for each node.
e.Node.ToolTip = (e.Node.DataItem as DataRow)["StatusID"].ToString();
(as according to documentation)
But then I get;
Object reference not set to an instance of an object.

Solution?
/Erik Lidman
Erik Lidman
Top achievements
Rank 1
 answered on 15 Sep 2010
2 answers
214 views
Hello,

Telerik ASP.NET AJAX v2009.01.0527.20

I have a RadGrid that displays differently based on IE's brower mode.  Looks fine in IE-8 but not in IE-8 Compatability Mode (which I believe renders the same as IE-7).  the first screenshot shows IE-8 looking good.  The second screenshot shows IE-9 Compatability Mode adding filler space to the end of the grid.

My grid is set to Height="100%" and Width="100%" and resides in a RadSplitter pane.  It resized to fill the browser's available space.  The grid has several GridBoundColumn and custom columns (based on GridTemplateColumm), and each column has a defined width (in pixels) in the HeaderStyle (i.e., <HeaderStyle Width="##px" />).

IE-8 seems to add additional spacing to each column as it renders the grid to the 100% width of the defined area.  IE-8 Compatability Mode seems to add all the additional space to after the last column.

Here is part of my grid definition:
<telerik:RadGrid runat="server"
    ID="RadGrid1"
    AllowFilteringByColumn="True"
    AllowPaging="True"
    AllowSorting="True"
    AutoGenerateColumns="False"
    Height="100%"
    OnDataBound="RadGrid1_DataBound"
    OnItemCommand="RadGrid1_ItemCommand"
    OnItemCreated="RadGrid1_ItemCreated"
    OnItemDataBound="RadGrid1_ItemDataBound"
    OnNeedDataSource="RadGrid1_NeedDataSource"
    OnPreRender="RadGrid1_PreRender"
    PageSize="20"
    ShowFooter="True"
    ShowStatusBar="True"
    Width="100%"
    >
  
    <ClientSettings EnableRowHoverStyle="true">
        <Resizing AllowColumnResize="false"
               ClipCellContentOnResize="true"
               EnableRealTimeResize="true" />
        <Selecting AllowRowSelect="true" />
        <Scrolling AllowScroll="true" UseStaticHeaders="true" />
    </ClientSettings>
  
    <MasterTableView AllowPaging="true" TableLayout="Fixed">
        <Columns>
...
        </Columns>
    </MasterTableView>
  
    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
</telerik:RadGrid>

Is there a way to make IE-8 Compatability Mode look correct like IE-8 does?

Thanks,

Randall Price
Virginia Tech - Microsoft Implementation Group
Randall
Top achievements
Rank 2
 answered on 15 Sep 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?