Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
162 views
Hi,

I'm currently experiencing a problem with resizing the grid control. I need the grid to dynamically resize with the page. The page is a "content page" with a master page around it.

I have to put code in the resize event of the window to ensure that the page is always at least the height of the browser window. (i.e. so that the footer of the page is always just above the browser statusbar).

The code seems to run fine on all pages. I have a problem with the grid however. On doing a full postback, the event fires corretcly with the correct height. The grid expands to the full height required, but the content only displays 6 items and shows a scrollbar. There are only 9 items in the grid on my test machine and the scrollbar shouldn't be visible as the page is about twice the required height.

Is there any way I can force the grid to redraw or refresh itself?

Regards

Bobby
Sebastian
Telerik team
 answered on 26 Jun 2008
4 answers
84 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
123 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
119 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
257 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
83 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
351 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
141 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
165 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?