Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
118 views
Hello,
     I was trying to bind a grid on browser back button click.But when the control passes the 

telerik:RadAjaxManager the grid is not displaying the data in the grid .It just displays "No records to display"

In browser back button will it always take data from the Cache.

Anjali B
Top achievements
Rank 1
 asked on 15 Oct 2009
2 answers
121 views

Hi,

I have to create a grid given below from data by using RadGrid. Cells in yellow color are editable. Top and Left headers are city codes extracted from Database, while the price entered by user will be stored in database. I am also looking for copy feature for the values provided by the user, so that user may copy values from cells to other cells as in excel.

 

CHC

ROL

PAC

DAC

CHC

 

12

15

18

ROL

 

 

20

20

PAC

 

 

 

25

DAC

 

 

 

 

DB structure is as follows;

RoutePriceID     StartRouteID    EndRouteID    Price

Please guide how can I do it using Radgrid.

Thanks

Cheers,
S
Syed M Ali Shah
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
342 views
Are there any plans to port the Amazon S3 support that is in Sitefinity over to the ASP.NET AJAX control suite?

Would love to be able to use both the File Browser and Upload directly with Amazon S3. If not, are there any working solutions out there that someone would be willing to share, or direct me to so that I can build something myself.

Thanks for the great products!

Russ
Russ
Top achievements
Rank 1
 answered on 15 Oct 2009
4 answers
73 views
Hi there,
        I just started using the RadScheduler and I have worked out how to modify the InLine Insert/Edit dialogue using the Inser/Edit Templates, however I can't see a way to make the dialogue modal.  How can I achieve this?

Regards,

        Scott
Scott Laughton
Top achievements
Rank 1
 answered on 15 Oct 2009
4 answers
256 views
I have a clear filters button outside of the RadGrid and it works great, is there anyway to move it inside the grid into the filter row ?
Jeff Reinhardt
Top achievements
Rank 1
 answered on 15 Oct 2009
2 answers
153 views
I am trying to change the text on the header columns of the RADGRID.  I have added the relevant code to the ItemDataBound event and it's working fine, when thepage loads the text dynamically changes.  However, when I select the row with the select button the header title revert back to the original.  Do I need to add additional code in the SelectedIndexChanged and if so what?

I have posted the code in the ItemDataBound below:

If Profile.UserCulture = 2 Then  
            If TypeOf e.Item Is GridHeaderItem Then  
                Dim header As GridHeaderItem = DirectCast(e.Item, GridHeaderItem)  
                header("PRN").Text = "购买申请编号" 
                header("RaisedBy").Text = "提出者" 
                header("Supplier").Text = "供应商" 
                header("DeliveryRequired").Text = "要求送货日期" 
                header("PRNotes").Text = "附注及特别说明" 
                header("ReqValue").Text = "价值" 
                header("Status").Text = "状态" 
                header("Level1").Text = "第 1 级授权" 
                header("Level2").Text = "第 2 级授权" 
                header("POSNumber").Text = "采购订单编号" 
            End If  
        End If 

Tony Deo
Top achievements
Rank 1
 answered on 14 Oct 2009
0 answers
80 views
Thought I would share since I didn't see this posted anywhere.

What I wanted to do was to increase the size of the slider, and maximum value as the user dragged the drag handle to the end of the slider.  If it was at the maximum value, it should increase the size of the slider to allow for more valus to be selected.
server side:
slider.Width = 365 
slider.SmallChange = 1 
slider.LargeChange = 1 
slider.IsSelectionRangeEnabled = True 
slider.SelectionStart = 0 
slider.SelectionEnd = 360 
slider.OnClientSlideEnd = "sliderEndSlide" 
client side:
function sliderEndSlide(sender, args) { 
        if (sender.get_selectionEnd() == sender.get_maximumValue()) { 
            sender.set_width(sender.get_maximumValue() + 28); 
            sender.set_maximumValue(sender.get_maximumValue() + 28); 
            sender.redraw(); 
        } 
    } 
this will increase the slider by 28 every time you put the slider handle at the maximum value.


Dave Myers
Top achievements
Rank 1
 asked on 14 Oct 2009
3 answers
81 views
I have a detail page that I popup in a rad window and when I go to add a raddock layout and zone I get this error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

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.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

If I take the Dockzone out the page loads properly, here is the code I am using to put the dock on the page:

 

<telerik:RadDockLayout runat="server" ID="RadDockLayout1" EnableEmbeddedSkins="false"

 

 

Skin="None" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout">

 

 

<telerik:RadDockZone runat="server" ID="RadDockZone1" Orientation="vertical" Style="border: 0px;

 

 

width: 100%;">

 

 

<telerik:RadDock runat="server" ID="RadDockBio" Title="Bio Line" EnableAnimation="true"

 

 

AutoPostBack="true" CommandsAutoPostBack="true">

 

 

<ContentTemplate>

 

 

</ContentTemplate>

 

 

</telerik:RadDock>

 

 

</telerik:RadDockZone>

 

 

</telerik:RadDockLayout>

 

Jason
Top achievements
Rank 1
 answered on 14 Oct 2009
2 answers
311 views
I have a situation where i would like to present the full set of possible values in a range slider....say 0-20 but would like to be able to limit the selections to where a user cannot select below or above a certain value....say 5-10.  Is this possible?  Would I have to handle this in the OnClientValueChange event?  If handling in the OnClientValueChange, is there a code snipet showing how to stop the handle from moving past a certain value?
Dave Myers
Top achievements
Rank 1
 answered on 14 Oct 2009
4 answers
271 views
I have a snippet that support helped me with to get the RadConfirm window to hold and listen to the user's answer (ok or cancel). It works great, but when trying it in Firefox 3, it always returns false, even if I press ok. Does anyone see why it would do that? It probably has something to do with mozEvent, but don't know much about what that does.

 
        <script type="text/javascript"
            //MAKE SURE THAT THE FOLLOWING SCRIPT IS PLACED AFTER THE RADWINDOWMANAGER DECLARATION 
            //Replace old radconfirm with a changed version.    
            var oldConfirm = radconfirm;    
             //TELERIK 
             //window.radconfirm = function(text, mozEvent) 
             //We will change the radconfirm function so it takes all the original radconfirm attributes 
            window.radconfirm = function(text, mozEvent, oWidth, oHeight, callerObj, oTitle)    
            {    
                var ev = mozEvent ? mozEvent : window.event; //Moz support requires passing the event argument manually    
                //Cancel the event    
                ev.cancelBubble = true;    
                ev.returnValue = false;    
                if (ev.stopPropagation) ev.stopPropagation();    
                if (ev.preventDefault) ev.preventDefault();    
                    
                //Determine who is the caller    
                var callerObj = ev.srcElement ? ev.srcElement : ev.target;    
       
                //Call the original radconfirm and pass it all necessary parameters    
                if (callerObj)     
                {    
                    //Show the confirm, then when it is closing, if returned value was true, automatically call the caller's click method again.    
                    var callBackFn = function (arg)    
                    {               
                        if (arg)    
                        {               
                            callerObj["onclick"] = "";              
                            if (callerObj.click) callerObj.click(); //Works fine every time in IE, but does not work for links in Moz    
                            else if (callerObj.tagName == "A"//We assume it is a link button!    
                            {                                                           
                                try   
                                {    
                                    eval(callerObj.href)    
                                }    
                                catch(e){}    
                            }    
                        }    
                    }    
                    //TELERIK 
                    //oldConfirm(text, callBackFn, 300, 100, null, null);        
                    //We will need to modify the oldconfirm as well                 
                    oldConfirm(text, callBackFn, oWidth, oHeight, callerObj, oTitle);  
                }    
                return false;    
            }               
        </script> 

Rodrigo olivares
Top achievements
Rank 1
 answered on 14 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?