Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
Does RadUpload work with the integrated pipeline mode of IIS7 (I see posts from several years back that it did not). It appears to work fine with the ASP.NET Development Server but once deployed to a test server running 2k8R2 IIS7 I get a 404 - File or directory not found when attempting a larger file upload. This file size would be large enough to trigger the upload progress bar. As far as I can see my web.config is fine, the only difference being that I'm running in 4.0 Integrated mode. I cannot (well it would be a major pain) go to using the Classic Asp.Net app pool and trying to use the 4.0 classic mode results in a failure as well. I'm running Q3 2011 of the Telerik Controls.

Any help would be appreciated
ColinBlakey
Top achievements
Rank 2
 answered on 18 Apr 2012
0 answers
78 views
Hi Telerik Team,

I'm new to radgrid and i have an issue with grid loading time is more than a minute event less number or none..
So, I have gone throught at db level every thing is fine and it is taking 1 second while data retrival at query level.

may it possiable with radGrid to slow down the process?
If so, let me know with optimization tips at grid level..

Code:
<telerik:RadGrid ShowGroupPanel="true" AutoGenerateColumns="false" ID="GrdJobList"
                Skin="Vista" AllowFilteringByColumn="false" AllowSorting="True" ShowFooter="True"
                runat="server" GridLines="None" AllowPaging="true" PageSize="10" OnSelectedIndexChanged="GrdJobList_SelectedIndexChanged">
                <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" />
                <ExportSettings HideStructureColumns="True" FileName="ServiceSummaryJobs" ExportOnlyData="true"
                    IgnorePaging="true" OpenInNewWindow="true" />
                <MasterTableView ShowGroupFooter="true" AllowMultiColumnSorting="true" GroupLoadMode="Server"
                    GroupsDefaultExpanded="true" Name="MainTable"
                    TableLayout="Fixed">
                    <Columns>
                        <telerik:GridTemplateColumn UniqueName="RadioButtonTemplateColumn" HeaderStyle-Width="30px">
                            <ItemTemplate>
                                <asp:RadioButton id="RadioButton1" OnCheckedChanged="RadioButton1_CheckedChanged"
                                    AutoPostBack="True" runat="server">
                                </asp:RadioButton>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../../Files/Images/icons/icoView.gif"
                            UniqueName="ViewButton" CommandName="ViewCommand" HeaderStyle-Width="30px">
                        </telerik:GridButtonColumn>
                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../../Files/Images/icons/icoAuthorise.gif"
                            UniqueName="AuthoriseButton" CommandName="AuthoriseCommand" HeaderStyle-Width="25px">
                        </telerik:GridButtonColumn>
                        <telerik:GridBoundColumn DataField="Id" HeaderText="Id" HeaderStyle-Width="60px"
                            FilterControlWidth="20px">
                        </telerik:GridBoundColumn>
                        <%-- <telerik:GridHyperLinkColumn DataTextField="Id" HeaderText="Job Id" HeaderStyle-Width="60px" FilterControlWidth="20px" DataNavigateUrlFields="Id" DataNavigateUrlFormatString="javascript:openViewJobPopUp('{0}');" >
                        </telerik:GridHyperLinkColumn>
                        <telerik:GridTemplateColumn HeaderText="Job Id" HeaderStyle-Width="60px" FilterControlWidth="20px">
                            <ItemTemplate>                              
                                    <dns:DotNetSmithPopBtn CommandName="popupViewJobCommand" ID="btnPopViewJob" BackColor="WhiteSmoke" ForeColor="blue" runat="server" Text='<%#Eval("Id")%>' PopupURL="~/Pages/Jobs/PopupQuickJobInfo.aspx" PopupURLParams='<%# "JobId="+Eval("Id").ToString()%>'  Height="22px" Width="40px" />                              
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>  --%>
                        <telerik:GridDateTimeColumn DataField="ReceivedDate" HeaderText="Worked On" DataFormatString="{0:dd-MMM-yyyy}"
                            HeaderStyle-Width="70px">
                        </telerik:GridDateTimeColumn>
                        <%-- <telerik:GridBoundColumn DataField="ReceivedDate" HeaderText="Worked On" DataFormatString="{0:dd-MMM-yyyy}"
                            HeaderStyle-Width="130px">
                        </telerik:GridBoundColumn>--%>
                        <telerik:GridBoundColumn DataField="ContactName" HeaderText="Customer" SortExpression="ContactName"
                            HeaderStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PersonName" HeaderText="Requested By" HeaderStyle-Width="200px"
                            Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SiteName" HeaderText="Site" SortExpression="SiteName"
                            UniqueName="SiteName" HeaderStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="LocationDesc" HeaderText="Location" SortExpression="LocationDesc"
                            UniqueName="LocationDesc" HeaderStyle-Width="200px" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="SerialNo" HeaderText="Serial No" SortExpression="SerialNo"
                            HeaderStyle-Width="90px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CustomerAssetNo" HeaderText="Asset No" SortExpression="CustomerAssetNo"
                            HeaderStyle-Width="90px" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EquipmentNo" HeaderText="Eqp No" SortExpression="EquipmentNo"
                            HeaderStyle-Width="70px" Visible="false">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="ModelNo" HeaderText="Model No" SortExpression="ModelNo"
                            FilterControlWidth="60px" HeaderStyle-Width="70px">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="PurchaseOrderNo" HeaderText="Purchase Order"
                            FilterControlWidth="60px" SortExpression="PurchaseOrderNo" HeaderStyle-Width="70px">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Job Total (Ex-GST)" HeaderStyle-Width="70px">
                            <ItemTemplate>
                                <asp:Label Id="lblJobTotal" runat="server" Text='<%# getJobTotalExcl(Eval("Id")) %>'>
                                </asp:Label>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="JobStatus" HeaderText="Status" SortExpression="JobStatus"
                            FilterControlWidth="120px" HeaderStyle-Width="100px">
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn ButtonType="ImageButton" ImageUrl="../../Files/Images/icons/icoWarranty.gif"
                            UniqueName="CalculateWarrantyButton" CommandName="CalculateWarrantyCommand" HeaderStyle-Width="30px">
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowDragToGroup="true">
                    <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True" />
                    <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
                    <Resizing AllowColumnResize="true" />
                </ClientSettings>
                <GroupingSettings ShowUnGroupButton="true" />
            </telerik:RadGrid>
Chakrapani
Top achievements
Rank 1
 asked on 18 Apr 2012
1 answer
75 views
How to show different user controls in edit and insert mode?
Princy
Top achievements
Rank 2
 answered on 18 Apr 2012
3 answers
185 views
I need to clear the DateInput field and CalendarPopUp when I click a radio button.  I have my RadDatePicker set up like this:
 

<

 

telerik:RadDatePicker

 

 

SharedCalendarId="sharedCalendar"

 

 

id="dpAuditorReportBeginDate"

 

 

MinDate="1/1/1900"

 

 

Runat="server"

 

 

Width="100px"

 

 

style="vertical-align:middle;"

 

 

cssClass="inputdata">

 

 

<DateInput cssClass="inputdata" runat="server"/>

 

 

</telerik:RadDatePicker> 

ThisDate needs to happen from Javascript. 
I am using "RadControls for ASPNET AJAX Q1 2008" version. 
So far I have tried the .Clear() and .clear() without success like this:
Have tried other forum responses and either can't find object or get a null error. 
I have this wrapped in a div and can disable everything in the div but the calendar items.

function toggle enabled(){

 

    var picker1 = $find("<%= dpAuditorReportBeginDate.ClientID %>");
    picker1.clear()
}

Hope you can help!!
Thanks,
Chris

karthik
Top achievements
Rank 1
 answered on 18 Apr 2012
1 answer
91 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
72 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
349 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
168 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
795 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
172 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?