Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
104 views
I'm using a RadTreeList using a series of bound columns to display a self-referential DataSet. The binding appears to work fine, and the data shows up correctly, but on the client side after the page has rendered I cannot click on anything in the RadTreeList. However, if I use another control on the page to cause a postback, immediately thereafter the RadTreeList is fully functional. I can see in the console that some Java errors are being thrown on the initial page load and not thereafter - complaining that the helpfully-named variables 'a' and 'b' are not initialized. The postback does not even need to cause a rebind; it appears that any sort of postback will make the RadTreeList functional.

Has anyone else seen this behavior, or have any ideas on how to fix it? The RadTreeList is currently inside an ASP UpdatePanel, but I have already tried removing all of the UpdatePanels from the page and I still get the same behavior. I have also tried removing every bit of custom CSS from the project and had no change in behavior there either.
Peter
Top achievements
Rank 1
 answered on 12 Mar 2013
1 answer
97 views
I add a GridTemplateColumn to my grid and set the text of the header but the style of that text is different than the other columns.

Anyone else run into this problem?  Ia m not doing anything fancy and I am not styling the other columns, just assigning a skin.

<telerik:GridTemplateColumn UniqueName="chkDelete" HeaderText="Delete" HeaderTooltip="Delete">
  <ItemTemplate>
    <asp:CheckBox ID="chkItemDelete" runat="server" />
  </ItemTemplate>
  <HeaderStyle  HorizontalAlign="Center" Width="50px" />
  <ItemStyle />
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="From_Name" HeaderText="Origin" UniqueName="From_Name"
  HeaderTooltip="Sort By Origin">
  <ItemStyle HorizontalAlign="Left" />
  <HeaderStyle HorizontalAlign="Left" Width="150px" />
</telerik:GridBoundColumn>
Robert
Top achievements
Rank 1
 answered on 12 Mar 2013
0 answers
100 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
139 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
233 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
210 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
173 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
879 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
279 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?