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

I have a AsyncUpload control to upload files in to DB.

<asp:PlaceHolder ID="GeneratedDocs" runat="server" EnableViewState="true" />
                                   <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" Font-Bold="true" Font-Size="11px" MultipleFileSelection="Automatic"
                                       InputSize="42" MaxFileSize="2524288" OnClientValidationFailed="validationFailed"
                                       OnFileUploaded="RadAsyncUpload1_FileUploaded" TargetFolder="~\Attachments" TemporaryFileExpiration="50"
                                       TemporaryFolder="~\Attachments">
                                   </telerik:RadAsyncUpload>

DB table Data :




the content is storing in the DB like as above.

How can I load this files in to AsyncUpload control once I open a page to edit ?

please help me on this..

Thanks in advance...
Hristo Valyavicharski
Telerik team
 answered on 12 Mar 2013
0 answers
114 views
I found the solution. Please ignore this question.
Ma
Top achievements
Rank 1
 asked on 12 Mar 2013
2 answers
206 views
Hi,
i already check on forum that this problem happened to other users, i tried solution but doesn't work...

here is from sql query:

siteid userid username  sitename
331 13        Simon  Paris 15ème
2167 13        Simon       Silac
330 13        Simon    Zonya

here is .cs code:

 private void GenerateTreeView()
    {
        OleDbConnection dbCon = new OleDbConnection("Provider=SQLOLEDB;Data Source=PC-DEV002\\SQLEXPRESS;Persist Security Info=True;Password=dcube2005*;User ID=sa;Initial Catalog=SuiviConso");
        dbCon.Open();
        OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT  su.SiteId, u.userid, u.nomUser, s.NomSite FROM   [User] AS u LEFT OUTER JOIN  Rel_Site_User AS su ON su.UserId = u.UserId LEFT OUTER JOIN Sites AS s ON s.SiteID = su.SiteId WHERE        (su.UserId = 13) ", dbCon);
        DataSet ds = new DataSet();
        adapter.Fill(ds);
        RadTreeView1.DataFieldID = "SiteId";
        RadTreeView1.DataFieldParentID = "UserId";
        RadTreeView1.DataTextField = "nomUser";
        RadTreeView1.DataValueField = "NomSite";
        RadTreeView1.DataSource = ds;
        RadTreeView1.DataBind();
        RadTreeView1.ExpandAllNodes();
    }
Here is the aspx:
 <telerik:RadTreeView ID="RadTreeView1" runat="server" Width="100%" Height="250px">
                <DataBindings>
                    <telerik:RadTreeNodeBinding Expanded="true"></telerik:RadTreeNodeBinding>
                </DataBindings>
            </telerik:RadTreeView>

So ,code is quite easy, i just don't get how to solve the problem ??

THanks

I expect something like this:

*Simon
           ->paris 15
   ->Silac
   ->Zonya


Simon
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
172 views
Hi,
Iam using a RadListBox and 2 buttons Edit & Save.

On edit button click  RadListBox  is made visible and images and description are displyed  in it. 
On Save  button click  am saving  a selected value to database.
Then again on Edit click , RadListBox is showing issues.its style is lost and full data is displyed without scroll.
and am not able to select data in the list also.
Please help

ASPX:

 

 

 

 

 

<telerik:RadListBox ID="RadLBPlantItemsImage" runat="server" Width="190" Height="200" 
  
DataKeyField="ImageName" DataValueField="ImageId" DataTextField="ImageDescription" OnItemDataBound="RadLBPlantItemsImage_ItemDataBound">
  
<ItemTemplate>
  
<asp:Image ID="ImgFamily" runat="server" Width = "25px" Height = "25px" alt='<%# Container.Text %>' Imageurl='<%# DataBinder.Eval(Container.DataItem, "ImageName")%>' />
  
<%# DataBinder.Eval(Container.DataItem, "ImageDescription")%> 
  
</ItemTemplate>
  
</telerik:RadListBox>

 

 

 


ASPX.CS

 

  
protected void Page_Load(object sender, EventArgs e)
 {
       if (!this.IsPostBack)
         {
               RadLBPlantItemsImage.Visible = false;
               BtnEdit.Visible = false;
               PlantItemNormal.Visible = false;
               this.LoadImageList();
          }
           btnSave.Visible = false;
           RadLBPlantItemsImage.Visible = false;
           lblTagCode.Visible = true;
           txtTagCode.Visible = false;
   }
 protected void BtnEdit_Click(object sender, EventArgs e)
   {
           lblTagCode.Visible = false;
           txtTagCode.Visible = true;
           btnSave.Visible = true;
           RadLBPlantItemsImage.Visible = true;
           PlantItemNormal.Visible = false;
           this.LoadImageList();
  }
private void LoadImageList()
   {
           PhysicalObjFamilyTypeDto dto = new PhysicalObjFamilyTypeDto();
           dto = PhysicalObjFamilyTypeManager.GetPlantItemFamilyTypeImages(dto);
           RadLBPlantItemsImage.DataSource = dto.PhysicalObjectFamilyTypeImageDetails;
           RadLBPlantItemsImage.DataBind();
           RadLBPlantItemsImage.SelectedValue = HdRad.Value;
      }

Bozhidar
Telerik team
 answered on 12 Mar 2013
13 answers
871 views
Hi,

how to  Insert into detail table section in Hierarchical Radgrid by clicking the button placed outside.
Bryan
Top achievements
Rank 2
 answered on 12 Mar 2013
1 answer
273 views
I have used RadGrid of Telerik controls (Telerik.web.UI.dll version 2012.3.1308.35) in sharepoint 2010.
When I click  on "LinkButton" inside CommanItemTemplate of RadGrid then on page happen error.
This is detail message error:

 Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3; MS-RTC LM 8)
Timestamp: Thu, 7 Mar 2013 14:38:02 UTC

Message: Sys.WebForms.PageRequestManagerServerErrorException: An unexpected error has occurred.
Line: 5
Char: 62099
Code: 0
URI: http://vihcvmdd97881d7:41495/ScriptResource.axd?d=T_lERX3mTXPlc05lSdsBOpafySpjPXMlwlVc_YbV4D-5IW-CGN8t_afRzLh5iSpWpED8d1yuSwtMrw20cRnwTD-bg9blnBBCLtTeNtG8pgBt4DjqqY0-FAZn3Z4XCQjqvMTiLQ0-340s6puybgEUVB5zBG01&t=ffffffffb868b5f4

How do you fix it?
Thanks
Ghouse Shaik

Maria Ilieva
Telerik team
 answered on 12 Mar 2013
1 answer
70 views
We are getting an error when we try to deploy our web application, 
Could not load file or assembly 'Telerik.Web.UI, Version=2012.2.815.40, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx'

From what I have read in some other places there is supposed to be something in the web.config that we change. BUT in our web.config we don't see anything with the Telerik.Web.UI that states a version number?  

We just have these in our httpHandlers 
add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false"/>
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false"/>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>

And this in our <controls>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>

Where else would the version number be stated. We published and deployed our web app using Visual Studio 2012.
Another version of our web app worked and had the version 2012.2.815.40.dll in the bin.  But the version we are pushing out we are using 2011.1.519.40.  

So it seems we need to add the newer version of the DLL to our recently pushed project. BUT when we put the 2012.2.815.40.dll
back in the /bin folder, we get a different error saying we need to reference the 2011.1.519.40.  

What is our problem?  Where else, other than the web.config, would the version number be for our Telerik references????????

Thanks in advance.

 



Pavlina
Telerik team
 answered on 12 Mar 2013
5 answers
701 views
I have declared the scriptManager in the Main Master page.  This Master page calls a control which needs the TabStrip control on it.

When the code for instantiating radstripcontrol is added I get the following error: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

My MasterPage code is:

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="ScriptManager1" runat="server" ScriptMode="Release"
        EnablePageMethods="True" EnableScriptCombine="False"
        EnableScriptGlobalization="True">
    </telerik:RadScriptManager>
       
        <cc:Navigation ID="navSite" runat="server" />
        <div>
            <asp:ContentPlaceHolder ID="cphTop" runat="server"></asp:ContentPlaceHolder>
        </div>
        <br />
    </form>
</body>

The code on the Control is:

<%@ Import Namespace="System.Xml" %>

<%@ Control Language="C#" AutoEventWireup="true"
    CodeFile="~/controls/Navigation.ascx.cs" Inherits="controls_Navigation" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>    
<!-- Navigation -->
<table class="nav" cellspacing="0" cellpadding="0">
<tr class="navrow"><td colspan="2">
    <table class="navrow" cellspacing="0" cellpadding="0">
    <tr id="navrow1">
    <asp:Repeater ID="repNav" runat="server">
        <ItemTemplate>
            <telerik:RadTabStrip ID="ItemDetailTabStrip" runat="server" SelectedIndex="0" MultiPageID="TabStripMultiPage"
            Skin="Outlook" BorderColor="#B3C17D" Width="958px" >
            <Tabs>
                <telerik:RadTab Text="Key Fields &amp; Smart Terms&#153" BorderColor="#B3C17D">
                </telerik:RadTab>
                <telerik:RadTab Text="Results" BorderColor="#B3C17D">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        </ItemTemplate>
    </asp:Repeater>
    <td style="width:100%; text-align:right; padding: 0px 0px 5px 0px;"
        >&nbsp;</td>
    </tr>
    </table>
</td></tr>
</table>

Could you please advise me what to do to overcome the persistent error?
Thanks.
Nencho
Telerik team
 answered on 12 Mar 2013
1 answer
60 views
Is view state required to perform muti-column filtering? If not, can someone point me to a decent demo of multi-column filtering with view state is disabled. The 2013 Q1 update broke all of our grids where we disabled view state for performance gains and we were able to have multi column filtering. This is a BIG step backwards if view state is required.
Andrey
Telerik team
 answered on 12 Mar 2013
1 answer
71 views
Hi

I have a simple RadAutoCompleteBox as follows :-

<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<div>
    <telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server"
        DataTextField="Name" DataValueField="Id" DataSourceID="XmlDataSource1"
        />
 
<asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="Persons.xml">
</asp:XmlDataSource>
 
</div>
</form>
and the XML File looks like this

<?xml version="1.0" encoding="utf-8"?>
<Persons>
  <Person>
    <Id>1</Id>
    <Name>Rita</Name>
    <Surname>Nelson</Surname>
    <Age>59</Age>
  </Person>
  <Person>
    <Id>2</Id>
    <Name>Simon</Name>
    <Surname>West</Surname>
    <Age>59</Age>
  </Person>
  <Person>
    <Id>3</Id>
    <Name>Richard</Name>
    <Surname>Mitchell</Surname>
    <Age>59</Age>
  </Person>
  <Person>
    <Id>4</Id>
    <Name>Alison</Name>
    <Surname>McGrath</Surname>
    <Age>59</Age>
  </Person>
</Persons>

However I am getting this error in a popup on keystroke

System.Web.UI.WebControls.XmlDataSoureNodeDescriptor does not contain a property with the name "Name"

What am I doing wrong?

Thanks for your help
Bozhidar
Telerik team
 answered on 12 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?