Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
87 views
Hi Telerik,
I define a DropDown (sitting in a TemplateColumn) ClientEvent in RadGrid1_DataBound:
var itemreorder = ((GridDataItem) gitem)["ColumnName"];
var ddl = (RadComboBox) itemreorder.FindControl("ddl");

ddl.OnClientSelectedIndexChanged = "onSelectedIndexChanged";
In IE there is no problem to find this function.
But Firefox complains: "
onSelectedIndexChanged is not defined".
Why?
Best regards,
Andreas
Nikolay Rusev
Telerik team
 answered on 26 Jun 2008
1 answer
75 views
Hello,

I know how to set Access Keys if the tabs are hard coded into the application.  However, I need to be able to set them from a property in our sitemapfile.  Is this even possible?

A sitemap node might look like this:

<

siteMapNode url="~/Forms/Anon/frmLogin.aspx" title="Login" description="Login to the Application" accesskey="a" />

I was thinking it might be in expressions or custom databinding but I cannot find it anywhere.

Thanks
Brent

Paul
Telerik team
 answered on 26 Jun 2008
2 answers
125 views
Hello,
My requirement is hopefully straightforward. I would like to display the number of rows on a ajaxified grid (RadGrid control for Asp.net AJAX)  when  paging is disabled. Is it possible to do so on the Header or on the footer?

Thanks
Mehmet
Daniel
Telerik team
 answered on 26 Jun 2008
1 answer
120 views
Hi,

I have implemented a custom skin to rad editor control on my page.

I have included editor.myskinname.css and windows.myskinname.css in the page through links tag.
I have assigned ContentArea css file through code where I created the control.
And I added editor.css file using RadEditor1.CssFiles.Add(.....editor.css);

I have ofcouse set EnableEmbeddedSkins = false;

But, the dialog windows are getting black buttons which are not according to my skin. I am using Default2006 skin's copy just to overcome few css problems and not changing it heavily. As I see in your demo page, the buttons should be white like that.

Thanks,
Chirag
Rumen
Telerik team
 answered on 26 Jun 2008
3 answers
265 views
I have a RadGrid to which I've applied the double-click edit functionality.

I have a couple issues:

1) I'm making an ajax call to the code behind to both put the grid row in edit as well as to save changes made.  Everything goes great with exception of change of the cursor display to 'default' once the routine has completed.  It gets stuck on 'wait'.  The thing is, once a user moves their mouse the cursor flips back to the proper context.  I've tried making an explicit call in the client-side script with no luck. 

2) I would also like to set focus on the edited row textbox control (I have only one).  I've experiemented with both client-side and server side calls but continue to be stuck like chuck.

Neither of these issues is a show stopper, but I plan to use this approach throughout the site (which will make heavy use of grids), and I'm concerned it will negatively impact perceived quality of the application.
 
I've modeled my approach based upon the example provided here - http://www.telerik.com/demos/aspnet/Grid/Examples/AJAX/EditOnDblClick/DefaultCS.aspx

I experience the same behavior described above when interacting with the example. 

Thanks for any assistance you can provide.

-CH
Clay
Top achievements
Rank 1
 answered on 26 Jun 2008
1 answer
89 views
Can Telerik provide us a framework just like EXT does?
We use the framework in our project directly.I think the framework is helpful for us to use Telerik RadControls for asp.net ajax.
Hope the frame can be provided soon.
Ivo
Telerik team
 answered on 26 Jun 2008
9 answers
360 views
Hello!

I have something similar to this example:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/TreeView/Examples/Functionality/TreeViewComboBox/DefaultCS.aspx

But instead of all nodes beeing clickable/selectable I want to have only last nodes clickable (last nodes have NavigateURL attrib set) and if user will click on some parent node then this node should expand instead of closing RadComboBox.

Is this possible?

Thanks in advance
GrZeCh
Top achievements
Rank 2
 answered on 26 Jun 2008
1 answer
143 views
I have a grid using an EditForm to edit the records.  The EditForm has a RadComboBox (cmbDateChoice) and a RadDateTimePicker (dateParameter).  Let's say the values in the RadComboBox are A, B, C.  When the value is A, I want to enable the RadDateTimePicker, when it's B or C, I want to disable it.  The grid has ALL rows set to be in edit mode via ItemCreated.

    protected void gridParameters_ItemCreated(object sender, GridItemEventArgs e)  
    {  
        if (e.Item is GridEditableItem)  
        {  
            e.Item.Edit = true;  
            if (e.Item is GridEditFormItem)  
            {  
                Telerik.Web.UI.GridEditFormItem editForm = e.Item as Telerik.Web.UI.GridEditFormItem;  
                RadDateTimePicker dateParameter = (RadDateTimePicker)editForm.FindControl("dateParameter");  
                RadComboBox cmbDateChoice = (RadComboBox)editForm.FindControl("cmbDateChoice");  
 
                if ((cmbDateChoice != null) && (dateParameter != null))  
                {  
                    string fields = "<script type='text/javascript' language='javascript'>";  
                    fields += "function " + cmbDateChoice.ClientID + "_change() { ";  
                    fields += "return ChangeDatePicker($find(\"" + cmbDateChoice.ClientID + "\"), $find(\"" + dateParameter.ClientID + "\"));";  
                    fields += "}";  
                    fields += "</script" + ">";  
 
                    gridParameters.Controls.Add(new LiteralControl(fields));  
                    cmbDateChoice.OnClientSelectedIndexChanged = cmbDateChoice.ClientID + "_change";  
                }  
            }  
        }  
    } 

And this is the javascript function to manipulate the DateTimePicker:
        function ChangeDatePicker(choices, picker)  
        {  
            if (choices.get_value() == "A")  
            {  
                picker.get_dateInput().enable();  
                $addHandler(picker.get_popupButton(), "click", picker._onPopupButtonClickDelegate);  
                if (window[picker.get_id()] != null)  
                {  
                    picker._onTimePopupImageClickDelegate = window[picker.get_id()];  
                    $addHandler(picker.get__timePopupImage(), "click", window[picker.get_id()]);  
                }  
            }  
            else 
            {  
                picker.get_dateInput().disable();  
                $removeHandler(picker.get_popupButton(), "click", picker._onPopupButtonClickDelegate);  
                $removeHandler(picker.get__timePopupImage(), "click", picker._onTimePopupImageClickDelegate);  
                window[picker.get_id()] = picker._onTimePopupImageClickDelegate;  
                picker._onTimePopupImageClickDelegate = null;  
            }  
                  
            return true;  
        } 

When the combo box changes its index, all works perfectly.  However, I can't find the right combination of code to get it to fire when the combobox is first initialized.  In other words, if I come into the grid with a combobox value of B, I want the javascript to fire to change the DateTimePicker to disabled.  I tried attaching the code to the OnClientLoad event on the combobox, but for some reason the DateTimePicker doesn't exist at that point (the $find returns null).

Any suggestions on how to go about this?  Thanks.
Missing User
 answered on 26 Jun 2008
2 answers
169 views
Hi everyone.
I want to make a framework with Radwindow.I divide the page into to part,place a treeview in the left part.when the node of the treeview clicked,a Radwindow is created and open in the left part. I want to implement a framework just like EXT does.
Can you give me some advise?

Of my prolbem is how to resize a window to Maximize when open it?

Best regards!

Georgi Tunev
Telerik team
 answered on 26 Jun 2008
1 answer
137 views
I've been using the following code to open RadWindows, with the previous version of Telerik ASP.NET components, but it seems to fail with the latest version:

        Dim _window As New Telerik.Web.UI.RadWindow()  
        _window.ID = "Window1" 
        _window.NavigateUrl = "page.aspx" 
        _window.Width = Unit.Pixel(640)  
        _window.Height = Unit.Pixel(480)  
        _window.Title = "title" 
        _window.VisibleOnPageLoad = True 
        _window.Skin = "Vista" 
        _window.OnClientClose = "Refresh();" 
        RadWindowManager1.Windows.Add(_window) 

When _window.OnClientClose line is commented out, the window comes up, otherwise I get a JavaScript error on the page, and no window.  The Refresh() function is on the page, and was working before.

Any help is greatly appreciated!
Georgi Tunev
Telerik team
 answered on 26 Jun 2008
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?