Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
211 views
Hello;

I'm trying to add a new row to a Radgrid client-side using insertItem() and then update all inserted items in a single batch.

I've got several questions:

1)  What's the correct way to use the client-side API call insertItem() ?
2)  Can insert operations be batched like edit operations?

Thanks...
Iana Tsolova
Telerik team
 answered on 01 Nov 2011
3 answers
164 views
I'm using resolution 800x600 and when show radwindow with a big size (940 width , 730 height) it shifted up and the controls in the top of the page which is displayed in the radwindow became unreachable .. how to fix this
thanks for effort 
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
5 answers
316 views
I am using a usercontrol for my grid edit form and have editmode set to popup.

When I edit an item in my grid, the popup edit form shows along with a caption bar along the top with a big "X" close-button at the right end of the caption bar.

I read here:

http://www.telerik.com/help/aspnet-ajax/grdcustomeditforms.html       

"Please note that all settings related to the edit form caption are applied only if the EditFormType is "AutoGenerated". Otherwise a caption is not rendered automatically by RadGrid, however, you can add a custom caption in the edit form template or user control edit form."

I thought this meant that having my EditFormType set to "WebUserControl" would suppress the rendering of a caption on the popup edit form.

I don't mind having a caption (I am able to put change the caption content via the captiondatavield and captionformatstring) but I am having trouble controlling its appearance.  The caption bar that renders is only about half as wide as the usercontrol that I have created as my edit form and any of the formatting I apply to *it* seems to only render as wide as the caption.  That is, I put a border around my edit form control and when it pops up, the border only shows around the left half of the form (showing only as wide as the rendered caption).

Is there a way to force the caption to be as wide as my control?  If not, is there a way to specifically suppress the rendering of the caption?

Thanks,

Mike
Augusto
Top achievements
Rank 1
 answered on 01 Nov 2011
1 answer
154 views
Hello,
I open popup window which displays a page. When I try to call web service from pageLoad() function, I always get a message "Insufficient stack space". When I put function to main window and call if with wnd.BrowserWindow.MyFunction(), I get no errors and everything works fine. Does this mean I cannot call web service directly from RadWindow?
Thank you.
Marin Bratanov
Telerik team
 answered on 01 Nov 2011
1 answer
211 views
Hi

I have a rad grid that shows a list of names and a delete column. I do not want the user to be able to edit the names, they should only be able to delete (using the delete column) and insert (using the EditMode="InPlace" built in elements).

How do I get the standard built in Update/Cancel command buttons to appear without having to have an Edit column in my grid?

Thanks
Corina
Princy
Top achievements
Rank 2
 answered on 01 Nov 2011
1 answer
128 views
Hello,

I want to know if the control is Telerik control in clientside ( javascript)
Is it possible to know  ?
Rumen
Telerik team
 answered on 01 Nov 2011
3 answers
342 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
197 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
112 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
189 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?