Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
101 views
Hello

I'm using set_selected() to select many rows from a RadGrid in a loop similar to this:

mtv = grid.get_masterTableView();

dataItems = mtv.get_dataItems();

for (z; z < AllAvailablePipes; z++) {

    dataItem = dataItems[z];

    var item = dataItem.set_selected(true);

    SelectedPipes = SelectedPipes + 1

    if (SelectedPipes == PipesToBeSelected) break

}


Telerik.Web.UI assembly version is 2011.1.519.40

The problem is the speed. It takes about 5 to 10 seconds for this to run for about 80 rows. In some old slow computers where I need this to run, it takes more than 25 seconds!!!

The grid has a column GridClientSelectColumn:

 

<telerik:GridClientSelectColumn ConfirmDialogType="RadWindow" UniqueName="ClientSelectColumn">
     <HeaderStyle Width="50px" /> 
</telerik:GridClientSelectColumn>

 

Removing that column reduces the time by half. But that is still too much and I need that column. ClientEvents like OnRowSelected or OnRowSelecting are not used at all.

Any suggestion?

Thanks, Francisco.
Francisco
Top achievements
Rank 1
 asked on 12 Mar 2013
3 answers
146 views
I have a form with a RadGrid set to use the Outlook skin and a RadPanelBar also set to use the Outlook skin.  This has been working without issue until I followed the code example on how to force all rows in a RadGrid into edit mode.  When this happens, the RadGrid.Rebind() causes the RadPanelBar to loose styling.  I have isolated it to just the Rebind() on the RadGrid's PreRender.

Private Sub rgScripts_PreRender(sender As Object, e As EventArgs) Handles rgScripts.PreRender
    If Not IsPostBack Then
        For Each item As GridItem In rgScripts.MasterTableView.Items
            If TypeOf item Is GridEditableItem Then
                Dim editableItem As GridEditableItem = CType(item, GridDataItem)
                editableItem.Edit = True
            End If
        Next
        rgScripts.Rebind()
    End If
End Sub

My RadGrid and RadPanelBar are defined as followed:

<telerik:RadGrid ID="rgScripts" runat="server" Skin="Outlook" AllowMultiRowEdit="true">
...
</telerik:RadGrid>
 
<telerik:RadPanelBar ID="pbAddNewDrug" runat="server" Width="100%" Skin="Outlook" EnableEmbeddedSkins="true">
...
</telerik:RadPanelBar>

This works perfectly if rgScripts.Rebind() isn't called.

Thanks,
William
William
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
246 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
118 views
I found the solution. Please ignore this question.
Ma
Top achievements
Rank 1
 asked on 12 Mar 2013
2 answers
213 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
176 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
892 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
285 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
75 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
722 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
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?