Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
141 views
I have a radGrid with a three level hierarchy. The second level has a command button, which is hidden depending on the value of a column. This works well except when the third level is expanded, and the buttons that should be hidden become visible.

The idea is to hide the Edit and Delete buttons if the status of an order is Cancelled.

The code to hide the buttons is:

    Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)  
        '-----------------------------------------------------------------------  
        ' In the grid, hide the cancel button if the order is not open  
        '-----------------------------------------------------------------------  
        If "Orders".Equals(e.Item.OwnerTableView.Name) Then  
 
            If TypeOf e.Item Is GridDataItem AndAlso Not e.Item.IsInEditMode Then  
                Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)  
                Dim Status As String = dataItem("OrderStatus").Text  
                  
                If Status <> "O" Then  
                    ' Just replace the cell contents with a space. We do this because  
                    ' if we make the column invisible, the grid lines disappear too.  
                    dataItem("OrderCancelColumn").Text = "&nbsp;" 
                End If  
            End If  
        End If  
 
    End Sub  
 

When the third level of the hierarchy is expanded, ie to show the order details, there seems to be no ItemDataBound event for the second level, so this code isn't executed and the OrderCancelColumn is always visible.

The behaviour is different depending on the HierarchyLoadMode. It has to be ServerOnDemand - the performance is too bad when it is Client.

Can anyoneplease help? Maybe there's a better way to do what we want?
Princy
Top achievements
Rank 2
 answered on 08 Dec 2008
1 answer
123 views
Hi,

How can I implement row-wise grouping in rad grid.

The expected result is as follows: (here the grouping is based on Field1)
----------------------------------------------
Field1         Field2           Field3
----------------------------------------------
val1             Value1          Value2
                   -------------------------------
                   Value3           Value4
                   -------------------------------
                    Value5            Value6
----------------------------------------------
val2              Value7            Value8
----------------------------------------------


Thanks,
Prasad J.
Yavor
Telerik team
 answered on 08 Dec 2008
1 answer
121 views
I want to put a invisible menu named 'options' on each row of my grid. When user brings mouse over that, it should get visible and gets invisible again on mouseOut. And a small menu drops out by click that 'option'. How to do that using javascript and how to know that what option has been selected at client side?
Princy
Top achievements
Rank 2
 answered on 08 Dec 2008
1 answer
124 views
I'm having a really weird error with my brand spanking new full copy of the Rad controls. I've been working with the RadGrid for the last couple of weeks (its awesome by the way) and put it on a page got it all styled up and looking amazing. Now, I've move on to starting to work on Docks. I was attempting to style them and I couldn't get my buttons or a lot of styles to show up in firefox. So, I stripped everything away and just put a simple dock in a dock zone and in a dock layout. Put a skin on it (black now but have tried several others) and gave it a title. Basically the simplest thing you could do with dock. I went through and checked all the browsers to see how this looked in all of them. IE6 and 7 fine, Opera fine, Safari fine, Firefox 2 and 3 no skin I get an all white dock with the title (I can drag it around the page so I know its a dock) in italic. I have a master page and all the styling looks fine on all browsers All the styles on my radgrid look good on all browsers, I am using mostly styles from my .css file on my radgrid and if I override the skin on the dock I can see some styles, but not everything (especially the command buttons) I would like to use a skin as my base and just change what I need from there. I put a radstylesheet manager on the page and turned outputcompression off (thats how I got it to work on all the other non-ie browsers), but still no skin on firefox.  As I said earlier we are using a masterpage and do have compression in our global.asax. But I can't see how either one of those issues would just effect firefox. Any help or places to look to solve these problems would be much appreciated
Martin
Telerik team
 answered on 08 Dec 2008
1 answer
96 views
I recently upgraded from 2008.Q3.1105 to 2008.Q3.1125, and the icons on my date and time pickers changed.  I am specifying the image url's like this:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="WebBlue">  
    <DatePopupButton ImageUrl="~/images/icons/date.gif" HoverImageUrl="~/images/icons/date_hover.gif" /> 
</telerik:RadDatePicker> 

This worked fine before, but now, instead of my icon, I get the << icon from the calendar.  If I remove the DatePopupButton tag, the default calendar icon from the skin shows up, but I'm unable to specify my own custom icon.
Dimo
Telerik team
 answered on 08 Dec 2008
1 answer
147 views
Hi,

I've been trying to figure out if this is even possible. I have a application with high demands on performance and would like to use the gridview filters for filtering in SQL. I would like to do something like this....

protected void RadGrid_NeedDataSource( object source, GridNeedDataSourceEventArgs e ) 
                ObjectID statusID = null
                IssueStatusDropDownList statusDropDownList = ((RadGridIssueStatusColumn)_radGrid.Columns.FindByUniqueName( "StatusColumn" )).FilterDropDownList; 
                if( statusDropDownList != null ) 
                { 
                    if( statusDropDownList.SelectedValue != IssueStatusDropDownList.ALL_ISSUE_STATUSES ) 
                        statusID = new ObjectID( statusDropDownList.SelectedValue ); 
                } 
 
                List<Issue> issueList = Issue.GetList( statusID ); 
                _radGrid.DataSource = issueList

Is this possible?


Yavor
Telerik team
 answered on 08 Dec 2008
1 answer
94 views
I have 6 RadUpload controls on my page. The page also has a number of UpdatePanels. The RadUpload controls are NOT contained within an UpdatePanel. Whenever one of the UpdatePanels does a partial page postback, it appears that the RadUpload controls kick-off the upload process. That is, when the parial postback is performed, requests start happing for Telerik.RadUploadProgressHandler.ashx?RadUrid=aea494f2-65ea-43ca-88ce-a02b0e247da2&RadUploadTimeStamp=1228431329855&. I assume that these are RadProgressArea polling the the upload handler.
These request happen quite frequently, and they appear to be a real drag, latency-wise.

Is there a way to prevent this polling from starting untill a specific button is clicked?
Veselin Vasilev
Telerik team
 answered on 08 Dec 2008
1 answer
138 views
When I set autolayout to true within my chart, I get the error:

Length cannot be less than zero.
Parameter name: length

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length


Why is this?
Ves
Telerik team
 answered on 08 Dec 2008
19 answers
386 views
Hi!

Im trying do a ajax request with the ajaxmanager from a callback function, but the ajaxmanager is null when called form the callback. A simple test can be made.

Do the request, in the callback handler do another request as follow:

        function PressMe() 
        { 
            SendRequest("From Press Me"); 
        } 
         
        function SendRequest(message) 
        { 
            var ajaxManager = $find("RadAjaxManager1"); 
            ajaxManager.ajaxRequest(message); 
        } 
         
        function RequestCallback() 
        { 
            //setTimeout("SendRequest('From Callback');",0); 
            SendRequest("From Callback"); 
        }

The first time the 'SendRequest' is called it finds the ajaxManager and does the request. Then the RequestCallBack is called from the server-side :

      protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) 
{
   RadAjaxManager1.ResponseScripts.Add("RequestCallback();"); 

It adds the script and calls the client-side 'RequestCallback' funtion and sends now the second request, but this time the ajaxaManager object is null!
The intresting fact is that if I do a time out with 0 milisecond wait ( commentded code ) it finds the ajaxManager.

Maybe something with the context of this ResponseScripts? Any ideas?

Thanks.
Nate Pinchot
Top achievements
Rank 1
 answered on 08 Dec 2008
1 answer
700 views
How do I users from entering negative values in a RadNumericTextbox
?
Princy
Top achievements
Rank 2
 answered on 08 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?