Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
Hi,
I'm just looking for the standard idiom for catching an event (a button click for example) on the client, doing an ajax postback to do a save and then displaying a dialog afterward. Basically, in my app, I have a button for running a particular report. However, before running the report I want any changes the user made to be saved. Once saved, I need to display a dialog to collect parameters for the report.
So, the psuedo code on the client would be something like this:

function OnSomeButtonClick()
{
    // make a call to the server to save the current page data
    // upon returning from the previous ajax call, open an RadWindow
}

If someone could kindly help me fill in the blanks I'd sure appreciate it.
Thanks ... Ed
HHalim
Top achievements
Rank 2
 answered on 13 Oct 2009
6 answers
204 views
In my ContextMenuItemClick event handler, I'm adding a new RadTreeNode to e.Node.Nodes, but the code has no effect.

Can you tell me why?

I have attached my small VS2008 project where the problem occurs.  I had to change the extension from .zip attachment to .jpg, so detach it and rename to .zip before extracting it.

Thanks.
Ez
Top achievements
Rank 1
 answered on 13 Oct 2009
8 answers
352 views
I would like about 3 pixels between each of my RadDocks boxes and I have set the style of each to have a bottom padding of 3px. The problem is that when the page initial loads all the docks are squished together and I have to actually move them and drop them back in place before the padding "shows up". I am using the Office 2007 skin. Any ideas on how to force space between the docks (We are calling them Widgets).

Thanks

Paul
James
Top achievements
Rank 1
 answered on 13 Oct 2009
2 answers
126 views
I have a RadComboBox with an Item Template to do multi selection.  When the user clicks in the check boxes in the drop down the appropriate text is placed in the Combobox Text just as in the Telerik examples.  But When the user closes the combo I want the server event OnSelectedIndexChanged to fire so I can reload other combos based on the selections from the previous combo. 

The only way I could get OnSelectedIndexChanged  to fire is by setting AutoPostPack to "True".  But when I did that it would wipe out the text of the changed combobox.  So I set EnableViewState to "False" and that wiped out the entire combobox.

How can I retain the text values in the combobox after a postback?  Or am I going about this the wrong way?




<telerik:RadComboBox ID="cbOrganization" Runat="server"  
                        AppendDataBoundItems="True" HighlightTemplatedItems="True"                          
                        OnItemsRequested="cbOrganization_ItemsRequested" 
                        OnSelectedIndexChanged="cbOrganization_SelectedIndexChanged"                         
                        AutoPostBack="True"
                        <ItemTemplate> 
                            <asp:CheckBox ID="chk" runat="server" onclick="StopPropagation(event)"  
                                Text='<%# DataBinder.Eval(Container.DataItem, "fffb_organizations") %>'  
                                oncheckedchanged="chk_CheckedChanged" /> 
                        </ItemTemplate> 
                        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                    </telerik:RadComboBox> 



Eric Turner
Top achievements
Rank 1
 answered on 13 Oct 2009
4 answers
161 views
Folks,

I have seen this issue referenced, but no resolution. Essentially, it is this:

When a StartsWith or Contains Filter is used with the RadComboBox, the images disappear in the dropdown after the first Open. I noticed that if a full postback occurs, the images will eventually show again, but if AJAX is used on the selecteditemchanged event then the images are forever gone until the entire page is reloaded. I have tried to workaround this is numerous ways, even trying to set the text to an initial null state...all to no avail.

What is the workaround for this issue. Under the current situation the image is essentially useless (and invisible) after a single click, regardless of how many times a user may be opening and closing it.

Thoughts? Help!

Simon
Telerik team
 answered on 13 Oct 2009
1 answer
357 views

Dear Sir/Madam,

I am adding series programmatically. I want to give "Red" color to first series & "Green" to second. and Series should display on top of chart.like

1. Series_1      2. series_2  3. Series_3

code to add series is as follows:

// dtSource.Rows.Clear();

chart.ChartTitle.TextBlock.Text =

"Report Summary";

 

crtSeries =

new ChartSeries("Total");

 

chart.AddChartSeries(crtSeries);

crtSeries.Type =

ChartSeriesType.Bar;

 

 

//crtSeries.Appearance.FillStyle.MainColor = System.Drawing.Color.Red;

 

 

//crtSeries.Appearance.FillStyle.SecondColor = System.Drawing.Color.Red;

 

crtSeries.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.

StyleSeriesItemLabel.ItemLabelLocation.Auto;

 

crtSeries =

new ChartSeries("Pending");

 

chart.AddChartSeries(crtSeries);

crtSeries.Type =

ChartSeriesType.Bar;

 

 

//crtSeries.Appearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Solid;

 

 

//crtSeries.Appearance.FillStyle.SecondColor = System.Drawing.Color.Green;

 

crtSeries.Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.

StyleSeriesItemLabel.ItemLabelLocation.Auto;


please resolve ASAP..

 

Schlurk
Top achievements
Rank 2
 answered on 13 Oct 2009
1 answer
70 views
Hi

I have a problem with the setting ShowNavigationPane = false (I set this in Page_Init ,If i set it to true it all works fine)
In doing so, i get a problem with the viewstate when clicking the 'month' view tab, I think its because i am not setting a date at some point but i am unsure of what date i need to set it to ? Can you help ?

 protected void RadScheduler1_NavigationCommand(object sender, SchedulerNavigationCommandEventArgs e)  
    {  
 
        if (e.Command == SchedulerNavigationCommand.SwitchToDayView)  
        {  
            RadScheduler1.SelectedView = SchedulerViewType.DayView;  
            RadCalendar1.SelectedDate = e.SelectedDate.Date;  
        }  
        else  
        {  
 
            if (e.Command == SchedulerNavigationCommand.SwitchToWeekView)  
            {  
                RadScheduler1.SelectedView = SchedulerViewType.WeekView;  
                RadCalendar1.SelectedDate = e.SelectedDate.Date;  
            }  
            else  
            {  
 
                if (e.Command == SchedulerNavigationCommand.SwitchToMonthView)  
                {  
                    RadScheduler1.SelectedView = SchedulerViewType.MonthView; 
                        // I THINK THE PROBLEM IS THAT I NEED TO SET THE MONTHS DATE HERE, BUT AM NOT SURE IN WHAT FORMAT?                   
 
                }  
                else  
                {  
                    RadScheduler1.SelectedView = SchedulerViewType.DayView;  
                    RadCalendar1.SelectedDate = e.SelectedDate.Date;  
                }  
 
            }  
        }  
 
 
        datetimeFilter = e.SelectedDate.Date.ToShortDateString(); // this is used elsewhere in the page          
        BindData(); // binds data elsewhere  
 
          
    } 



The viewstate error i get is
Execution
Error

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

Thanks for your help in this matter
Andrew
Top achievements
Rank 1
 answered on 13 Oct 2009
2 answers
205 views
Hi

We're using a Popup User control to edit items on a rad grid.  Everything is working fine.  However, we would like to a pass a parameter from the main page to the user control when the user clicks the select button which is not contained in the underlined dataset.

Is there an easy way to do this?

Thanks in advance.
Paul Mc
Top achievements
Rank 1
 answered on 13 Oct 2009
9 answers
437 views
Hi,

I have to parse FilterExpression string (grd.MasterTableView.FilterExpression), and I look for some pattern for this string.
I get Filter Expressions  like:
(iif(firstname == null, "", firstname).ToString().Contains("a"))



Now I use this pattern (Regex):
 .*\\(.*,.*,(.*)\\)\\..*\\.(.*)\\(\"(.*)\"\\)\\)

so I get column name, current filter function and input text.
But I'm not sure it'll be correct in all cases.

Please, help me to find valid pattern for FilterExpression.
Thanx

Katya
Top achievements
Rank 1
 answered on 13 Oct 2009
2 answers
1.0K+ views
I need to to a Rebind() when the Page is refreshed, but not when a new record is first inserted (I lose all of the "new" values if I do). What can I check on in order to perform the Rebind?

Particularly when the user clicks the "Refesh" button on the Grid.


Thanks
Greg
Greg Smith
Top achievements
Rank 1
 answered on 13 Oct 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?