Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
108 views
Hi folks,

I am using the all new Q2 release, and I do know how to merge a RADGrid control's Headers. Please let me know what's the best solution for the same.

-Thanks
Nhilesh
Yavor
Telerik team
 answered on 09 Sep 2008
5 answers
174 views
I have a live site I can post here, but im not sure im suppose to do that in an open forum, and not sure I even want it visible, but if needed I can post link, but here is problem:

I have a page that uses RadScheduler and external edit in RadDock, everything works perfect for me on my local machine until i upload to godaddy server, and they have AJAX installed, so this shouldnt be the issue, and my page with a scheduler and no external edit works fine:

when click in the calendar and create any event you will get this first javascript error:
Sys.ArgumentUndefinedException:  Value cannot be undefined.  Parameter name: id
- But when i run FireBug it breaks in this function,line 4305:
function Sys$_ScriptLoader$_loadScriptsInternal() {
4278 // Load up the next script in the list
4279 if (this._scriptsToLoad && this._scriptsToLoad.length > 0) {
4280 var nextScript = Array.dequeue(this._scriptsToLoad);
4281 // Inject a script element into the DOM
4282 var scriptElement = this._createScriptElement(nextScript);
4284 if (scriptElement.text && Sys.Browser.agent === Sys.Browser.Safari) {
4285 // Safari requires the inline script to be in the innerHTML attribute
4286 scriptElement.innerHTML = scriptElement.text;
4287 delete scriptElement.text;
4288 }
4290 // AtlasWhidbey 36149: If they queue an empty script block "", we can't tell the difference between
4291 // a script block queue entry and a src entry with just if(!element.text).
4292 // dont use scriptElement.src --> FF resolves that to the current directory, IE leaves it blank.
4293 // nextScript.src is always a string if it's a non block script.
4294 if (typeof(nextScript.src) === "string") {
4295 // We only need to worry about timing out and loading if the script tag has a 'src'.
4296 this._currentTask = new Sys._ScriptLoaderTask(scriptElement, this._scriptLoadedDelegate);
4297 // note: task is responsible for disposing of _itself_. This is necessary so that the ScriptLoader can continue
4298 // with script loading after a script notifies it has loaded. The task sticks around until the dom element finishes
4299 // completely, and disposes itself automatically.
4300 // note: its possible for notify to occur before this method even returns in IE! So it should remain the last possible statement.
4301 this._currentTask.execute();
4303 else {
4304 // script is literal script, so just load the script by adding the new element to the DOM
4305 document.getElementsByTagName('HEAD')[0].appendChild(scriptElement);
4307 // DevDiv 74151: Do not assume the script executes synchronously. Use a setTimeout to delay
4308 // proceeding, which ensures the script executes before we continue. This was first introduced
4309 // as a workaround for a Firefox bug, but we do it for all browsers in order to avoid making
4310 // an assumption that may be wrong in the future. Executing the script synchronously is not
4311 // in any spec or recommendation.
4312 var scriptLoader = this; // used in the setTimeout closure
4313 window.setTimeout(function() {
4314 // cleanup (removes the script element in release mode).
4315 Sys._ScriptLoader._clearScript(scriptElement);
4316 // Resume script loading progress.
4317 scriptLoader._loadScriptsInternal();
4318 }, 0);
4321 else {
4322 // When there are no more scripts to load, call the final event
4323 var callback = this._allScriptsLoadedCallback;
4324 this._stopLoading();
4325 if(callback) {
4326 callback(this);


- then do a second event (afte clicking cancel in raddock if you brought up the edit window), again anything, like click prev or next date butons, or double click in calendar to bring up raddock, and the system will freeze up, and this javascript error occurs:
Sys.ArgumentNullException:  Value cannot be null.  Parameter name:  element.
- Firebug doesnt seem to break on this error, but its probably ruined from the first error??

-  so i guess lets start by asking if anyone has tried to host a site with this control at godaddy?  Or Telerik people please help, posting a forum because no one replied to my support ticket yet, so if a telerik admin is reading this, try to find my open support ticket for actual link and details.

Help please, godaddy is offering no support on this subject!!!!!!!


Anything to do with this post maybe??  doubt it but maybe:
http://www.telerik.com/community/forums/thread/b311D-bdamdc.aspx



Joe
Top achievements
Rank 1
 answered on 09 Sep 2008
0 answers
183 views
I need to use Numeric updown control on a web form how to do it?
And if possible how to bound it to a grid view.
Priya
Top achievements
Rank 1
 asked on 09 Sep 2008
3 answers
143 views
Ok so I am completely new to this concept so I am looking for a "For Dummies" approach to accomplishing my task.

Basically I want to render a RadWindow at runtime for the simple fact that I do NOT want to have the code in my ASPX file... for cleanliness reasons.

    Protected Sub Page_Load(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Load  
 
        'Create RadWindow Instance  
        Dim RadWindow1 As New RadWindow  
        RadWindow1.ID = "RadWindow1" 
        RadWindow1.Skin = "Vista" 
        RadWindow1.Modal = "true" 
        RadWindow1.VisibleStatusbar = "false" 
        RadWindow1.VisibleTitlebar = "true" 
        RadWindow1.Behaviors = WindowBehaviors.Close ' & WindowBehaviors.Move  
        RadWindow1.OpenerElementID = "Button1" 
        RadWindow1.NavigateUrl = "~/App_Windows/ADMIN.aspx" 
        RadWindow1.Width = "800" 
        RadWindow1.Height = "650" 
        RadWindow1.KeepInScreenBounds = "true" 
        RadWindow1.EnableAjaxSkinRendering = "true" 
        Me.Controls.Add(RadWindow1)
 
    End Sub 

Where have I gone wrong?
Georgi Tunev
Telerik team
 answered on 09 Sep 2008
2 answers
260 views
Hi There,

When I set EnableAjax to True in my RadGrid, I still get full page refreshe flicker when I page through the results, and when I click Refresh.  Any ideas?

I'm not doing any other Ajax stuff.  I am using master pages, but nothing else fancy going on.  Here's how I instantiate the RadGrid control:

<

telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True" DataSourceID="_dsBots" GridLines="None" ShowGroupPanel="True" Skin="Telerik" AllowAutomaticDeletes="False" AllowAutomaticInserts="False" AllowAutomaticUpdates="False" AutoGenerateColumns="False" AutoGenerateDeleteColumn="False" AutoGenerateEditColumn="False" PageSize="20" ClientSettings-Scrolling-ScrollHeight="500" BorderStyle="None" Width="90%" ondatabound="RadGrid1_DataBound" ShowStatusBar="false" EnableAJAX="True" >

Thanks!
Justin



Shinu
Top achievements
Rank 2
 answered on 09 Sep 2008
1 answer
165 views
Hi,

I have datagrid with GridButtonColumn.  I would like to change the text on ItemDataBound.  However, it doesn't work.

                <telerik:RadGrid ID="dgDFR" runat="server" AutoGenerateColumns="False" GridLines="None" EnableEmbeddedSkins="false" Skin="Windows" OnItemDataBound="dgDFR_ItemDataBound">  
                    <MasterTableView CommandItemDisplay="None" CurrentResetPageIndexAction="SetPageIndexToFirst" Width="900px" 
                        Dir="LTR" Frame="Border" TableLayout="Auto" DataKeyNames="ID" AlternatingItemStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center">  
                        <NoRecordsTemplate>There is no data product for you at this time.</NoRecordsTemplate> 
                        <Columns> 
                                <telerik:GridButtonColumn UniqueName="Action" HeaderText="Action"></telerik:GridButtonColumn> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid>              
 

        protected void dgDFR_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)  
        {  
                if (e.Item is GridDataItem)  
                {  
                    GridDataItem item = (GridDataItem)e.Item;  
                        GridButtonColumn gbtnCol = item.OwnerTableView.Columns.FindByUniqueName("Action") as GridButtonColumn;  
                            gbtnCol.Text = "Resume";  
                            gbtnCol.DataTextFormatString = "Resume";  
                }  
        }  
 


Please let me know what the problem is with my code provided above. 

Chris
Shinu
Top achievements
Rank 2
 answered on 09 Sep 2008
2 answers
223 views
I want to call the JavaScript function after the rad window close, but it does not work.
Following is my codes.
Please help me to solve the problem.

Thank you very much.
http://ppt.cc/CVlG

parent page

function OpenRadWindow() {  
   var oWnd = radopen('WebForm1.aspx'null);  
 
}  
function TestFunction() {  
   alert("Test");  
}  
 
<asp:ScriptManager ID="ScriptManager1" runat="server">  
</asp:ScriptManager> 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
</telerik:RadWindowManager> 
<br /> 
<asp:Button ID="Button1" runat="server" Text="Button" /> 
protected void Page_Load(object sender, EventArgs e)  
{  
   this.Button1.OnClientClick = "OpenRadWindow();return false;";  

rad window page
 //This code is used to provide a reference to the radwindow "wrapper"  
 function GetRadWindow() {  
    var oWindow = null;  
    if (window.radWindow) oWindow = window.radWindow;   
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;   
       return oWindow;  
}  
 
function CallFunctionOnParentPage(fnName) {  
   var oWindow = GetRadWindow();  
   if (oWindow.BrowserWindow[fnName] &&   
       typeof (oWindow.BrowserWindow[fnName]) == "function") {  
      oWindow.BrowserWindow[fnName](oWindow);  
      oWindow.close();  
   }  
<asp:Label ID="InjectScript" runat="server"></asp:Label> 
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" /> 
 
//We do some server-side processing and we decide which function to call  
string fnName = "TestFunction()";  
InjectScript.Text = "<script>CallFunctionOnParentPage('" + fnName + "')</" + "script>";  
 

Vinix
Top achievements
Rank 1
 answered on 09 Sep 2008
0 answers
94 views

Hi,

         I have two tabs for category and Supply. By default I am displaying Category page (I have simple grid with list of items) and selected. I want to take you the user for details page when user selects the record from grid. Can you please help me where I can find the sample code?

Thanks

RAVI

Ravi Prasad Potturi
Top achievements
Rank 1
 asked on 08 Sep 2008
2 answers
335 views
Hi

I want to know how I can change the 'default' text that appears in a textbox that I have placed in the EditFormTemplate section of my radGrid from "Telerik.Web.UI.GridInsertionObject" to something else like "(please enter a value)"

This is what I have tried so far ...
But it still populates the text of the textbox to Telerik.Web.UI.GridInsertionObject when I want to insert a new record.

        <EditFormSettings> 
            <FormTemplate> 
                <asp:TextBox ID="txtUserName" runat="server" Text="(enter a user name)"></asp:TextBox> 
            </FormTemplate> 
            <PopUpSettings ScrollBars="None" /> 
        </EditFormSettings> 
Eric Schoenholzer
Top achievements
Rank 2
 answered on 08 Sep 2008
3 answers
163 views
Is it possible to catch, save, and later initialize PagerStyle settings according to the user's last-used settings?  I.e., if I have

                        <PagerStyle Mode="NextPrevNumericAndAdvanced" Font-Bold="False" Font-Italic="False" 
                            Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Wrap="True" 
                            AlwaysVisible="true" /> 


and my user sets a page size of 50 (my default is 10) can I "learn" that they changed the value, save it in a user-preferences table, and when they come back later, initialize the control with those settings?

If not, is there a "save this control's value on this .aspx page for the life of the session"?

Thanks,
Tim

Tim
Top achievements
Rank 1
 answered on 08 Sep 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?