Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
115 views
Hi there,

I am using an editable radgrid using a form template (EditFormType="Template") . During adding of new row, right after Insert link button is clicked, the edit form (in updated mode) is displayed by default to allow the user to edit the row that was just inserted. If I am going to supress this default, how should I do it? Such that after inserting a new row, the edit form (in update mode ) should not be displayed. It should only be displayed when Add new row (InitInsert) or Edit (Update) link is clicked.

Thanks in advance.

Jun
Sebastian
Telerik team
 answered on 17 Sep 2009
1 answer
144 views
I am able to do this with 2009 Q1

 

string strMessage = "Do you want to add items now?";

 

JS =

" Sys.Application.add_init(CRInit);";

 

JS +=

" function CRInit(){ Sys.Application.add_load(SRRunOnce);}";

 

JS +=

" function SRRunOnce(){ showConfirmation(); Sys.Application.remove_load(SRRunOnce);}";

 

JS +=

" function GetRadWindow1(){";

 

JS +=

" var oWindow = null;";

 

JS +=

" if (window.radWindow) oWindow = window.radWindow;";

 

JS +=

" else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;";

 

JS +=

" return oWindow;";

 

JS +=

"}";

 

JS +=

" function showConfirmation(){";

 

JS +=

" function CallBackFn(arg){";

 

JS +=

" var oWindow = GetRadWindow1();";

 

JS +=

" if (arg == 'Yes'){";

 

JS +=

" window.location = 'ComponentReworkPackSlipItemDetail.aspx?R=Y&A=A&pid=" + oPackingSlip.PackingSlipReworkId.ToString() + "';";

 

JS +=

" }";

 

JS +=

" else {";

 

JS +=

" oWindow.Close();";

 

JS +=

" oWindow.BrowserWindow.refreshGridAndLocate(" + oPackingSlip.PackingSlipReworkId.ToString() + ");";

 

JS +=

"}";

 

JS +=

"}";

 

JS +=

" radconfirm('" + strMessage + "', CallBackFn, 530, 100, null, 'Confirm Add Item');";

 

JS +=

"}";

 

 

ScriptManager.RegisterStartupScript(Page, this.Page.GetType(), key, JS, true);

 

}


After user click a button to update to database, the page will prompt user to determine whether add line item now. The above works fine.

However, when updating to 2009Q2, the code is no longer work with JS error message of "object doesn't support this property or method".

Please advice how to resolve this.
Fiko
Telerik team
 answered on 17 Sep 2009
1 answer
100 views
Hello,
   I need to know a way to get an Empty Message, such as are used in Combo Boxes in conjunction with RadTreeView.  I guess it involves using Javascript to populate the RadComboBox.
How do you use OnClientDropDownOpenedHandler to populate the ComboBox that does not have a RadTreeView as a datasource?


Thanks
Simon
Telerik team
 answered on 17 Sep 2009
3 answers
469 views
Hi,
 
I have a radtree which I want to delete nodes on the click of a context menu. Here is what my treeview looks like:

...item1     ----> on right click of this node i have a context menu with the option "Clear"
......item1.1
......item1.2
.........item1.2.1
...item2
...item3

Once the "Clear" option is pressed i would like the tree to delete all the nodes under "item1". Leaving the RadTree looking like the following:

...item1
...item2
...item3

How would i do this?
Thanks
Mouse
Top achievements
Rank 1
 answered on 17 Sep 2009
1 answer
105 views
Hello,

I couldn't export recurring events. The following article says that "http://www.telerik.com/products/aspnet-ajax/whats-new/release-history/q1-2008-sp2-version-2008-1-619.aspx", "iCalendar export now correctly exports recurring appointments".

So, I assumed that I can use the same "ExportToICalendar" static method to export the recurring events to a ".ics" file. But I am getting an error "Cannot export appointments with hourly recurrence in outlook compatible mode".

Is there any other method, which could use to export recurring events?


Thank you,
Deepa
Peter
Telerik team
 answered on 17 Sep 2009
2 answers
88 views

Hello..
I need to know if i am doing something wrong with the marked zone at radchart.-
But i have a little problem.
If i set the DataLabelsColumn, the Markedzone doesn´t work, but if i comment this line everithing is ok with the markedzone.
The line is this -->RadChart1.PlotArea.XAxis.DataLabelsColumn = "DiasMes";


RadChart1.DataSource = dt;

RadChart1.PlotArea.XAxis.DataLabelsColumn =

"DiasMes";

 

RadChart1.DataBind();

 

foreach (ChartSeries oSerie in RadChart1.Series)

 

{

oSerie.Type =

ChartSeriesType.StackedArea;

 

oSerie.Appearance.LabelAppearance.Visible =

false;

 

 

}

 

 

 

ChartMarkedZone oMZ = new ChartMarkedZone();

 

oMZ.ValueStartX = 10;

oMZ.ValueEndX = 12;

oMZ.Appearance.FillStyle.MainColor = System.Drawing.

Color.Red;

 

RadChart1.PlotArea.XAxis.LabelStep = 1;

RadChart1.PlotArea.XAxis.MinValue = 1;

RadChart1.PlotArea.XAxis.MaxValue = MaxDayOfMonth;//int Value

RadChart1.PlotArea.MarkedZones.Add(oMZ);

RadChart1.DataBind();

Fabian Raul Jofre
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
156 views
Hi,

Im trying to implement the inputmanager (numeric) against a grid with Autogenerated columns and it isnt working.  Is this supported?

I have Tried:

defining the target control as the radgrid in the input manager

attaching the uniqueID of the input controls in the grid (auto generated inplace edit mode) to the input manager

attaching the ClientID of the input controls in the grid (auto generated inplace edit mode) to the input manager


The Grid I have:

Is a auto generated grid to show pivot data and all the rows in the grid are in edit mode as the grid loads

Thanks
Sebastian
Telerik team
 answered on 17 Sep 2009
2 answers
119 views
I've run across a minor glitch with setting window height/width in ie7 and wondering if anyone can assist.

We have a ChangePage function that basically opens a new radwindow to a specified URL or changes the url of the radwindow that is currently open if one exists. I need the window to shrink to the 'aov' size if it comes from another location where the window is larger. This appears to work fine in FF and IE8, but in IE7 it is shrinking the height, but not the width. If I then click the refresh button on the radwindow, it will resize properly...but won't be centered.

function ChangePage(FileName, qty)  
{ 
   if (window.frameElement) { 
        // Redirect 
        GetRadWindow().SetUrl(FileName);     
         
        var curWidth = GetRadWindow().get_width(); 
        // Coming from Pers to AOV - shrink window 
        if (curWidth > 700 && FileName.indexOf("aov") > -1) { 
            GetRadWindow().set_width(645); 
            GetRadWindow().set_height(600); 
            GetRadWindow().center(); 
        } 
        // Coming from AOV to Pers - expand window 
        if (curWidth < 700 && FileName.indexOf("aov") == -1) { 
            GetRadWindow().set_width(1000); 
            GetRadWindow().set_height(850); 
            GetRadWindow().center(); 
        }            
    } else { 
        // Going to AOV or Pers check 
        if(FileName.indexOf("aov") > -1) { 
            openRadWindow(FileName,600,645,1,0,1,1,qty); 
        } else { 
            openRadWindow(FileName,850,1000,1,0,1,1,qty); 
        } 
    } 
} 
 
 
function GetRadWindow()  
{     
    var oWindow = null; 
     if (window.radWindow) oWindow = window.radWindow;  
     else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
         
     oWindow.SetModal(true); 
     return oWindow; 
}  

Fiko
Telerik team
 answered on 17 Sep 2009
2 answers
378 views
Hello,

I have a grid which I have configured with a Fixed Table Layout.
There are some cells which contain data which expand beyond the width of the grid and are thereby truncated as is expected.

The grid uses a Web User Control for an edit form.
When in edit mode the edit form displays properly, but the row that pertains to the data to be edited contains the columns with large amounts of data spilling over to the the adjacent cells.

I have been able to duplicate this behavior using one of your demos: UserControlEditForm simply by updating the following code:

<MasterTableView Width="100%" CommandItemDisplay="Top" TableLayout="Fixed" DataKeyNames="EmployeeID">

 


Is there anyway to apply the truncated behavior to the column data for the row being edited when in edit mode?

Thanks,
Jon
Jon
Top achievements
Rank 1
 answered on 17 Sep 2009
5 answers
432 views
Hi all,

After a lot of coffee, angry users, and frustration at finding the dialogs for the Q1 2009 SP2 working great on my development machine, but not on IIS 7, I finally found the solution to the problem.  Now, if you search these forums, you will find other possible problems that might be applicable to you.  For example, you might need to change the dialoghandler.aspx references under system.webServer in your web.config to dialoghandler.axd.  That seems to have helped some.

In my case, however, none of the solutions I tried on the forums made a dent.  It wasn't until I tried loading the dialogs from the editor while logged in to the web server, where I have failed request tracing enabled (which only displays detailed information if you're accessing your site locally). 

Turns out, if you have request filtering enabled, and you have a maximum querystring length set to, say, the neighborhood of 500, the web server will truncate that gigantic querystring that the dialogs are passed by the editor (and, I'm assuming, other controls). 

To see if this is what you are running into, and to resolve it if it is, do the following:

1.  Open notepad as an administrator.
2.  Open applicationHost.config in c:\windows\system32\inetsrv\config
3.  Do a search for maxUrl and maxQueryString.  They'll be under the requestFiltering section of the file, in the requestLimits node.

For me, setting the maxQueryString to 1000 did the trick.  maxUrl will need to be at least that, since it'll include host and path information, as well.

For me, the worst part was that ASP.Net wasn't ever getting the error since the request was being trapped by a native module higher up the food chain, and as far as I knew, it was a simple 404.  Turns out it was a 404.something else, a .13 I think.

Anyway, I hope this helps someone butting heads with the problem.  Yesterday was pretty stressful for me.  GP's a high-load site with a lot of members that expect I won't break stuff with every push!  =)
Steve
Top achievements
Rank 2
 answered on 17 Sep 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?