Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
198 views
i have 4 pages.

1.index.aspx
<iframe src="iframe.aspx">

2.iframe.aspx
<input type="button" onclick="window.radopen('window.aspx', 'win');">

3.window.aspx
<input type="button" onclick="window.radopen('test.aspx', 'top');">

4.test.aspx

when i work in windows.aspx,
how to open a radwindow 'test.aspx' on topmost page 'index.aspx' ?
Marin Bratanov
Telerik team
 answered on 16 May 2012
2 answers
145 views
Hi,
I have declared a numeric text box as below
<telerik:RadNumericTextBox ID="RadNumericTextBox1" MaxValue="99999999999999999" runat="server"
        DataType="integer" Type="Number" NumberFormat-AllowRounding="false" NumberFormat-KeepNotRoundedValue="true"
        NumberFormat-GroupSeparator="" NumberFormat-DecimalDigits="0">
</telerik:RadNumericTextBox>

when entering a value having length 16 or above, when there is a postback, the value get rounded and displaying the rounded value.
How can i avoid this issue?

thanks in advance
Jiju
Jiju
Top achievements
Rank 1
 answered on 16 May 2012
1 answer
95 views
I have created a SharePoint WebPart and added the Telerik.Web.UI to it's references. When I try to open the webpart in SP I get the error: Could not load file or assembly "Telerik.Web.UI" or one of it's dependencies. I have added the Telerik dll to the webpart's bin directory and added a referance in the project. Also, I have added the <@References ... tag to the beginning of the ascx file and added a using Telerik.Web.UI in the ascx.cs file.

Note that a webpart is just a user defined control loaded into the WebPart's controls container. This is my first time doing a webpart is there something I'm missing?

Note Also, My controls are just the Rad ASP AJAX controls. I don't know if there is a special set of controls just for SharePoint.
Rumen
Telerik team
 answered on 16 May 2012
1 answer
77 views
Hi there,

I am trying to exportToPDF in a radgrid.   It seems to work fine except for a gridtemplatecolumn i have which contains another radgrid.

So basically, each row has a column which contains a grid containing a list of strings (they are validation msg's).  

I have found a few threads telling me to enable the viewstate for the grid, and also, to ExportOnlyData="false", which has no affect.

Everything else seems to work fine, except the exporting.

thanks in advance!

Neil

below is the code:
<telerik:RadGrid id="rgdListLicences"   runat="server" Width="100%"  OnNeedDataSource="rgdListLicences_NeedDataSource"  GridLines="None" Skin="eLicensing_paging"  EnableEmbeddedSkins="false" EnableViewState="true">
                     <ExportSettings IgnorePaging="true" OpenInNewWindow="true" ExportOnlyData="false"   >
                        <Pdf PageHeight="210mm" AllowPrinting="true"   PageWidth="297mm" PageTitle="Print Validations" DefaultFontFamily="Arial Unicode MS"
                        PageBottomMargin="20mm" PageTopMargin="20mm"  PageLeftMargin="20mm" PageRightMargin="20mm" />
                     </ExportSettings>
                     <MasterTableView RetrieveAllDataFields="false" CommandItemDisplay="Top" AutoGenerateColumns="false"  >
                        <CommandItemTemplate>
                                <telerik:radbutton ID="DownloadPDF" AutoPostBack="true" CssClass="pdfButton" runat="server"  Width="10%" Text="Print Validations" CommandName="ExportToPdf"/>
       
                        </CommandItemTemplate>
                        <Columns>
                            <telerik:GridBoundColumn DataField="clientRef" DataFormatString="{0:dd/MM/yy}" HeaderText="Client Ref"><ItemStyle Width="12%" VerticalAlign="Top" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="ServiceName" HeaderText="Service Name"><ItemStyle Width="28%" VerticalAlign="Top" />
                            </telerik:GridBoundColumn>
                            <telerik:GridBoundColumn DataField="commencementDate" DataFormatString="{0:dd/MM/yy}" HeaderText="Start Date"><ItemStyle Width="12%"  VerticalAlign="Top" />
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn UniqueName="validations" HeaderText="Validations" SortExpression="CompanyName"  >
                                <ItemTemplate>
                                    <telerik:radgrid ID="rgdValidations"  OnNeedDataSource="rgdValidations_NeedDataSource" BorderStyle="None" ShowHeader="false" runat="server"  EnableViewState="true" >
                                        <MasterTableView>
                                            <ItemStyle Font-Size="Smaller" />
                                            <AlternatingItemStyle Font-Size="Smaller"/>
                                        </MasterTableView>
                                    </telerik:radgrid>
                                </ItemTemplate>
                            </telerik:GridTemplateColumn>
                        </Columns>
                    </MasterTableView>
                </telerik:RadGrid>

Protected Sub rgdValidations_NeedDataSource(ByVal sender As Object, ByVal e As GridNeedDataSourceEventArgs)
 
    Dim RadGrid2 As RadGrid = CType(sender, RadGrid)
    Dim item As GridDataItem = RadGrid2.NamingContainer
    Dim validations As List(Of String) = CType(item.DataItem, LicencesLicence).validations
 
    RadGrid2.DataSource = validations
End Sub


Daniel
Telerik team
 answered on 16 May 2012
1 answer
193 views
Hi,

I'm having browser compatibility issues with radgrid row height. Firefox seems to be fine but internet explorer is not. I attached a screen shot of both can you assist. I've  tried everything. here is the css:
.rgRow,.rgRow td
            {
                height:30px !important;
                cursor:pointer;
               background-color: #ffffff;
                 border-bottom:solid 1px #EDEDED !important;
            }
            .rgAltRow,.rgAltRow td
            {
                height:30px !important;
                cursor:pointer;
                background-color: #ffffff;
                border-bottom:solid 1px #EDEDED;
                /*border:none!important;
                background-image : none!important;*/
            }
Thanks,
Ron
Pavlina
Telerik team
 answered on 16 May 2012
1 answer
79 views
Hi,

I am using the radcombobox with automatica load on demand:

<telerik:RadComboBox ID="cboSKU" runat="server" 
        DataTextField="STCode" DataValueField="STCode" MarkFirstMatch="true" ShowToggleImage="false"
        EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" ItemsPerRequest="30"
        AutoPostBack="true" onselectedindexchanged="cboSKU_SelectedIndexChanged"
        >
 
this works as expected. This combo box is on an aspx page using a master page. On the master page I'm logging events - however I do not want to capture ajax postbacks. (I do want to capture non ajax postbacks, but not postbacks from, for example, the combo box repopulating values as you type)

i have tried:
if (RadAjaxManager1.IsAjaxRequest == false)
            {
                AddLogEntry();
            }

and

if (ScriptManager.GetCurrent(Page).IsInAsyncPostBack == false)
            {
                AddLogEntry();
            }

with no success.

Any advice would be appreciated.

Thank you, 
Ryan
Ivana
Telerik team
 answered on 16 May 2012
4 answers
530 views
Hi All,

My user is having Html content having width set in % for TD. But when it is exported to pdf, it does not render it as per % set. It defaults to Total table width / no of TD.

<table style="width:100%;">
<tr>
   <td style="width:10%;">No</td>
   <td style="width:70%;">Full Name</td>
   <td style="width:20%;">Telephone</td>
</tr>
</table>

It displays <table> with all TDs having equal width i.e. 33% appx.

Thanks in advance for all replies.

Piyush
Rumen
Telerik team
 answered on 16 May 2012
2 answers
90 views
Please see attached screenshot. How to resolve this issue? Thanks.
Rumen
Telerik team
 answered on 16 May 2012
2 answers
176 views
Hi,
I have a requirement where certain days in calendar have to be disabled. So I have used RadCalendarDay class to accomplish it. The problem is, though the dates are disabled, the cursor is still the html hand and not the default. How can I disable the html hand cursor. I have seen at this example (http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/specialdays/defaultcs.aspx )
, but my dates are coming from database. Please help!
Mohith
Top achievements
Rank 1
 answered on 16 May 2012
1 answer
841 views
Hi,

I generate a dataTable with data form the database and set the datatype of each column. The dataTable is bound to the Grid in the NeedDataSource event. I want to display a CheckBox for every column with datatype "bool". Are GridBoundColumns able to be displayed as checkBox?

Jayesh Goyani
Top achievements
Rank 2
 answered on 16 May 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
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
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?