Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
I am implementing exactly same as described in demo to how to change the radGrid`s orientation. But my radGrid is empty and has nothing to display....please help!
Princy
Top achievements
Rank 2
 answered on 22 Dec 2008
1 answer
226 views
Hi Everyone,

I need to get a specific value (the ID) from a selected row, call a stored procedure passing this ID to obtain a recordset based of this value, then I want to populate these values in controls (textboxes, comboboxes, etc.) in the panel below the grid.  I'd like it so the page doesn't refresh.  I'm currently grabbing the ID from the code below, but this causes the page to refresh.  How do I go about this without a page refresh?  Thanks for any help that you can provide.
        protected void uxRadGridList_SelectedIndexChanged(object sender, EventArgs e) 
        { 
            foreach (GridDataItem item in uxRadGridList.SelectedItems) 
            { 
                int rowID = Convert.ToInt32(item["PrimaryKey"].Text.ToString()); 
            } 
        } 
 

Shinu
Top achievements
Rank 2
 answered on 22 Dec 2008
1 answer
121 views
Hi,

I read there is functionality in a raddock to create an overlay  over a raddock.

I try to accomplish an overlay with some asp.net buttons over an raddock. The same as sitefinity does with the raddocks.

What is the best practice solution for creating this functionality? Can you show me an example?

Greetings.
bas hessels
Top achievements
Rank 1
 answered on 22 Dec 2008
1 answer
55 views
Hi
I'm working on a web-application ajax-enhanced, with loads of telerik compononents on each page. An expert came and audited the app mainly for memoery leaks we experienced with some clients. After seeing the code and the pages weight, he told us the page view state was way too heavy, and that we had to optimise each and every page by working with the enable view state of each control, which suprised me as I never saw the view state as an enemy and thought that disabling view state on elements was for specific scenarios... the question is do I really have to manually manage the view state of the controls, which means I have to browse each of the 500-pages of the application and asking myself of each control of this pages if I need to enable the view state or not. I must say I'm quite sceptical with this analyse so I would like to know...

Thanks in advance
R Giudicelli
Yavor
Telerik team
 answered on 22 Dec 2008
1 answer
66 views
The SEO Paging works great, but after sorting the grid then paging, the sort is not retained.

What is the best way to handle this?
Georgi Krustev
Telerik team
 answered on 22 Dec 2008
2 answers
99 views
Hello,

On page 52 (pg 40 in print PDF) "Context Menus", I'm doing the lesson on pages 53 - 55, however the context menu does not expand to show all the various options as shown on page 55. 

I copied and pasted the code in my project, but I kept getting a compilation error targeting "Imports Telerik.Web.UI (in red):
"Compiler Error Message: ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl)."  

Once I deleted the "Namespace Multipage" keyword structure.  I don't understand why I was getting a compilation error just by using the namespace. ??? 

Here is the code per the lesson (as well as in my project):

 

Protected Sub RadContextMenu1_ItemClick(ByVal sender As Object, ByVal e As  
Telerik.Web.UI.RadMenuEventArgs)  
' look only at child items  
If e.Item.Level = 1 Then  
' find child items under "Colors" parent item  
If (TryCast(e.Item.Parent, RadMenuItem)).Text.Equals("Colors") Then  
' set the color picker preset to the selected preset  
RadColorPicker1.Preset = DirectCast([Enum].Parse(GetType(ColorPreset), e.Item.Text),  
ColorPreset)  
End If  
End If  
End Sub  
End Class 

So my two questions would be:
1. Why is deleting the "Namespace" keyword eliminating the compilation error?  I thought creating and using Namespaces is a way to
"package" classes.  Thus, making them more unique.

2.  Why isn't (correction) the  RadContextMenu control working correctly in my application for the RadColorPicker control?  (All I see when I right-click is the word "Color".  No subitems as shown on page 43.

Thanks,
R2

Yana
Telerik team
 answered on 22 Dec 2008
1 answer
91 views
Hi,

In my application I have 3 versions of the Mac skins that I'm using for my RadNumericTExtBox or RadTextBox controls: Mac, Mac1 and Mac2.
Now it seems that all my Rad textbox controls are loading the Mac2 skin - even if the skin for some of them is Mac or Mac1. Why is this happening?

In the project, they are located in a folder RadControlsAjax\Skins   (Mac, Mac1 and Mac2) and the css files are reffered from the masterpage.

If I remove from the Skins folder the Mac2 folder, then all the TextBox controls load the Mac1 skin.

Strange. Any ideas? Please reply as soon as possible.

Thank you.
Dimo
Telerik team
 answered on 22 Dec 2008
1 answer
87 views
I am working with a MVC project and want to use the radeditor.
I do not want to use any server forms (<form runat="server">), which is possible in version Q3 2008.

How do I get the content of the editor in a view when i already posted the data? I want to use the data in an controller.
Tervel
Telerik team
 answered on 22 Dec 2008
1 answer
110 views
Hi,

I am using RadGrid and trying to provide update / insert new record with template form. The main problem is that events onUpdate/Insert do not fire. I am using this example http://demos.telerik.com/aspnet-ajax/Grid/Examples/DataEditing/TemplateFormUpdate/DefaultCS.aspx and adjusts it for my purpose (add more columns, use Business Logic Layer class which returns an IEnumerable as datasource for grid). But when I click the button btnUpdate inside FormTemplate nothing is happened. Could any body provide me with any idea of what is going on?

Thanks a lot,
Mark
Shinu
Top achievements
Rank 2
 answered on 22 Dec 2008
2 answers
181 views
Hi:

I've seen the use of the following to trigger a javascript after server-side callback with AjaxManager:

 AjaxManager1.ResponseScripts.Add("alert('Hi')");

However, it seems like that I have to also rewrite the entire javascript out on the server side and place it within the Add().  This is somewhat inconvenient if the javascript is long and complex (e.g.: 100 lines).

In fact, I already have the javascript written inside the aspx page (e.g.: myFunction()) .  Is there a way to just call/trigger myFunction() using AjaxManager1.ResponseScripts directly without having to rewrite the entire block of codes out again on the server side?

Thanks in advance for your help.
JustinWong
Top achievements
Rank 1
 answered on 22 Dec 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?