Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Ok, I have 2 RadGrids on my page as well as a number of other standard ASP.Net controls.

The first grid shows paged invoice data, displaying breif information for all invoices issued for a customer. This grid has a GridButtonColumn (defined as a LinkButton) on it that fires an event that updates the ASP.Net controls to reflect the standard invoice data (such as invoice and delivery addresses, Net, VAT and total costs, order number etc) for the selected invoice, and SHOULD update the second grid to show the line items for the invoice.

I have the page working so that I can page through the first grid (page size is set to 10 at the moment, but there could be more than 10 invoices) and even when I page through and select an invoice, the standard ASP.Net controls update ok.

However I cannot get the second grid (the one with the invoice line items in it) to update even though it is included in the UpdatedControls section of the RadAjaxManager for the first grid.

These grids aren't in users controls, but are in pages that use a masterpage. Other than that they simply reside in div's

Can anyone offer any suggestions?



Karl
Top achievements
Rank 1
 answered on 10 Jan 2011
0 answers
89 views
Hi,

 I am having list of holidays based on the month (in the stored procedure)... i need to display the holidays on the calendar..month wise. like jan1st new year on the date...Could you please let me know ,, how to do this.... 
Brown
Top achievements
Rank 1
 asked on 10 Jan 2011
3 answers
219 views
Hi,
While using the AsyncFileupload tool in safari browser it giving strange behavior. On client side validation fail 'OnClientValidationFailed', the remove link/button appears. When i am clicking on Remove button/link a file browser windows open and 'OnClientDeleting'  client side event is not getting raised. The expected functionality is that the file upload text-box and button should come. I have set MaxFileInputsCount to 1 and MultipleFileSelection to false.If i choose some file in this file browser, now two rows appears. One for validation fail and second one for successfull upload.Here the remove buttons work for both the rows. This thing works fine in IE/Firefox. I am using safari 5.0.3.

Reply soon.
Helen
Telerik team
 answered on 10 Jan 2011
5 answers
705 views
I am implementing the RadWindow to facilitate poping up a window from a context menu on the RadTreeView control. Here is a snippet of the code:

<telerik:RadWindowManager ID="windowManager" runat="server" OnClientClose="Refresh">
    <Windows>
        <telerik:RadWindow runat="server" ID="window" Modal="true"></telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

The URL that opens the window consists of a few querystring arguments that have GUIDs. So as a result, the URL is very long and looks like this:

http://rddev06/_layouts/LearningVillage/FolderManagement/MoveFolder.aspx?WebID=ad89d570-0efd-4741-af92-a422ccbca129&ListID=8ca6ea04-343b-4b55-a55a-139e3c2c3787&RootFolderID=d144c25e-aee0-4457-85cf-10b8af6a5216&ItemIDs=53

It seems to me that no matter what size (width) I specify, the RadWindow ignores the size spec. initially. It seems to expand the entire window to show the full URL in the status bar of the RadWindow popup.

I have even tried setting the VisibleStatusbar property on the RadWindow to false, and it doesn't do anything.

Has anyone else experienced the same issue. Again, I'm using the Prometheus controls.

Thanks!
Svetlina Anati
Telerik team
 answered on 10 Jan 2011
1 answer
58 views
hello
        I am using my form as User control in that form im having a link button which is used to see the over all view of records.  Those records will open in the new window(while using the Controls inside the userControl) then new window not opening.  Please help me on this isssue.


Thanks in advance
Svetlina Anati
Telerik team
 answered on 10 Jan 2011
1 answer
188 views
Hello,

I'm trying to send more information to process on the server side when a RadGrid Row is dropped. The issue is that the default postback event is very limited. You can't for example pass a simple string with a value. Right now the only solution I can think of is cancelling the RowDrop event in the client side and do another postback this time with my data passed in. Does anyone know another way to do it?

Seems very limited that you can have only a destination HTMLElement and a destination DataItem. Would be cool another argument let's say for passing arbitrary data.
Vasil
Telerik team
 answered on 10 Jan 2011
1 answer
316 views
Hi

I've tried to add some custom text dynamically from code behind to the calendardays based on some different code examples. It's working fine on pageload and all events is displayed in the calendar for the current month. But I'm not able to change month and display events from other months. In fact i can only switch month one time ex: from jan -> feb.

I've tried a coupe of different code examples all with the same month-problem. Any idea what I'm doing wrong?

        protected override void OnInit(EventArgs e)
        {
            Hashtable eventHash = GetEventCollection(false);
            DateTime rcDate = RadCalendar1.CalendarView.ViewStartDate;
            while (rcDate <= RadCalendar1.CalendarView.ViewEndDate)
            {
                string key = rcDate.ToString("yyyy-MM-dd");
                if (eventHash.ContainsKey(key))
                {
                    List<Event> eventList = (List<Event>)eventHash[key];
                    CalendarDayTemplate template = new CalendarDayTemplate(RadCalendar1, rcDate, eventList.Count);
                }
 
                rcDate = rcDate.AddDays(1.0);
            }
            base.OnInit(e);
        }
 
public class CalendarDayTemplate : ITemplate
    {
        private Control cellContent = new Control();
        public CalendarDayTemplate(RadCalendar myCalendar, DateTime cellDate, int myData)
        {
            RadCalendarDay newDay = new RadCalendarDay();
            PlaceHolder myPlaceHolder = new PlaceHolder();
            Page myPage = new Page();
 
            HtmlGenericControl divContainer = new HtmlGenericControl("div");
            divContainer.Attributes.Add("class", "CalendarDayContainer");
 
            HtmlGenericControl divDate = new HtmlGenericControl("div");
            divDate.Attributes.Add("class", "Date");
            divDate.InnerText = cellDate.Day.ToString();
 
            divContainer.Controls.Add(divDate);
 
            HtmlGenericControl divEvent = new HtmlGenericControl("div");
            divEvent.Attributes.Add("class", "Event");
 
            if (myData > 0)
                divEvent.InnerText = string.Concat(myData, " events");
 
            divContainer.Controls.Add(divEvent);
 
            myPlaceHolder.Controls.Add(divContainer);
 
            this.cellContent = myPlaceHolder;
 
            // Create a DayTemplate with a unique ID 
            DayTemplate dayTemplate = new DayTemplate();
            dayTemplate.ID = cellDate.ToString("MMddyyyy");
            dayTemplate.Content = this;
 
            // create a SpecialDay, associate it with the DayTemplate and add to Calendar 
            newDay.Date = cellDate;
            newDay.TemplateID = dayTemplate.ID;
            myCalendar.SpecialDays.Add(newDay);
 
            myCalendar.CalendarDayTemplates.Add(dayTemplate);
        }
 
        // Once the RadCalendar is instantiated this will be called once for each cell
        public void InstantiateIn(Control container)
        {
            container.Controls.Add(this.cellContent);
        }
    }
Marin
Telerik team
 answered on 10 Jan 2011
2 answers
286 views
Hi all,

In my website, every user has his/her own color and background image for Menu which are already saved in the database.
For example, user A has Image1, and Orange color.
Now I would like to apply Image1 for Menu background and Orange for selected Item on Menu.
I don't want to create a CSS for each user. 
What I need is using one CSS for all users and modified the code in the Server side to set the background image and color of selected item for particular user.

Thanks.

Andy.
Andy
Top achievements
Rank 1
 answered on 10 Jan 2011
1 answer
94 views
Hi,

I would like to find out if its possible to create a n-tier application that uses Rad controls that bind to WCF and then bind to Entity Framework. i know my wording might be incorrect but basically what the tittle of this thread imply.

Thanks in advance
Kiara
Top achievements
Rank 1
 answered on 10 Jan 2011
0 answers
100 views
HI;
We are using Telerik Grid /Hierarchy with Templates
 there are two issue first can you please tell us is there any way we can bind the events in the Innertemplate of Grid
since current functionality does not support that.
2. Can you please also tell us how to find Data when we click on the OuterTemplate
for example Indexitem for which row was click.
Please Reply ASAP
Manishkumar
Top achievements
Rank 1
 asked on 10 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?