Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
I have a radwindow with a radupload control. When i open this window, i supply the targetfolder for the files. I can't however not apply this argument. I have below a part of the aspx page

<html xmlns="http://www.w3.org/1999/xhtml">  
<head id="Head1" runat="server">  
<body onload="ConfigureDialog()" > <form runat="server" id="mainForm" method="post">  
 
<script type="text/javascript">  
function ConfigureDialog() {  
//Get a reference to the radWindow wrapper  
var oWindow = GetRadWindow();   
var oArg = oWindow.Argument;  
//Use the argument  
var upload = document.getElementById("RadUpload1");  
if (upload != null)  
upload.TargetFolder = oArg.DestDir;  
}  
</script> 
 
<asp:ScriptManager ID="ScriptManager1" runat="server" /> 
<rad:RadProgressManager ID="Radprogressmanager1" runat="server" /> 
<table style="position: relative;">  
<tr> 
<td id="controlContainer">  
<rad:RadUpload ID="RadUpload1" ControlObjectsVisibility="None" runat="server" OnValidatingFile="OnClientFileSelected" OnFileExists="OnFileExists" Skin="Vista" MaxFileInputsCount="5" TargetFolder="\\test" OverwriteExistingFiles="false" Width="285px" /> 
</td> 
</tr> 
</table> 
</form> 
</body> 
</html> 
 

 

 

I can see that the oArg.DestDir contains the value needed when the ConfigureDialog is called.

How can i solve this?

Thanks!

Genady Sergeev
Telerik team
 answered on 02 Mar 2009
5 answers
153 views

I have been trying to track down a problem that I've been having with Internet Explorer not scrolling to the selected item in a multi-column RadComboBox. 

Here is the control declaration I am using inside a Web User Control that is bound to a custom :

<telerik:RadComboBox   
    ID="CurrencyEdit" 
    runat="server" 
    SkinID="CustomBorderedComboBox" 
    AllowCustomText="false" 
    CssClass="currencyControl" 
    HighlightTemplatedItems="true" 
    MarkFirstMatch="true" 
    OnSelectedIndexChanged="CurrencyEdit_SelectedIndexChanged">  
    <HeaderTemplate> 
        <ul> 
            <li class="col1">ISO Code</li> 
            <li class="col2">Name</li> 
        </ul> 
    </HeaderTemplate> 
    <ItemTemplate> 
        <ul> 
            <li class="col1"><%# DataBinder.Eval( Container, "Text" )%></li>  
            <li class="col2"><%# DataBinder.Eval( Container, "Attributes['Name']" )%></li>  
        </ul> 
    </ItemTemplate> 
</telerik:RadComboBox> 

I am binding this directly in codebehind to a custom object with this:

var binder = new CurrencyBinder();  
var currencies = binder.Get();  
currencies.Sort("ISOCode", System.ComponentModel.ListSortDirection.Ascending);  
var totalCurrencies = currencies.Count;  
 
for (int i = 0; i < totalCurrencies; i++)  
{  
    var currency = currencies[i];  
    var item = new RadComboBoxItem(currency.ISOCode, currency.ISOCode);  
    item.Attributes.Add("Name", currency.Name);  
    this.CurrencyEdit.Items.Add(item);  
}  
              
if (this.CurrencyEdit.Items.Count > 0)  
{  
    this.CurrencyEdit.DataBind();                  

Here is the result for each browser.  Note that IE does select the correct item, it just doesn't scroll it to the top like FireFox is doing.

FireFox Scrolling Properly:
Firefox Scrolling Correctly

Internet Explorer Not Scrolling Properly:
Internet Explorer NOT Scrolling Correctly


Any advice on how to fix this?

Veselin Vasilev
Telerik team
 answered on 02 Mar 2009
2 answers
622 views
Have been learning Telerik controls this past year and have moved first major project from Dev into production. Settings for dev server and web server are are same. We are in serious need of help on this issue. the address where one can view the site is following : The error we are recieving is posted below. Is this a merging of assembly issues??????? 

http://clients.ccg.ksdesignservices.com
login: approver@ccg.com
pword: Pass123

if you need a different username and want to inspect the site more or would rather call us with some guidance that we would be so ever greatful for please call 765-359-1098 ask for ernest or kyle  skype: lotusdogz  msn IM:lotusdog@hotmail.com
our website is www.ksdinfusion.com 
any help in this matter will be shared with the Telerik Community

The relative virtual path '�ķH)�0�D�|m��7W� K��vf���ָ;�r���G��'is not allowed here.

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

Exception Details:System.ArgumentException: The relative virtual path '�ķH)�0�D�|m��7W�K��vf���ָ;�r���G��' is not allowed here.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: The relative virtual path '�ķH)�0�D�|m��7W�K��vf���ָ;�r���G��' is not allowed here.]   System.Web.VirtualPath.Create(String virtualPath, VirtualPathOptions options) +3627063   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +406


Version Information: Microsoft .NET Framework Version:2.0.50727.1433;ASP.NET Version:2.0.50727.1433 

Veselin Vasilev
Telerik team
 answered on 02 Mar 2009
0 answers
83 views
Hi
        How can i connect the Treeview Control within Combobox. The treeview Hierarchy Level like this
Let u assume the Drop Down with in Treeviw like this
                                     Dropdown box within treeview

                                                     INDIA
                                                           Tamil Nadu
                                                            Delhi
                                                     USA 
                                                            Los Angles
                                                            California
 When i Select the node that time the node should be disply the dropdown selected item....

let me how can i connect the database structure and also how can i use the javascripts for selected node collections......
Regards
G. Manikandan
mani
Top achievements
Rank 1
 asked on 02 Mar 2009
3 answers
127 views
Hello

I Have one RadGrid where I want to update a status flag, everithing is working fine but I need that all rows starts selected to prevent the user to click on the "select all" checkbox.

how can I do to programmatic or some Jscript to select all itens during pageload, or to select each item during databinding?


I Imagine somethng like:

RadGrid1.Checkboxes.attr("selected","true")
or

foreach (item in RadGrid1.Itens){
this.selected = "true";
}

Thanxs
Bruno
Top achievements
Rank 1
 answered on 02 Mar 2009
2 answers
174 views
We have just upgraded the version of the RadEditor from 4.5.2 to 5.3.1 on our Sharepoint servers and are now getting an error when going into a shaprepoint page to edit text.

We have a content field set up in out sites that is based on the Publishing HTML field type that is defined in the page layout as:

 

<radE:RadHtmlField id="Content" FieldName="LGR_x0020_Page_x0020_Content" runat="server" displaywidth="480px" ToolsFile="~/_controltemplates/DCCCustomControls/TelerikConfig/LGR2_ToolsFile.xml" ConfigFile="~/_controltemplates/DCCCustomControls/TelerikConfig/LGR2_ConfigFile.xml"></radE:RadHtmlField>

 

When the page is viewed in diaplay mode it is fine, however when the site editor goes into edit the page the content field is not displayed and the error given is:
Failed to render "LGR Page Content" column because of an error in the "Publishing HTML" field type control. See details in log. Exception message: Exception has been thrown by the target of an invocation..

The content fields worked correctly in edit mode before the update.  I've also noticed that on a page where there is more than one <radE:RadHtmlField..... > control that the second editor displays correctly when in edit mode, but the first does not.

Do you have any suggestions as to how we can solve this problem?
Thanks
Peter

Peter Livsey
Top achievements
Rank 1
 answered on 02 Mar 2009
0 answers
96 views
Hi,

I have an issue with a maximised RadWindow.   I am programattically adding a RadWindow to the WindowManager described below.  

     <telerik:RadWindowManager ID="ucRadWindowManager" runat="server" RestrictionZoneID="divRadZone" 
         KeepInScreenBounds="true">  
         <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server">  
            </telerik:RadWindow> 
         </Windows> 
      </telerik:RadWindowManager> 

When I open the window, I am opening it maximised.  When the RadWindow opens, the parent window underneath adjusts itself and the width and height of the page both extend beyond 100%, which means that scroll bars appear on both axis. 
When using the built-in 'Close' in the corner of the RadWindow to close, the parent window adjusts itself and the scroll bars disappear.  However, when using a button in the RadWindow as a mean of closing, the readjustment of the parent window does not occur and you are left with scroll bars and part of the parent page has now extending beyond 100%.

This only occurs when the RadWindow is opened maximised.

I am closing the RadWindow using this code :

      function GetRadWindow() {  
         var oWindow = null;  
         oWindow = window.frameElement.radWindow;  
         return oWindow;  
      }  
 
         GetRadWindow().close();  
     

In an attempt to combat this issue I am trying to utilise a restriction zone for the RadWindow.

I have the DIV for the RestrictionZone set up as follows :

<div id="divRadZone" style="position: absolute; left: 0px; top: 40px; width: 800px; height:400px; z-index:0;"

This works fine, with one important and serious limitation.  The div appears over a RadTree, and the + symbols are not able to be clicked through the DIV.  The node names can be clicked, just not the '+' expanding icon.

As you can see, I have 2 issues here, a solution to either would be fantastic!

Regards,

Sean Duffy
Sean
Top achievements
Rank 1
 asked on 02 Mar 2009
3 answers
217 views

Hello,

I have implemented a 2 level hierarchy using RadGrid with only the 2nd level being editable.

Everything works great unless after the update I force the Parent grid to rebind.  If I do this, the event which normally fires to reload the expanded detail grid (2nd level) does not fire causing a datakey cannot be found message to appear.  Not sure if anyone else has run into this issue and if it's documented anywhere.  I thought it would be useful information for anyone who may experience this in the future.

If you ask why I am attempting to rebind the Parent grid it is because the Master is an aggregate of data in the detail records.  So, I wanted to rebind in order to show updates values in the Master.  For now, I am disabling my call to rebind the Master and letting the user simply collapse the current detail or expand another in order for the grid to rebind itself.

 

Regards,

Jake

Sebastian
Telerik team
 answered on 02 Mar 2009
1 answer
142 views
Hi, I have a radcombo in a detailsview and a requiredfield validator setup to validate the radcombo. The initial value of the validator is set to "0" and the onload selected value of the radcombo is also "0". However, the validator control does not throw an error when the combo value is still "0" i.e. the user has not selected a value, but on postback the validator is ignored. Without changing any functional code, I exchanged the radcombo for an asp dropdownlist and the requiredfield validator fired as expected. Is there a workaround or is this a bug with the radcombo?

Thanks,
Matt
Veselin Vasilev
Telerik team
 answered on 02 Mar 2009
5 answers
129 views
I have a data set that I want to present as a line chart.

I've specified the x axis labels as one of the columns, a 2nd column is the datagroupcolumn and the 3rd is the value.

The issue arises because the xaxis appears to be the distinct values from the xaxis column however for some of the groups these rows don't exist and aren't plotted this results in some series the plots don't line up with the x axis correctly.

imagine this data set

x axis    Group    Value
1            1            1
2            1            2     
3            1            2     
4            1            2     
3            2            10     
4            2            11     


You will note that the group 2 doesn't have any values for x values 1 and 2. The chart however seems to plot by index value and not by x axis value. i.e. at the nth position of the axis it plots group[i].value[n], so in the data above for xaxis 1 we get Group 1 =1 and Group2 = 10.

Apart from filling in all the gaps in the dataset what can be done.
Ves
Telerik team
 answered on 02 Mar 2009
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?