Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi Telerik,
I want to load my rad grid when all items are in edit mode (in place edit). my page size is 25 records per page, and allowPaging is set to true.
in page pre_render, i do:
for (int i = 0; i < gridChannels.PageCount * gridChannels.PageSize; i++) 
                    { 
                        gridChannels.EditIndexes.Add(i); 
                    } 
When a specific button clicked, or when paging the grid, i want to save the state of the rows. so I want to run over all the edited rows (which are actually all the rows in the grid) and get the values:
foreach (GridEditableItem editedItem in gridChannels.EditItems) 
            { 
// get data.. 
} 

I find 2 problems:

1. Untill i specifically page to the last page of the grid, the pageCount property is set to the page number! meaning it is =1 when i load the grid, even though there are 3 pages to the grid!

2. EditItems property always set to 25, even after i page to page 3, which means the pageCount * page size = 75 so there are 75 edit index in the grid - 75 items in edit mode.

could you please explain why does this behavior occur?

Thanks,
Hadar
Iana Tsolova
Telerik team
 answered on 16 Jul 2009
1 answer
71 views
I have a basic global NodeTemplate defined at Design time which I would like to apply to only top level nodes. I try to set the child nodes' NodeTemplate = null on code behind in Page_Load or Page_Init but it has no effect.

To work around this issue I've removed the global template and I'm loading the top level nodes' Controls collection dynamically at runtime.

Little help anyone?
Cliff
Paul
Telerik team
 answered on 16 Jul 2009
2 answers
172 views
Hi,
So I have 2 grids in my page. Selecting on a row in top grid, results in new data in the 2nd grid.
I have a NeedDataSourceHandler in the second grid, but I am not able to retrieve the primary key of the row in the 1st grid
that was cliecked on ....
Protected Sub ReptSummaryGrid_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles ReptSummaryGrid.NeedDataSource 
        If e.IsFromDetailTable Then 
            LoadReportsSummary(8) 
        End If 
    End Sub 

The SelectedValue property of the 'source' is always coming as Nothing....

Any help is appreciated...
Daniel
Telerik team
 answered on 16 Jul 2009
1 answer
70 views
when i insert a flash in firefox 3.0 , it generated the code like below

 <object height="150" width="150" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param name="Movie" value="/aspnet-ajax/Editor/Img/UserDir/Marketing/ASP_AJAX_banner.swf">
<param name="play" value="true">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="loop" value="false">
<param name="menu" value="false"><embed src="/aspnet-ajax/Editor/Img/UserDir/Marketing/ASP_AJAX_banner.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="transparent" loop="false" menu="false" width="150" height="150"></object>

it doesn't has "</embed" tag . so it can't be showed in firefox .

Anyone can help solve this problem ?  thank you very much.
Rumen
Telerik team
 answered on 16 Jul 2009
1 answer
123 views
I'm trying to populate the RadTreeViewContextMenu when it first displays via WCF. Is there any built in functionality to do this? We currently have to put one item in the menu and set the expand mode to WebService. I know I could make a web service call to get this data (by firing on the OnClientContextMenuShowing), but I just wanted to find out if the RadTreeViewContextMenu had this functionality built in, which I may be overlooking. 

Also,  since every node in the tree could have a different context menu due to user permissions, I have to build the context menu each time by programmatically populating the context menu. However, once I've gotten the context menu for a node, I would really like to be able to cache the context menu. Would your suggestion be to just to store the menu.get_items() in an array stored by some key and then repopulate from that or is this functionality which may be coming in a future release (that is, a per node context menu that makes a service call only once per node)?
T. Tsonev
Telerik team
 answered on 16 Jul 2009
1 answer
107 views
I have upgraded to Q2 2009 on a new project. One of my pages has a link which opens a rad window using window.radopen. I am having no problems in Firefox 3, however, one of my users is experiencing the following:

When he clicks on the link, nothing happens. I had him check the Error console and it was blank. So, apparently on his machine, there is some sort of setting that is preventing Rad Window from working in conjunction with Firefox. His version is FF 3.0.11 (.NET CLR 3.5.30729). I have this very same version of FF and everything works fine. Has anyone experienced something like this and do you know what might be going on?
Fiko
Telerik team
 answered on 16 Jul 2009
1 answer
107 views
Hi,
       I have a Radrotator control have set frameduration =5000, and Radtooltip control with manualclose=true, has attached to Radrotator.
When the Mouse is hovered on the Radrotator the Radtooltip is shown and explicitly stopping slideshow.
The problem here it is not working for the first time when the mouse is hovered on the radrotator. For subsequent frames the slideshow is stopping.
find the attached sample solution file, which includes the code for the same.
Please provide the solution for this problem.

Fiko
Telerik team
 answered on 16 Jul 2009
2 answers
149 views

I have a slider inside of an update panel and at random times when changing the values I get a GetClientRects error. I tried putting the following code after the </form> and after the scriptmanager tags and it doesn't trap this i when living in either spot:

 

 

<script type="text/javascript" language="javascript">

 

 

var oldDomEvent = Sys.UI.DomEvent;

 

Sys.UI.DomEvent =

function(rawEvent) { if (rawEvent.srcElement && typeof (rawEvent.srcElement.getClientRects) == "undefined") return; var evt = new oldDomEvent(rawEvent); for (var o in evt) this[o] = evt[o]; }

 

 

for (var o in oldDomEvent)

 

Sys.UI.DomEvent[o] = oldDomEvent[o];

 

 

</

 

script>

Any ideas?

 

Tsvetie
Telerik team
 answered on 16 Jul 2009
13 answers
282 views
The title of my thread says it all:

Unable to install new Q2 release because unable to remove Q1 Visual studio extensions.

I'm talking about RadControls for ASP.NET AJAX 2009 Q2 release using the 189 MB *dev.msi installer file.

So how do I get the installer to work without removing the old extensions? Or how do I remove the old extensions?

Note that uninstalling the older Q1 release removed all the controls but not the Visual Studio extensions.
Erjan Gavalji
Telerik team
 answered on 16 Jul 2009
1 answer
151 views
I have this RadMenu in my web page:
            <telerik:RadMenu ID="RadMenu1" runat="server" Width="757px" EnableViewState="false" OnClientItemClicked="menuItemClicked" 
                style="z-index: 500" Skin="B2B" EnableEmbeddedSkins="false"> 
                <CollapseAnimation Type="OutQuint" Duration="200" /> 
            </telerik:RadMenu> 

The javascript function, 'menuItemClicked', is defined below the above declaration of the RadMenu control in the HTML, and bascially sets specific values on the page when the user clicks on the menu.  The menu choices are setup in the code behind.  Most of the time everything works perfectly, but I see this error in the Firefox error console randomly.
'menuItemClicked is not defined'
When this error happens, the menu does not work anymore, i.e. mousing over it does not expand the root items so that the user can make a choice.  I do not see this error if the user clicks on a menu item, only when they make a selection from several different asp.net dropdownlist controls on the page.  The error does not consistently appear for a specific dropdownlist control that the user may click on, it is totally random.
After getting the error and having the menu stop responding (no mouseover expansion), if the user makes another dropdown selection, the error does not reappear and the menu starts working correctly again.  Each dropdownlist has AutoPostBack = True.

T. Tsonev
Telerik team
 answered on 16 Jul 2009
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?