Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
116 views
Hello

I'm trying to create a visual designer kind of control

I've a panel (toolbox) at the top with some buttons or some other control (which represents a control or tool like box, circle, grid etc.).

i've the dock zones at the bottom of the panel. When i drag a button from the toolbox to the dockzone i want to trap that event and i want to add a dock in that dockzone corresponding to the tool dropped there.

Any ideas as how to do this?

Thank you.
Rumen
Telerik team
 answered on 29 Sep 2010
1 answer
42 views
Hello,

I am using RadControls for ASPNET AJAX Q3 2008 SP2. I am trying to use RadDatePicker with ASP.NET ScriptManager. It keeps giving me numerous "Invalid parameter" javascript errors on rendering. The page in itself doesn't give me any trouble, but this javascript error keeps showing.

Do you have a solution for this? When I delete the code for the RadDatePicker, the javascript error goes away. Here is how the error looks.

Line: 1
Char: 1
Error: Invalid Argument
Code: 0
URL: <<my page>>

Thanks in advance for all your help

Sirisha
Daniel
Telerik team
 answered on 29 Sep 2010
3 answers
73 views
I need to prevent the user from changing the start and end date in the AdvancedForm. I managed to get a reference to the controls in FormCreated() and set their Enabled property to False. This works as expected, but if I click inside the disabled control it throws a javascript error of "Microsoft JScript runtime error: 'undefined' is null or not an object".  How can I disable these controls without causing an error? 

void RadScheduler1_FormCreated(object sender, Telerik.Web.UI.SchedulerFormCreatedEventArgs e)
{
        if (e.Container.Mode == SchedulerFormMode.AdvancedInsert
            || e.Container.Mode == SchedulerFormMode.AdvancedEdit)
        {
             
 
            RadDatePicker startDate = (RadDatePicker)e.Container.FindControl("StartDate");
            startDate.Enabled = false;
 
        }
 
}

Veronica
Telerik team
 answered on 29 Sep 2010
2 answers
106 views
Haven't started working with the Rotator yet.

Is is possible to combine your first look demo
http://demos.telerik.com/aspnet-ajax/rotator/examples/default/defaultcs.aspx

with the pager integration one
http://demos.telerik.com/aspnet-ajax/rotator/examples/pagerintegration/defaultcs.aspx

I would like it to work similar to the ones you see so often now that automatically change, but give you the opiton to select a specific one. Such as http://www.usps.com/

Thanks
Randy Miller
Fiko
Telerik team
 answered on 29 Sep 2010
1 answer
70 views
Team,

Am using DataTable to bind RadGrid as a Datasource. Not using Template columns.
my need is, I just want to apply the format for ex. 2007 CashCol as "$##,###.00"
it should be display as $885258.00 like that. How can I achieve this?

2008 2009 2010
CashCol CashCol CashCol CashCol
Akron 885258 962375 942707 486013
Allen Allen 0 0 321862 301088
Alpharetta I Alpharetta I 914431 969684 838121 458535
Alpharetta II Alpharetta II 1387447 1346855 1170927 652933
Alpharetta III Alpharetta III 1787545 1928258 1764613 956510
Amelia Amelia 1053449 1096630 1038868 595816
Thanks
Dimo
Telerik team
 answered on 29 Sep 2010
6 answers
190 views
Hi All

Have a RadDatePicker, which works fine.

Need only month and Year to view.

So have called up a JaVAscript function which shows date and month

It works fine in IE. In firefox nothing happens when RadDatePicker is clicked.

function setCalendarTable() {
  
            var picker = $find("<%= radDate.ClientID %>");
            var calendar = picker.get_calendar();
            var fastNavigation = calendar._getFastNavigation();
            $clearHandlers(picker.get_popupButton());
            picker.get_popupButton().href = "javascript:void(0);";
  
            $addHandler(picker.get_popupButton(), "click", function() {
  
                var textbox = picker.get_textBox();
                //adjust where to show the popup table 
                var x, y;
                var adjustElement = textbox;
                if (textbox.style.display == "none")
                    adjustElement = picker.get_popupImage();
  
                var pos = picker.getElementPosition(adjustElement);
                x = pos.x;
                y = pos.y + adjustElement.offsetHeight;
  
                var e = {
                    clientX: x,
                    clientY: y - document.documentElement.scrollTop
                };
                //synchronize the input date if set with the picker one
                var date = picker.get_selectedDate();
                if (date) {
                    calendar.get_focusedDate()[0] = date.getFullYear();
                    calendar.get_focusedDate()[1] = date.getMonth() + 1;
                }
  
                $get(calendar._titleID).onclick(e);
  
                return false;
            });
  
            fastNavigation.OnOK =
                    function() {
                        var date = new Date(fastNavigation.Year, fastNavigation.Month, 1);
                        picker.get_dateInput().set_selectedDate(date);
                        fastNavigation.Popup.Hide();
                    }
  
  
            fastNavigation.OnToday =
                    function() {
                        var date = new Date();
                        picker.get_dateInput().set_selectedDate(date);
                        fastNavigation.Popup.Hide();
                    }
        }

This is the function called in .cs page
if (!IsPostBack)
            {
                radDate.DatePopupButton.Attributes.Add("onclick", "setCalendarTable();return false;");
                radDate.SelectedDate = Convert.ToDateTime(DateTime.Now.ToString("MMMM-yyyy"));
                 
            }


Is there any option to rectify this.

-Anto
Tsvetina
Telerik team
 answered on 29 Sep 2010
1 answer
85 views
Hello,

I have a grid which has the user's name and email. I have the form where there is a detailed information of the user and the other grid where it is more user information.

What I need is when i click on the row of the first grid (user's name and email), it should fill the form and the other grid.

How can I achieve this task ??

Thank you,
Parth
Mira
Telerik team
 answered on 29 Sep 2010
1 answer
82 views
Hi,

Can we do googlelike filtering on dataset. In the example you guys are doing filtering in sql query ( IN list_ItemsRequested Method). I am using stored procedure to get the data. So i cant use stored procedure. So is there any way to do filtering on dataset. If yes how to do it. Please Let me know. 

Thanks.
Iana Tsolova
Telerik team
 answered on 29 Sep 2010
3 answers
189 views
I have a RadMaskedTextBox in my html, and cannot place a value in it from a javascript function call. If I change the type of textbox to just a regular asp.net TextBox, the value comes in just fine (33331).

How can I manipulate either the RadMaskedTextBox or js function to accept the value from the js? Below is my code.

<telerik:RadMaskedTextBox ID="priInsZip" runat="server" Height="21px" Mask="#####"
                                                                                                                            Width="70px">
                                                                                                                        </telerik:RadMaskedTextBox>


<js code>

var priInsZip = document.getElementById("priInsZip");

priInsZip.value = InsZip;


</js code>
Cori
Top achievements
Rank 2
 answered on 29 Sep 2010
2 answers
120 views
I have a RadGrid inside a usercontrol inside a usercontrol inside the pageview of a RadTabStrip.  The InitInsert Command is firing, the cancel command is firing, but the PerformInsert command never fires.  What could possibly cause this?

Thanks.
Iana Tsolova
Telerik team
 answered on 29 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?