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

     I want to export to pdf in TelerikGrid.I am using follwing code

<

 

telerik:GridBoundColumn DataField="Partner Name" UniqueName="PartnerName" HeaderText="PartnerName"

 

 

HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Rank" UniqueName="Rank" HeaderStyle-HorizontalAlign="Center"

 

 

ItemStyle-HorizontalAlign="Right" HeaderText="Rank">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Rank1" UniqueName="Rank1" HeaderStyle-HorizontalAlign="Center"

 

 

ItemStyle-HorizontalAlign="Right" HeaderText="Rank1">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridTemplateColumn UniqueName="Column1" InitializeTemplatesFirst="true">

 

 

<HeaderTemplate>

 

 

<table id="Tabfy08" cellspacing="0" style="width: 100%;">

 

 

<tr>

 

 

<td colspan="2" align="center">

 

 

<b>COULMNSHEADER</b>

 

 

</td>

 

 

</tr>

 

 

<tr>

 

 

<td style="width: 50%; border-style: none;" align="center">

 

 

<asp:Label ID="lblfy08" Text="Rank" runat="server" />

 

 

</td>

 

 

<td style="width: 50%; border-style: none;" align="center">

 

 

<asp:Label ID="lblesa08" Text="Rank1" runat="server" />

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</HeaderTemplate>

 

 

<ItemTemplate>

 

 

<table cellspacing="0" width="100%" class="myTable">

 

 

<tr>

 

 

<td style="width: 50%">

 

<%

# Eval("Rank")%>

 

 

</td>

 

 

<td style="width: 50%">

 

<%

# Eval(" Rank1")%>

 

 

</td>

 

 

</tr>

 

 

</table>

 

 

</ItemTemplate>

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

</telerik:GridTemplateColumn>

I want to export to pdf which has template columns.

For that i am using following code

 

MYGRID.ExportSettings.ExportOnlyData =

true;

 

MYGRID.ExportSettings.IgnorePaging =

true;

 

MYGRID.ExportSettings.OpenInNewWindow =

true;

 


MYGRID.MasterTableView.HierarchyDefaultExpanded =

true;

 

MYGRID.ExportSettings.ExportOnlyData =

true;

 

MYGRID.MasterTableView.ExportToPdf();

 In Button Click Event...............

But i am not getting the result of template columns in PDF..

Is Telerik Grid Support this????????????????Please Clarify this ASAP..ASAP

Thanks in Advance
SANNIDHI

Daniel
Telerik team
 answered on 15 Jul 2009
3 answers
105 views
Hello,

I am having a problem with the Web20 skin: In the dropdown buttons of a RadToolbarDropDown the images appear too far to the right, so that they are only partly visible. Please see my HTML below:

                                <telerik:RadToolBarDropDown Text="XXX">  
                                    <Buttons> 
                                        <telerik:RadToolBarButton Enabled="false" Value="Verification" ImageUrl="../Styles/Images/spo.gif" 
                                            Text="<%$Resources:TextResources, ID_1%>">  
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Value="Accounted" ImageUrl="../Styles/Images/spo.gif" 
                                            Text="<%$Resources:TextResources, ID_2%>">  
                                        </telerik:RadToolBarButton> 
                                        <telerik:RadToolBarButton Value="PaymentReleased" ImageUrl="../Styles/Images/spo.gif" 
                                            Text="<%$Resources:TextResources, ID_3%>">  
                                        </telerik:RadToolBarButton> 
                                    </Buttons> 
                                </telerik:RadToolBarDropDown> 
 

With the Office skin everything is perfectly right...
Atanas Korchev
Telerik team
 answered on 15 Jul 2009
3 answers
261 views
Hi All!

I have a grid without AllowSorting

<telerik:RadGrid ID='RgP66'  CssClass='grid' GridLines='none' runat='server' Skin='Hay'
           AllowSorting   Width='100%' AllowPaging='True' PageSize='10' AutoGenerateColumns='False' >
   <PagerStyle AlwaysVisible='true' Mode='NextPrevAndNumeric'/>
   <ClientSettings>
       <Selecting AllowRowSelect='True' ></Selecting>
       <ClientEvents OnCommand='RgP66_Command'  OnRowSelected='RgP66RowSelected'  OnRowDataBound='RgP66_RowDataBound'/>
   </ClientSettings>
   <MasterTableView  Width='100%' TableLayout='Fixed'  CommandItemDisplay='None' HorizontalAlign='NotSet'>
        <Columns>
        <telerik:GridTemplateColumn UniqueName='delP66' HeaderText='Xóa' HeaderStyle-Width='30px'  >
            <ItemStyle HorizontalAlign='Center' />
            <ItemTemplate >
              <input type='button' id='bDelP66' runat='server'  class='gcBtnDel'  onclick='DelP66(this.title);' />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='Id' HeaderText='Id' Visible='false'
                     DataFormatString='{0:n0}' UniqueName='Id' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='PhieuChiTienMatId_Ten1' HeaderText='Phiếu chi tiền mặt ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='PhieuChiTienMatId_Ten1' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='SoLuong' HeaderText='Số lượng ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='SoLuong' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='DonViTinh' HeaderText='ĐVT ' Visible='true'
                      UniqueName='DonViTinh' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='DonGia' HeaderText='Đơn giá ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='DonGia' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='ThanhTien' HeaderText='Thành tiền ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='ThanhTien' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='BoPhanId_Name6' HeaderText='Bộ phận ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='BoPhanId_Name6' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='DichvuId_Name7' HeaderText='Dich vụ ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='DichvuId_Name7' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='NhanvienId_HoTen8' HeaderText='Nhân viên ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='NhanvienId_HoTen8' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='DoiTuongId_Name9' HeaderText='Đối tượng ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='DoiTuongId_Name9' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='VAT' HeaderText='Thuế VAT ' Visible='true'
                     DataFormatString='{0:n0}' UniqueName='VAT' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridBoundColumn  DataField='DienGiai' HeaderText='Diễn giải ' Visible='true'
                      UniqueName='DienGiai' >
        </telerik:GridBoundColumn>
        <%-- -------------------------------------------------------------------------------------- --%>
        <telerik:GridTemplateColumn UniqueName='printP66' HeaderText='In' HeaderStyle-Width='30px'  >
            <ItemStyle HorizontalAlign='Center' />
            <ItemTemplate >
              <input type='button' id='bPrintP66' runat='server' value='' class='gcBtnPrint'  onclick='PrintP66(this.title);' />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        </Columns>
     </MasterTableView>
</telerik:RadGrid>


When i view source page, the code generate here:
<div id="P189U_RgP189" class="RadGrid RadGrid_Hay grid" style="width:100%;">

        <table class="MasterTable_Hay" cellspacing="0" border="0" id="P189U_RgP189_ctl00" style="width:100%;border-collapse:collapse;table-layout:fixed;empty-cells:show;">
    <colgroup>
        <col width="30px"  />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col />
        <col width="30px"  />
    </colgroup>
<thead>
        <tr>
            <th scope="col" class="GridHeader_Hay">Xóa<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl04" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00____SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl05" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00____SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Phiếu thu <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl08" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__PhieuThuTienMatId_Ten1__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl09" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__PhieuThuTienMatId_Ten1__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Thẻ khách hàng <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl10" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__TheKHId_Ten2__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl11" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__TheKHId_Ten2__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Ngày gạch <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl12" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__NgayGachPhieu__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl13" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__NgayGachPhieu__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Dịch Vụ <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl14" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__DichVuId_Name4__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl15" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__DichVuId_Name4__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">BoPhanId<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl16" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__BoPhanId__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl17" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__BoPhanId__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Nhân Viên Làm<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl18" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__NhanVienId_HoTen6__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl19" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__NhanVienId_HoTen6__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Chiết Khấu<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl20" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__CKNhanVien__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl21" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__CKNhanVien__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Tiền Dịch vụ<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl22" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__TienDV__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl23" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__TienDV__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Số lần gạch <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl24" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__SoLanGach__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl25" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__SoLanGach__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Thành Tiền <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl26" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__ThanhTien__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl27" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__ThanhTien__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Phụ thu <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl28" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__PhuThu__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl29" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__PhuThu__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">Quên thẻ <input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl30" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__KHQuenThe__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl31" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__KHQuenThe__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">NvLam2<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl32" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__NvLam2_HoTen13__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl33" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__NvLam2_HoTen13__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">NvLam3<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl34" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__NvLam3_HoTen14__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl35" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__NvLam3_HoTen14__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">NvLam4<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl36" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00__NvLam4_HoTen15__SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl37" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00__NvLam4_HoTen15__SortDesc" style="display:none;" /></th><th scope="col" class="GridHeader_Hay">In<input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl38" value=" " onclick="return false;" title="Sorted asc" class="rgSortAsc" id="P189U_RgP189_ctl00____SortAsc" style="display:none;" /><input type="submit" name="P189U$RgP189$ctl00$ctl02$ctl01$ctl39" value=" " onclick="return false;" title="Sorted desc" class="rgSortDesc" id="P189U_RgP189_ctl00____SortDesc" style="display:none;" /></th>
        </tr>
    </thead><tfoot>
        <tr class="GridPager_Hay">
            <td colspan="17"><div class="PagerLeft_Hay">
                Chuyển trang: <span><input type="submit" name="P189U$RgP189$ctl00$ctl03$ctl01$ctl02" value=" " onclick="$find('P189U_RgP189_ctl00').page('Prev'); return false;" title="Previous Page" class="rgPagePrev" /></span>&nbsp;<a onclick="if(!$find('P189U_RgP189_ctl00').page('1')) return false;" href="javascript:__doPostBack('P189U$RgP189$ctl00$ctl03$ctl01$ctl03','')">1</a>&nbsp;<input type="submit" name="P189U$RgP189$ctl00$ctl03$ctl01$ctl04" value=" " onclick="if(!$find('P189U_RgP189_ctl00').page('Next')) return false;" title="Next Page" class="rgPageNext" />
            </div><div class="PagerRight_Hay">
                 &nbsp;Trang đang hiển thị <span id='P189U_RgP189_ctl00CPI'>1</span> trên <span id='P189U_RgP189_ctl00PCN'>1</span> trang, hàng từ <span id='P189U_RgP189_ctl00FIP'>1</span> đến <span id='P189U_RgP189_ctl00LIP'>10</span> trên <span id='P189U_RgP189_ctl00DSC'>10</span> hàng.
            </div></td>
        </tr>
    </tfoot><tbody>
    <tr class="GridRow_Hay" id="P189U_RgP189_ctl00__0">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl04$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl04_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl04$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl04_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridAltRow_Hay" id="P189U_RgP189_ctl00__1">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl06$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl06_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl06$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl06_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridRow_Hay" id="P189U_RgP189_ctl00__2">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl08$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl08_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl08$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl08_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridAltRow_Hay" id="P189U_RgP189_ctl00__3">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl10$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl10_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl10$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl10_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridRow_Hay" id="P189U_RgP189_ctl00__4">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl12$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl12_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl12$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl12_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridAltRow_Hay" id="P189U_RgP189_ctl00__5">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl14$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl14_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl14$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl14_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridRow_Hay" id="P189U_RgP189_ctl00__6">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl16$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl16_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl16$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl16_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridAltRow_Hay" id="P189U_RgP189_ctl00__7">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl18$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl18_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl18$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl18_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridRow_Hay" id="P189U_RgP189_ctl00__8">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl20$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl20_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl20$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl20_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr><tr class="GridAltRow_Hay" id="P189U_RgP189_ctl00__9">
        <td align="center">
              <input name="P189U$RgP189$ctl00$ctl22$bDelP189" type="button" id="P189U_RgP189_ctl00_ctl22_bDelP189" class="gcBtnDel" onclick="DelP189(this.title);" />
            </td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td align="center">
              <input name="P189U$RgP189$ctl00$ctl22$bPrintP189" type="button" id="P189U_RgP189_ctl00_ctl22_bPrintP189" class="gcBtnPrint" onclick="PrintP189(this.title);" />
            </td>
    </tr>
    </tbody>

</table><input id="P189U_RgP189_ClientState" name="P189U_RgP189_ClientState" type="hidden" />
            </div>

In this example i don't want sort header in grid, but the </thead> generate more code.
How to declare radgrid that generate compact code?

I want here generate code:
<thead>
        <tr>
            <th scope="col" class="GridHeader_Hay">Xóa</th>
            <th scope="col" class="GridHeader_Hay">Phiếu thu </th>
            <th scope="col" class="GridHeader_Hay">Thẻ khách hàng </th>
            <th scope="col" class="GridHeader_Hay">Ngày gạch </th>
            <th scope="col" class="GridHeader_Hay">Dịch Vụ </th>
            <th scope="col" class="GridHeader_Hay">BoPhanId</th>
            <th scope="col" class="GridHeader_Hay">Nhân Viên Làm</th>
            <th scope="col" class="GridHeader_Hay">Chiết Khấu</th>
            <th scope="col" class="GridHeader_Hay">Tiền Dịch vụ</th>
            <th scope="col" class="GridHeader_Hay">Số lần gạch </th>
            <th scope="col" class="GridHeader_Hay">Thành Tiền </th>
            <th scope="col" class="GridHeader_Hay">Phụ thu </th>
            <th scope="col" class="GridHeader_Hay">Quên thẻ </th>
            <th scope="col" class="GridHeader_Hay">NvLam2</th><
            th scope="col" class="GridHeader_Hay">NvLam3</th>
            <th scope="col" class="GridHeader_Hay">NvLam4</th>
            <th scope="col" class="GridHeader_Hay">In</th>
        </tr>
    </thead>



Tung
Top achievements
Rank 1
 answered on 15 Jul 2009
2 answers
178 views

I just installed the Q2 2009 and getting error on every control in iFrame. I created a new project from scratch and found same problem.  Here are my two pages.

%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="RadControlsWebApplicationTest._Default1" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
     <IFRAME id="ReportFrame"  name="ReportFrame" runat="server" frameBorder="no" width="100%"  scrolling"auto" height="90%" src="iFramePage.aspx" > 
       </IFRAME> 
    </div> 
    </form> 
</body> 
</html> 

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="iFramePage.aspx.vb" Inherits="RadControlsWebApplicationTest.iFramePage" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <div> 
      
        <telerik:RadComboBox ID="RadComboBox1" Runat="server">  
            <Items> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1"   
                    Value="RadComboBoxItem1" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2"   
                    Value="RadComboBoxItem2" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem3"   
                    Value="RadComboBoxItem3" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem4"   
                    Value="RadComboBoxItem4" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem5"   
                    Value="RadComboBoxItem5" /> 
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem6"   
                    Value="RadComboBoxItem6" /> 
            </Items> 
        </telerik:RadComboBox> 
      
    </div> 
    </form> 
</body> 
</html> 
 
 After running Default.aspx whenever I click on combo box i got  Javascript Error "Invalid argument". Running iFramePage directly everything works fine.
Syed
Top achievements
Rank 1
 answered on 15 Jul 2009
3 answers
248 views

Hello All, 

I have a rad grid that contains the GridTemplateColumn and a check box. I basicaly copied the demo code from the Grid / Server-side Row Selection. The only changes i made are to the data source. However, when the page postbacks, the check boxes do not remian checked. Is there something more that I need to add to the demo code?

Jonathan Stein
Top achievements
Rank 1
 answered on 15 Jul 2009
0 answers
122 views
Hi All, not sure this went through last time or not - sorry if the post is a duplicate.  I am binding to an XML datasource.  The source comes from the database, so it is not a static file.  I can bind just fine using code similar to below:

<telerik

 

:RadTreeView ID="rtvConflicts" runat="server"">

 

 

 

 

 

<DataBindings>

 

 

<telerik:RadTreeNodeBinding DataMember="nodeName" TextField="FirstName" Checkable="false" />
<telerik:RadTreeNodeBinding DataMember="parentNodeName" TextField="ID" Depth="0" Checkable="true" />

 

 

</DataBindings>

My problem is that I would like to bind multiple XML attributes to a single node.  I have searched and seen some similar examples with different types datasources - but nothing for XML.  I was hoping there was an easy solution. You will see above that my top level node (depth=0) shows just the ID.  The rest of the nodes show the first name.  I would like the rest of the nodes to show first AND last name....both which are attributes of the nodeName element in the XML datasource.

Can anyone guide me in the right direction?

I have already done something similar using NodeTemplate in conjuntion with <%# XPath("")%> on another page, but the problem is that the template does not seem to allow the top level nodes to be different than the next level down.  I may have missed something obvious, but my workaround on that page is very messy and I needed to include an attribute in the XML specifying what level the node was.  I hope there is an easier way to do this.

Thanks,
Rob

 

Rob Bright
Top achievements
Rank 1
 asked on 15 Jul 2009
1 answer
98 views
Hi

In the editor , there is a Inbuilt Print Option. when we print the data from editor , what is the default margin ( top, left right and bottom )  for Print. option ?

Please give me the solutions ASAP

Regards

rahul
Rumen
Telerik team
 answered on 15 Jul 2009
3 answers
149 views
I've got a radGrid in a splitter panel and associated with a LoadingPanel, and want the grid to fill the splitter panel.

Searching this forum has pointed me to the following article.

http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx


Using the example at the above link, I've got things working - great!

However, just to be awkward I want to have a radMenu at the top of the splitter panel. When I add this, the radGrid scrolls up beyond the radMenu - presumably because the LoadingPanel is filling the splitter panel.

Is there a way to arrange things so that the LoadingPanel is constrained to be below the radMenu?

Thanks,

James
Dimo
Telerik team
 answered on 15 Jul 2009
2 answers
130 views
Summary
I feel like I'm hitting some upper limit of how many controls a tab page can contain.  When this limit is reached, the tab control (with 3 tabs) is not responding when the user selects to navigate to another tab.   The tabs just sit there like no one just selected them.  I am not getting any errors or indication that any processing is taking place.   
I am running with the latest release as well.

Here is what I have going on...
  • Popup Window with a Tab Control
  • Tab control with 3 tabs.
  • The 2nd Tab contains an asp:Table which I dynamically add rows to during the page_load event.
<telerik:RadPageView runat="server" ID="viewManualEntry">  
   <asp:Table ID="tblManualEntryReturnFields" runat="server" BorderWidth="0px"   Width="100%">  
   </asp:Table> 
</telerik:RadPageView> 

The dynamic table has 3 columns,
  • column 1: label control "row description"
  • column 2: input control (textbox, check box, drop down, etc)
  • column 3: radio list control (enable/disable row for editing)

Things have been great, but now I'm building some large table with 190 rows and the tab control begins to hang around 150 rows.  I am having difficulties pinning an exact number, at one point 180 was the breaking point but after an iis reset that number changed and I'm back to 150ish rows.

Test Cases
  • If I reduce the numbers of rows, the tabs can be selected and everything works.
  • If I move the Table off the RadPageView and just shove it below the tab control, the table renders and the tabs work.
  • Did disable the Form Decorator, which speed the page up but did not fix my tab selection issue.

 


Why I'm questioning the tab control
The fact that I can shove this large table off the tab page, has me asking if the tab page is my problem as it perhaps attempts to manage all the controls held within that dynamic table?


So any thoughts?  Thanks for the help.

Jeff
Top achievements
Rank 1
 answered on 15 Jul 2009
1 answer
183 views
Hi, I was wondering if the following is best practice. I have a textbox and next to the textbox I have a button. When I click the button I popup a radwindow which will return some values onClosing. This is all working fine. However I encounterd problems when I added multiple of these usercontrols to my page. On the page I added a RadWindowManager which is necessary for the Radwindow on the usercontrol. The problem is I have written javascript inside the usercontrol which handles the events for the window. This means I have the same piece of javascript rendered for each UserControl on the page. Well I sign the javascript functions with uniqueID's otherwise it is not possible the set or retrieve values. All eventhandling is executed clientside.

My main question is, is this good practice? Or does someone have a better solution? For example store the necessary JS-functions in an external file and reference this file on the page. Hope I made it clear what the problem is, a lot of scripts on the page.
Fiko
Telerik team
 answered on 15 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?