Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
308 views
Hello,

I am using Rad Ajax controls version 2011.2.915. Whenever a user running Windows XP and IE 7 tries to upload a file from My Documents or another network location they get prompted with a windows credential box. If they enter their credentials IE 7 locks up.

The RadAsyncUpload works fine in windows 7 IE8. If the IE 7 users try a file from their C drive, that functions correctly as well. 

I have tried to allow Anonymous Access to the website in IIS (5) but this does not make a difference. Placing these lines of Javascript before the upload control also do not help.

 <script type="text/javascript">     
   if (Telerik.Web.UI.RadAsyncUpload != null && Telerik.Web.UI.RadAsyncUpload.Modules != null) {
         Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; };
         Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function() { return false; };
   }
</script>



How do I either disable the flash and silverlight, or how do I fix the permissions problem?

Here is how I am using the uploader in a RadGrid, once as an attachment column for inserting, and once as a control in a template column for editing.

<telerik:GridAttachmentColumn AttachmentDataField="Data" FileName="Name"
                       FileNameTextField="Name"
                       HeaderText="View Attachment" UniqueName="Data" DataTextField="Name"
                       AttachmentKeyFields="FormSequenceNr" EditFormHeaderTextFormat="">
                   </telerik:GridAttachmentColumn>
                   <telerik:GridTemplateColumn HeaderText="File"  DataField="Name" FilterControlAltText="Filter TemplateColumn column"
                       UniqueName="Name">
                       <ItemTemplate>
                           <asp:Label runat="server" ID="lblName" Text='<%# Eval("Name") %>' />                         
                       </ItemTemplate>                           
                       <EditItemTemplate>                       
                           <telerik:RadAsyncUpload runat="server" ID="AsyncUpload1" OnClientFileUploaded="OnClientFileUploaded"
                               OnValidatingFile="RadAsyncUpload1_ValidatingFile">
                           </telerik:RadAsyncUpload>
                       </EditItemTemplate>
                   </telerik:GridTemplateColumn>




Thanks
Peter Filipov
Telerik team
 answered on 01 Nov 2011
1 answer
163 views
I'm working with the RadTreeView, within an HTML table;

An objective for this .aspx web page is to have the RadTreeView resize, according to the resizing of a .aspx web page;

For example, if the width or height of the .aspx web page is resized to a point where the .aspx web page has less width or less height than the RadTreeView itself - the RadTreeView will resize accordingly with scroll bars;

Hopefully the description provides a clear understanding;  Best regards - Rob

<table style="width: 100%;">
        <tr>
            <td align="left" valign="top">
  
             <telerik:RadTreeView ID="RadTreeView1" runat="server" 
                    OnNodeExpand="RadTreeView1_NodeExpand" ForeColor="Black" 
                Font-Names="Microsoft Sans Serif" onnodeclick="RadTreeView1_NodeClick" 
                    Height="600px" Width="400px" Font-Size="Medium">
             </telerik:RadTreeView>
  
            </td>
            
  
            <td>
                 
            </td>
  
            <td align="right" valign="top" width="100%">
                <iframe runat="server" id="myPDF" height="600" width="100%" visible="false" ></iframe>
            </td>
              
        </tr>     
          
        <tr>
            <td colspan="2" class="style1" height="100px">
  
                <asp:Label ID="Label1" runat="server" Text="" ForeColor="#0D141A"></asp:Label>
  
            </td>
        </tr>   
          
           <tr>
                    <td align="center" colspan="3" valign="bottom">
                        
                       <asp:Image ID="FALogo" runat="server" ImageUrl="~/Images/FA_Logo_600x289.png"/>
  
                         <asp:Image ID="imgContactUs" runat="server" ImageUrl="~/Images/ContactUs.png" visible="false"/>
  
                    </td>
                </tr>       
         
    </table>
Dimitar Terziev
Telerik team
 answered on 01 Nov 2011
1 answer
90 views
Dear friends,

I have a template column that shows images according to database value:

<ItemTemplate>
    <asp:Image runat="server" AlternateText="" ImageUrl="Images/ColdChain.png" Width="20px"
        Height="20px" Visible='<%#  iif ( SomeFunction(Eval("ColdChain")) ="", "false" , "true") %>' />
</ItemTemplate>


when exporting to excel, I want some text to be exported instead of image itself. For example I need "COLD" text in that column instead of image or image link itself.

how can I achieve this ?
thanks....
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
2 answers
151 views
Hi Telerik Team,

I am having problem of grid height and scrolling. 
When I increase height of grid as well as mastertable view height with allowscroll= true it ran fine, but when I perform any search on grid with my custom search it filter record fine but it make the mastertable view height to default.
For example if i set grid height = 600px and mastertable view htight = 600px and perform any search it display search result with default height of mastertable view. 
If I define scrolling height = 600px and perform any search, lets say it returns 2 records, the grid will show those records in whole grid, like one record will occupy 300px height and other will occupy 300px height.

Please note that I using RadAjaxManager.

Following are the code of my ascx file:

<telerik:RadGrid ID="radCTAFund" runat="server" GridLines="None" AllowSorting="True"
                    OnNeedDataSource="radCTAFund_NeedDataSource" OnItemDataBound="radCTAFund_ItemDataBound"
                     CellSpacing="0" Width="100%">
                            <ClientSettings>
                                <Scrolling AllowScroll="True" UseStaticHeaders="false"/>
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="false" DataKeyNames="FundRaiseID" runat="server"
                                AllowSorting="true" ItemStyle-Font-Size="8pt" 
                            AlternatingItemStyle-Font-Size="8pt" Width="100%" >
                                <CommandItemSettings ExportToPdfText="Export to PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                </ExpandCollapseColumn>
                                <Columns>
                                    <telerik:GridTemplateColumn DataField="FundRaiseName" HeaderText="CTA Name" 
                                        SortExpression="FundRaiseName" UniqueName="FundRaiseName">
                                        <ItemTemplate>
                                            <asp:LinkButton ID="lnkCTAFund" runat="server" Font-Bold="true"><%# DataBinder.Eval(Container.DataItem, "FundRaiseName")%></asp:LinkButton>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="200px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="OneMonth" HeaderText="One Month" 
                                        SortExpression="OneMonth" UniqueName="OneMonthNew">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_one_month" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                      <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="YearToDate" HeaderText="Year To Date" 
                                        SortExpression="YearToDate" UniqueName="YearToDate">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_year_to_date" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                       <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="LastTwelveMonths" 
                                        HeaderText="Ann. Avg" SortExpression="LastTwelveMonths" 
                                        UniqueName="LastTwelveMonths">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_last_twelve_months" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="OneYearDrawdown" 
                                        HeaderText="Max Avg. Drawdown" SortExpression="OneYearDrawdown" 
                                        UniqueName="OneYearDrawdown">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_one_year_drawdown" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="70px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="StandardDeviation" 
                                        HeaderText="Std. Dev" SortExpression="StandardDeviation" 
                                        UniqueName="StandardDeviation">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_StandardDeviation" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                        <HeaderStyle Width="50px"/>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="MinimumAccount" 
                                        HeaderText="Min.<br> Acct" SortExpression="MinimumAccount" 
                                        UniqueName="MinimumAccount">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_minimum_account" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn DataField="AUM" HeaderText="AUM" 
                                        SortExpression="AUM" UniqueName="AUM" Visible="false">
                                        <ItemTemplate>
                                            <asp:Label ID="lbl_AUM" runat="server"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Font-Bold="True" />
                                    </telerik:GridTemplateColumn>
                            
                                </Columns>
                                <EditFormSettings>
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                </EditFormSettings>
                                <ItemStyle Font-Size="8pt" />
                                <AlternatingItemStyle Font-Size="8pt" />
                        
                            </MasterTableView>
                            <PagerStyle Mode="NumericPages" />
                             <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                            </HeaderContextMenu>
                        </telerik:RadGrid>


Urgent response will be appreciated. 

Regards,
Mohsin
Mohsin
Top achievements
Rank 1
 answered on 01 Nov 2011
3 answers
100 views
Hi,

I followed the guidelines to localize the GridView's built-in resources in the file RadGrid.main.resx. Most of the items appear correctly, but some are not: the buttons on the built-in toolbar for exporting to PDF, Word, etc. are all messesd up, see the attached screenshot.
Is there a fix or workaround for this? I haven't found anything on the site about this.
thank you

Pavlina
Telerik team
 answered on 01 Nov 2011
1 answer
79 views
Hi,
I have a customer for which we a contractually bound to deliver a W3C compliant application.

We have used the RadChart on a page which is emmitting the following markup which is non-compliant:
onerror="if(confirm('Error loading RadChart image.\nYou may also wish to check the ASP.NET Trace for further details.\nDisplay stack trace?')
The onerror attribute is not a valid attribute for a div tag.
Can you please provide some guidance as to how we can make this compliant with XHTML Transitional 1.0.
Bartholomeo Rocca
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
151 views
Is there any way to make the splitter panel take up the full page? Like Dock = Fill in Win forms.

Currently, I have it set to a particular size and hook into the window resize event. This produces a flicker that doesn't look great.
Dobromir
Telerik team
 answered on 01 Nov 2011
1 answer
50 views
Hello,
I have the problem that is mentioned in this post with RadTreeNodeData object. I'm using "2011.1.519.35"  version of telerik library, and the issue still happend.
There is some workaround or something that I can do to to solve this?

Thanks.
Julio
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
153 views

Hi,

I ahve a treelist with checkboxs.when i select this checkbox ,row colur is changed to gray .how to avoid changing the row clour when selecting the check box ?

Thanks ,
sindu
Shinu
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
143 views
How do you use the menu to use image in the upper part and use text which is aligned at the center with the image on top

 <table style="width:90%;">
        <tr>
            <td class="style4">
                &nbsp;</td>
            <td class="style2">
                &nbsp;</td>
            <td class="style3">


    <telerik:RadMenu ID="RadMenu1" Runat="server" Skin="" CssClass="CSMBMenu" 
                    EnableRoundedCorners="True" >
        <Items>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/building_small_cadre.jpg" 
                ImageUrl="~/Images/building_small.jpg" 
                SelectedImageUrl="~/Images/building_small_cadre.jpg" Text="Bâtisses" 
                Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/locker_small_cadre.jpg" 
                ImageUrl="~/Images/locker_small.jpg" 
                SelectedImageUrl="~/Images/locker_small_cadre.jpg" Text="Casiers" Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/books_small_cadre.jpg" 
                ImageUrl="~/Images/books_small.jpg" 
                SelectedImageUrl="~/Images/books_small_cadre.jpg" Text="Dictionnaire" 
                Width="83px">
            </telerik:RadMenuItem>
            <telerik:RadMenuItem runat="server" CssClass="menu" 
                HoveredImageUrl="~/Images/security_small_cadre.jpg" 
                ImageUrl="~/Images/security_small.jpg" 
                SelectedImageUrl="~/Images/security_small_cadre.jpg" Text="Accès" Width="83px">
            </telerik:RadMenuItem>
        </Items>
    </telerik:RadMenu>
            </td>
            <td></td>
        </tr>
        </table>

Here is the RadMenu but i can't get the text to align in the center, i guess i have to use the right css but dont have a clue on how to do that.
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?