Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
1.5K+ views
Hi,

We have our web application hosted on a shared server and have managed to get the hosting company to install the Radupload.DLL files into the GAC. Now when we try to upload a file, we can see the progress bar, however once it reaches the end of the progress bar, we are getting the following error. Do we need to apply any particular permissions on the dll once it has been installed on the GAC? the actual line of code that it is failing on is FilesSuccessResults.DataBind(). Where FilesSuccessResults is a repeater control listing out the file that has been uploaded.

System.Reflection.TargetInvocationException: Property accessor 'FileName' on object 'Telerik.WebControls.RadUploadUtils.RadUploadFile' threw the following exception:'Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName()' ---> System.MethodAccessException: Telerik.WebControls.RadUploadUtils.RadUploadFile.get_FileName() ---> System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.PermissionSetTriple.CheckSetDemand(PermissionSet demandSet, PermissionSet& alteredDemandset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.CheckSetDemand(PermissionSet pset, RuntimeMethodHandle rmh) at System.Security.PermissionListSet.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Threading.CompressedStack.DemandFlagsOrGrantSet(Int32 flags, PermissionSet grantSet) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant, CompressedStack securityContext) at System.Security.CodeAccessSecurityEngine.ReflectionTargetDemandHelper(Int32 permission, PermissionSet targetGrant) The action that failed was: Demand The type of the first permission that failed was: System.Security.PermissionSet --- End of inner exception stack trace --- at System.Reflection.MethodBase.PerformSecurityCheck(Object obj, RuntimeMethodHandle method, IntPtr parent, UInt32 invocationFlags) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) --- End of inner exception stack trace --- at System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at System.Web.UI.DataBinder.Eval(Object container, String expression) at System.Web.UI.TemplateControl.Eval(String expression) at ASP.promoitemedit_aspx.__DataBind__control6(Object sender, EventArgs e) in e:\inetpub\vs156194\milieextranet\PromoItemEdit.aspx:line 98 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBind() at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at MilieExtranetUI.PromoItemEdit.BindResults(UPLOAD_STATUS bSuccess) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 994 at MilieExtranetUI.PromoItemEdit.btnUpload_Click(Object sender, EventArgs e) in C:\SVN\LMG\Millie\trunk\Code\MillieExtraNet\MillieExtraNet\PromoItemEdit.aspx.vb:line 1089

Paul
Telerik team
 answered on 30 Jun 2009
3 answers
65 views
Hi There,
I have a page with several tabs and inside each tab we have RadComboBoxes. The RadComboBoxes are receiving the attribute skin="Webblue" from a .Skin file in our App Themes folder. The tabs are set to only render the selected tab. The first tab looks fine. However, all the other tabs when they are selected and rendered the ComboBoxes' style is broken so that when an Item wraps it doesn't take up 2 lines it actually floats over the next item on the next line. So that the item under a wrapping item is unreadable. Please any help would be appreciated. Thanks.
Paul
Telerik team
 answered on 30 Jun 2009
0 answers
101 views
Hi ,

I need answer for this question for an interview. I am unable to fine them anywhere. Can any sharepoint guru here in the forum help me out by giving the answer.

Questions are - 

1) disadvantages of converting listform web part to dataform webpart
2) how to convert List form webpart to XSLT view
. Anyhelp would be thankful
abc 123
Top achievements
Rank 1
 asked on 30 Jun 2009
1 answer
197 views

Hi
 ScriptManager.RegisterStartupScript not working in share point web part with rad ajax panel.
with out rad ajax panel its working fine
 ScriptManager.RegisterStartupScript(this._radAjaxpanelminical, GetType(), "showandhide", "showHideContent()", true);

Can u guide me as soon as possible

Regards
Vairam
vairam
Top achievements
Rank 1
 answered on 30 Jun 2009
1 answer
84 views
Hi, How can I customize the group footers for to display only the groupings that I select and not all group footers??

Thanks for advance.
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2009
1 answer
137 views
I'm having some trouble changing the image used for the update and cancel buttons, when my grid is set to use InPlace editing. I am currently using this code -

<EditColumn UniqueName="EditCommandColumn1" ButtonType="ImageButton" 
                    CancelImageUrl="~/Images/Undo.png" UpdateImageUrl="~/Images/save.jpg">  
        </EditColumn> 

This code works fine when the EditMode is EditForms, but when set to InPlace, the images revert back to the standard green tick / red cross.
Shinu
Top achievements
Rank 2
 answered on 30 Jun 2009
1 answer
212 views

Recently convert my radgrid from .Net1.1 to 2.0...
DataFormatString works fine with 1.1 but with 2.0 Radgrid Q3 2008 date cannot be formatted as I wanted, and it always adding time.

<rad:GridBoundColumn HeaderText="DOB" DataField="dob" DataFormatString="{0:MM/dd/yyyy}" UniqueName="dob">  
                                    <ItemStyle Font-Size="X-Small" Font-Names="Arial Narrow" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle> 
                                    <HeaderStyle Width="74px"></HeaderStyle> 
                                </rad:GridBoundColumn> 

Any help would be appreciated...
Thanks in advance..

RJ
Top achievements
Rank 1
 answered on 29 Jun 2009
1 answer
107 views
Good Day!

How can I trigger a InitInsert when the button that is being click is residing outside the grid. The scenario is: I have a toolbar and a grid. When user click the "New" button in the toolbar I need to show the insert form of my radgrid(editmode=popup).

Thanks is advance!
unknown
Top achievements
Rank 1
 answered on 29 Jun 2009
0 answers
124 views
Hi Everyone,

I  am facing a problem with font size in combo box as well in drop -down in radgrid for page size , it shows me too small font size but once if i select then it shows proper font size.

Except font size it is working fine , once i select any value from drop-down it shows proper font size for selected item but it doesnt show proper size for unselected item in drop down. All rest look so small which cant be see without select them and not readable.

I know i am missing some propery but can you guys tell me which property i need to set to get  display them in proper font size.



Mahen
Top achievements
Rank 1
 asked on 29 Jun 2009
2 answers
97 views

Hi Everyone,

I have a grid in aspx page like below side..


<

 

div>

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

 

</telerik:RadScriptManager>

 

 

<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

 

 

<script type="text/javascript">

 

 

function RowDblClick(sender, eventArgs) {

 

sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());

}

 

</script>

 

 

<

 

style type="text/css">

 

 

.EditFormHeader td

 

{

 

background: #dadec8;

 

 

padding: 5px 0px;

 

}

 

</style>

 

 

 

</telerik:RadCodeBlock>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="radGridProduct">

 

 

<UpdatedControls>

 

 

<telerik:AjaxUpdatedControl ControlID="radGridProduct" />

 

 

<telerik:AjaxUpdatedControl ControlID="divMsg" />

 

 

</UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

<div id="divMsg" runat="server" style="float: left;">

 

 

<asp:Label ID="Label1" runat="server" EnableViewState="False" Visible="false"></asp:Label>

 

 

</div>

 

 

<br />

 

 

<telerik:RadGrid ID="radGridProduct" runat="server" ShowStatusBar="true" OnNeedDataSource="radGridProduct_NeedDataSource"

 

 

GridLines="None" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"

 

 

OnPreRender="radGridProduct_PreRender" AllowAutomaticInserts="True"

 

 

AllowAutomaticUpdates="True" HorizontalAlign="NotSet"

 

 

OnItemInserted="radGridProduct_ItemInserted" OnItemUpdated="radGridProduct_ItemUpdated">

 

 

<MasterTableView DataKeyNames="ID" GridLines="None" Width="100%">

 

 

<Columns>

 

 

<telerik:GridEditCommandColumn UniqueName="EditCommandColumn">

 

 

</telerik:GridEditCommandColumn>

 

<%

-- <telerik:GridBoundColumn Visible="False" UniqueName="ID" HeaderText="ID"

 

DataField="ID" EditFormColumnIndex="1">

</telerik:GridBoundColumn>--

 

%>

 

<%

-- <telerik:GridBoundColumn Visible="False" UniqueName="City" HeaderText="City" DataField="City"

 

EditFormColumnIndex="1">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn Visible="False" UniqueName="Region" HeaderText="Region"

DataField="Region" EditFormColumnIndex="2">

</telerik:GridBoundColumn>

<telerik:GridBoundColumn Visible="False" UniqueName="TitleOfCourtesy" HeaderText="TOC"

DataField="TitleOfCourtesy" EditFormColumnIndex="2">

<HeaderStyle Width="60px"></HeaderStyle>

</telerik:GridBoundColumn>--

 

%>

 

 

<telerik:GridBoundColumn UniqueName="ProductName" EditFormColumnIndex="0" HeaderText="ProductName"

 

 

DataField="ProductName">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="SKU" EditFormColumnIndex="0" HeaderText="SKU"

 

 

DataField="SKU">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="CreatedOn" EditFormColumnIndex="0"

 

 

HeaderText="Created Date" DataField="CreatedOn">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn UniqueName="Active" EditFormColumnIndex="1" HeaderText="Active"

 

 

DataField="Active">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

<EditFormSettings ColumnNumber="4" CaptionFormatString="Edit details for product: {0}"

 

 

CaptionDataField="ProductName">

 

 

<FormTableItemStyle Wrap="False"></FormTableItemStyle>

 

 

<FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>

 

 

<FormMainTableStyle GridLines="None" CellSpacing="0" CellPadding="3" Width="100%" />

 

 

<FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module"

 

 

Height="110px" Width="100%" />

 

 

<FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>

 

 

<FormStyle Width="100%" BackColor="#eef2ea"></FormStyle>

 

 

<EditColumn UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit">

 

 

</EditColumn>

 

 

<FormTableButtonRowStyle HorizontalAlign="Left" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>

 

 

</EditFormSettings>

 

 

<ExpandCollapseColumn ButtonType="ImageButton" Visible="False" UniqueName="ExpandColumn">

 

 

<HeaderStyle Width="19px"></HeaderStyle>

 

 

</ExpandCollapseColumn>

 

 

</MasterTableView>

 

 

<ClientSettings>

 

 

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

</ClientSettings>

 

 

</telerik:RadGrid>

 

</

 

div>

 

</

 

asp:Content>


This is code behind code -

 

using

 

System;

 

 

 

using

 

System.Collections.Generic;

 

 

 

using

 

System.Drawing;

 

 

 

 

 

 

 

 

 

using

 

System.Data;

 

 

 

using

 

Telerik.Web.UI;

 

 

 

public

 

partial class Users_ProductList : System.Web.UI.Page

 

 

 

 

{

 

static DataTable dtProduct = null;

 

 

protected void Page_Load(object sender, EventArgs e)

 

{

 

if (!IsPostBack)

 

{

 

IList<TProduct> productlist = CacheHelper.edPortalService.GetProducts();

 

 

if (productlist != null && productlist.Count > 0)

 

dtProduct =

CollectionHelper.ConvertTo<TProduct>(productlist);

 

}

 

else

 

 

 

 

 

this.radGridProduct.MasterTableView.Items[1].Edit = true;

 

 

}

 

protected void radGridProduct_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.KeepInEditMode =

true;

 

e.ExceptionHandled =

true;

 

DisplayMessage(

true, "Product " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " cannot be updated. Reason: " + e.Exception.Message);

 

}

 

else

 

 

 

 

{

DisplayMessage(

false, "Product " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " updated");

 

}

}

 

protected void radGridProduct_ItemInserted(object source, GridInsertedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.ExceptionHandled =

true;

 

e.KeepInInsertMode =

true;

 

DisplayMessage(

true, "Product cannot be inserted. Reason: " + e.Exception.Message);

 

}

 

else

 

 

 

 

{

DisplayMessage(

false, "Product inserted");

 

}

}

 

private void DisplayMessage(bool isError, string text)

 

{

 

this.Label1.Font.Bold = true;

 

 

this.Label1.Visible = true;

 

 

if (isError)

 

{

 

this.Label1.ForeColor = Color.Red;

 

}

 

else

 

 

 

 

{

 

this.Label1.ForeColor = Color.Green;

 

}

 

this.Label1.Text = text;

 

}

 

protected void radGridProduct_NeedDataSource(object source, GridNeedDataSourceEventArgs e)

 

{

BindProductGrid();

}

 

private void BindProductGrid()

 

{

 

if (dtProduct != null && dtProduct.Rows.Count > 0)

 

radGridProduct.DataSource = dtProduct;

}

 

 

protected void radGridProduct_PreRender(object sender, System.EventArgs e)

 

{

 

// if (!this.IsPostBack)

 

 

 

 

 

// {

 

 

 

 

 

// this.radGridProduct.MasterTableView.Items[1].Edit = true;

 

 

 

 

 

// this.radGridProduct.MasterTableView.Rebind();

 

 

 

 

 

// }

 

 

 

 

}

}


can someone help me where i am lacking as my update link is not working and even while i click on cancel link for any row then it always open second row in grid for cancel .

Any suggestion.

Mahen
Top achievements
Rank 1
 answered on 29 Jun 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?