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

This is more a question than it is a request for help.

I've recently discovered that filenames being uploaded might have non-printable characters in their names.
As such I've written a FixInvalidFileNameProvider to handle that.
And so I've got this in my code:

  • radeditor.DocumentManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;
  • radeditor.ImageManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;

That's all good and fine.

However, we were also going to have another provider to handle some other function as this:
  • radeditor.DocumentManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;
  • radeditor.ImageManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;

So, is this valid?
Would the FileSystemContentProvider replace the FixInvalidFileNameProvider?
Can there be more than one ContentProviderTypeName for the DocumentManager and ImageManager of the RadEditor?

Thanks,
Cameron



Rumen
Telerik team
 answered on 18 Apr 2012
2 answers
64 views
When adding nodes to a RadTreeView using a web service call, the appearance sometimes is different than when adding the nodes in code behind.

See the attached image "screen-view.png" for an example.

Specifically, for nodes added using a web service call, the node text is placed inside a <span> of class rtIn. Nodes added nodes in code behind have node text placed inside a <div> of class rtIn.

In the web service call, this forces the node text to start on the second line if the the node text includes a <TABLE>.

In the example image, the tree on the left is populated by the same web service function. The rendered HTML for the node circled in green is:

<span class="rtIn">
  <img src="images/buttons/F.gif"> Front Hazard Camera -  2 items
</span>

The rendered HTML for the node circled in red (still on the left treeview of the image) is:
<span class="rtIn">
  <table>
    <tbody><tr><td><div onclick="LoadProd('2B156252391EDR9946N1940N0M1','prod')">
    <table>
      <tbody><tr><td><img src="images/other/noprod.gif"></td>
      <td><img src="images/buttons/B.gif"></td>
      <td>2 B 156252391 EDR 99 46 N1940 N0 M1<br>1 product : N0</td></tr></tbody></table></div></td></tr></tbody>
  </table>
</span>

The rendered HTML for the node circled in red on the right treeview is:

<div class="rtIn">
  <div class="rtTemplate">
    <table>
      <tbody><tr><td></td><td><div onclick="LoadProd('2P144116118ESF7600P2600L8C1','g')">
      <table>
        <tbody><tr><td><img src="sqlImageHandler.ashx?id=2P144116118ESF7600P2600L8C1" width="64" height="64"></td>
        <td><img src="images/buttons/P.gif"></td>
        <td>144116118 76 00 P2600...<br>2 products : L8 R8</td></tr></tbody></table></div></td></tr></tbody>
    </table>
  </div>
</div>

Argue with me on how bad the table construction is another time. The only differences between the two red circled nodes appears to be that the table is bumped to a new line when inside a <span class="rtIn"> but not a <div class="rtIn">. I do notice that there is also a <div class="rtTemplate"> included on the code behind node, as I am using a template on the code behind tree. Adding this to the web service call does not help.

To see this in action, go to this test page. The page is obviously a test page, so please forgive the crude design and method for getting the same results shown in the attached file. Here are the steps:
  1. Enter "77" in the box labeled "Site" and click on the "Search" button.
  2. In the middle pane, click on the tree node "Sol 201".
  3. Click on the tree node "Navigation Camera".
  4. On the right side, change the pulldown from "Standard" to "Minimal".
  5. Now change the pulldown from "Minimal" back to "Standard".
  6. Expand the "Navigation Camera" node.

How can I remove the extra line in the nodes added by the web service?


Tom
Top achievements
Rank 1
 answered on 18 Apr 2012
6 answers
334 views

Currently we are using the Telerik RadGrid control to shows the data which is stored in the MOSS custom list. The volume of the data is around 2000+ . [The data may increase as the list is the task list]. The RadContorl is placed on the ASP.Net user control(.ascx page) and the same user control is used in the MOSS site as the custom web part.

When we try to open the page which contains this web part, it is taking long time(about 1 Minute) to load the page. And it is taking about 30 to 40 seconds to group and sort the data.

 

Data Fetch Login –

 

1.       Get all the records from the Custom List using SharePoint APIs and store it in the DataTable object  

2.       Store the DataTable in the Session object for further data operations on Grid

 

The Properties set for the RadGrid are as follows

 

1.       Auto Generate Columns = True

2.       Allow Pagination = False

3.       Allow Filtering = False

4.       Allow Sorting = True

5.       Allow Grouping = True

6.       Allow Client Site Column Reordering = True

 

As per Annadatha’s suggestions  we disabled the Grouping and Sorting  option to check the performance, but find no success. We even tried using the GridBoundColumn (For testing purpose) and disabled “AutoGenrateColumn=False”. But no improvement in page load time.

 

The browser used by customer – IE6 / IE7. We also used IE8 for testing, the performance is bit good in IE8 as compared with IE6 or IE7.

 

And the execution time  taken is

Data Fetch – About 1 Sec

Data Bind – About 0.3 Sec

Page Rendering Time – 30 Sec

 

Could you please let us know what could be the issue.

Tsvetoslav
Telerik team
 answered on 18 Apr 2012
14 answers
161 views
I created a new style with the builder and ran it thru the assembly builder so now I have a Folder with the Images/CSS and a dll file.  Where do I put these files now?  App_Code?
Bozhidar
Telerik team
 answered on 18 Apr 2012
4 answers
767 views
Hello,

I have a page with a drop-down. Based on the selection in the drop-down, data gets loaded and populates a RadGrid. I am using a custom user control for the EditTemplate, so I can't use radGrid.DataBind(). Instead, I have to use radGrid.MasterTableView.Rebind() in association with a NeedDataSource event handler.

My problem is that when I load the page initially, I populate the drop-down and automatically select a value (first item in the list) which triggers the databinding on the RadGrid. I can step through the code in debug mode and see that the grid is being populated with data (both when the DataSource is being set and when a derived property is visited when it's displayed as a column in the grid), but when the page displays, the grid doesn't get rendered. I can then manually choose an item from the drop-down, which triggers the same grid databinding code, it displays properly the second time.

How do I get it to display the grid the first time the page loads?

Erik
Top achievements
Rank 2
 answered on 18 Apr 2012
1 answer
147 views
Hi.

i have a user control that has a RadXmlHttpPanel and a Grid however when I click on the row to load the detail I get an error message saying that the callback could not be found or implements ICallbackHandler. Could you assist.

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function RowSelected(sender, eventArgs) {
            var grid = sender;
            var MasterTable = grid.get_masterTableView();
            var row = MasterTable.get_dataItems()[eventArgs.get_itemIndexHierarchical()];
            var id = eventArgs.getDataKeyValue("C_n_Id");
            alert(id);
            var oXmlPanel = $find("<%= RadXmlHttpPanel1.ClientID %>");
            oXmlPanel.set_value(id);
        }
 
          
    </script>
</telerik:RadScriptBlock>
<div class="ordersContainer">
    <asp:Label runat="server" ID="ordersTitle" CssClass="ordersTitle">Orders for</asp:Label>
    <telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" OnServiceRequest="RadXmlHttpPanel1_ServiceRequest"
        RenderMode="Block" EnableClientScriptEvaluation="true">
       <asp:TextBox ID="TextBox1" runat="server" /><br />
    </telerik:RadXmlHttpPanel>

Slav
Telerik team
 answered on 18 Apr 2012
6 answers
113 views
Hi there,

Is the StyleBuilder working correctly? I tried to use it this morning to set a custom TabStrip style for a particular customer but kept running into an issue where the custom colour is not applied as the base colour. Everytime I tried to set the colour, the base colour would just appear as white for all of the TabStrip items.

The colour that i had selected was #DEF7CE (not available from your colour picker) - is this ok?

Although I have been using Firefox to get it working, I have also tried the other major browsers with no luck...

Really hope you can clarify this for us.

Regards

A.
Mak
Top achievements
Rank 1
 answered on 18 Apr 2012
7 answers
292 views
I love the "warning icon" when using RadInputManager to validate a required field, rather than the asp:RequiredFieldValidation text message. But somehow i can't validate RadDatePicker with RadInputManager.
I've been looking the solution for this but the example that i found always use asp:RequiredFieldValidation.

Could you provide an example to validate RadDatePicker with RadInputManager ?
or how can I get the "warning icon" when the RadDatePicker is required?
Ivan
Top achievements
Rank 1
 answered on 18 Apr 2012
2 answers
71 views
Hi,

Simple page

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm47.aspx.cs" Inherits="fTest.WebForm47" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>       
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%" BorderSize="0" PanesBorderSize="0"
         Skin="Office2010Silver">
        <telerik:RadPane runat="server" ID="RadPane1" Width="350px" MaxWidth="350">
        abc
        </telerik:RadPane>
         <telerik:RadSplitBar runat="server" ID="RadSplitbar1" CollapseMode="Forward" ResizeStep="50" />
         <telerik:RadPane runat="server" ID="RadPane2" Width="350px" MaxWidth="350">
        cde
        </telerik:RadPane>
        </telerik:RadSplitter>
    </div>
    </form>
</body>
</html>

but it renders incorrectly in Chrome (in IE it's fine) - please find attachments below.

I know I could set style directly (as described in Removing the border of RadSplitter panes and the RadSplitter) but the question remains in what scenario property BorderSize is actually working? 

Jacek
Top achievements
Rank 1
 answered on 18 Apr 2012
2 answers
94 views
I am probably missing something incredibly simple. I am retrieving a datatable and binding it to the org chart. I set the top level nodes to have a parent of null, and then the rest are set up referencing their parent. The nodes all render in the correct hierarchy, but the alignment is screwed up.

Screenshot attached.
Peter Filipov
Telerik team
 answered on 18 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?