Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
40 views

Hi Team,

 

I am using telerik[Version=2008.2.1001.35] radGrid with selectcolumn checkbox functionality. But when I checked header checkbox for selecting all rows it throws js error . The  screenshot of the js error is attached in the file "jserror.jpg".Previously I was using telerik [version 2009.2.826.20] & it was working fine.I debug the code and it got stuck to a line the screenshot of which i have attached in the file "debug.jpg". Kindly refer these two files in the attachment.

 

 Thanks and Regards
Ganesh

ganesh g
Top achievements
Rank 1
 asked on 18 May 2011
1 answer
290 views
I am trying to have the Excel export of my grid show the title from the header without expanding the first column of the data.
See attached screenshot

It is making my ID column very wide even though the column itself in the grid is defined to be narrow. 
Is there anyway for my header title to appear in the export but not cause that first real data column to be so wide?
It does seem to work in the PDF because the PDF won't show my header title - I have only been able to show it as a Title of the page and not as an item in the grid header (which is a seperate issue).

The following is the code that I have tried to use to suggest that the title row should take two columns instead of just one.
I've set the title cell to use colspan="2" hoping that would transfer into the Excel file... but no luck as you can see.

<MasterTableView DataKeyNames="Id" DataSourceID="ClientDataSource" EditMode="PopUp"
                CommandItemDisplay="Top" HeaderStyle-CssClass="grid_header">
                <CommandItemTemplate>
                    <table width="100%">
                        <colgroup>
                            <col width="35px" />
                            <col />
                            <col />
                            <col />
                        </colgroup>
                        <tr>
                            <td colspan="2" style="font-size: 13px; padding: 10px 10px; text-align: left; white-space: nowrap; font-weight: bold">
                                <asp:Label runat="server" ID="lbl_reportName" Text="none">Client List</asp:Label>
                            </td>
                            <td class="flow_no_print">
                                <telerik:RadButton ID="btnAddNewClient" runat="server" ButtonType="LinkButton" BorderStyle="None" AutoPostBack="true"
                                    CommandName="InitInsert" Text="Add Client">
                                    <Icon PrimaryIconCssClass="rbAdd" PrimaryIconLeft="4" PrimaryIconTop="4" />
                                </telerik:RadButton>
  
                            </td>
                            <td class="flow_no_print" style="width: 160px; text-align: right;">
                                <asp:ImageButton Height="32" ID="ExportToPdfButton" CommandName="ExportToPdf" ImageUrl="~/images/icons/pdf.png" runat="server" ToolTip="Export to PDF" AlternateText="Export to PDF" /> 
                                <asp:ImageButton Height="32" ID="ExportToExcelButton" CommandName="ExportToExcel" ImageUrl="~/images/icons/excel.png"  runat="server" ToolTip="Export to Excel"  AlternateText="Export to Excel" /> 
                                <asp:ImageButton Height="32" ID="ExportToWordButton" CommandName="ExportToWord" ImageUrl="~/images/icons/word.png" runat="server" ToolTip="Export to Word" AlternateText="Export to Word" /> 
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 35px;"></td>
                            <td></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                </CommandItemTemplate>
                <Columns>
                    <telerik:GridEditCommandColumn UniqueName="EditColumn" ButtonType="ImageButton">
                    <ItemStyle Width="20" />
                    </telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="ID" SortExpression="Id"
                        UniqueName="Id" Visible="true" ReadOnly="true">
                        <ItemStyle Width="35px" />
                        <HeaderStyle width="35px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Name" HeaderText="Name" MaxLength="45" SortExpression="Name"
                        UniqueName="Name">
                        <ItemStyle Width="260px" />
                        <HeaderStyle width="260px" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Active" SortExpression="Active" UniqueName="ActiveMark" ReadOnly="true">
                       <ItemTemplate>
                       <%# ShowActiveInd(DataBinder.Eval(Container.DataItem, "Active"))%>
                       </ItemTemplate>
                       <ItemStyle Width="20px" HorizontalAlign="Left" />
                       <HeaderStyle width="200px" />
                    </telerik:GridTemplateColumn>
                    <telerik:GridCheckBoxColumn DataField="Active" DataType="System.Boolean" HeaderText="Active"
                        SortExpression="Active" UniqueName="Active" ReadOnly="false" Display="false" DefaultInsertValue="true" >
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridButtonColumn ButtonType="ImageButton" UniqueName="ActiveColumn" HeaderText="Active" Display="false">
                        <ItemStyle HorizontalAlign="Left" />
                    </telerik:GridButtonColumn>
                </Columns>


Thanks for your help,

Jonathan
Princy
Top achievements
Rank 2
 answered on 18 May 2011
2 answers
92 views
Sum Aggregate function not working on column with dataype long . Any idea ?
AG
Top achievements
Rank 1
 answered on 18 May 2011
1 answer
583 views
Hi everyone, i've been using radgrid for a couple of days now and i'm suppose to make an application using a radgrid with detailsview on each line. When i'll be clicking on an item from the grid, there will open the detailsview inside the grid. Actually i would like to make something similar to this application.

http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx

The only thing is that i would like to do it programmatically not from asp file.

So can you please tell me what do i need to do to make it work.
Vasil
Telerik team
 answered on 18 May 2011
6 answers
133 views
Hi

I have had to add some custom values to the available languages in the dictionary drop down list, however I need to make the drop downs width much wider as the descriptions I have used for the languages look squashed.

I've been unable to find any help topics on this apart from trying to apply the popup width property to the control itself but this did not change the width.

I have attached a picture with an example of the drop down I am using and ideally would like the width to match the longest description.

Regards,
Jonathan

 
Rumen
Telerik team
 answered on 18 May 2011
2 answers
70 views
Hi

I have a page with three grid et I want to associate to them a differente contextMenu. In fact, I want the first grid to add the item "add", "Edit" and "Delete" and the two others grid to contain "Edit" and "Delete". Seem pretty easy to do to me, but I'm unable to know wich grid had been clicked. I alreary tried this demo, but it didn't help this much, cause this demo work with only one grid. May someone help me ? Thanks

David
David
Top achievements
Rank 1
 answered on 18 May 2011
1 answer
102 views
Hello,

I am trying to change the text of a textbox from an onchange event from another tab.

In other words, I need to get out of the tab where the javascipt is located and in to another tab and I can't seem to do so.

The RadTabStrip is populated by ascx files inside the same directory.

Thanks for your time.
Dimitar Terziev
Telerik team
 answered on 18 May 2011
1 answer
120 views
Is it possible to make a treeview with checkboxes, but only on certain levels?
like not on first and second level, but on 3 or 4 level/ or all other levels below second level.

Thanks
Princy
Top achievements
Rank 2
 answered on 18 May 2011
2 answers
281 views
Hi,

I am new to Rad controls. We have a requirement to open a E-mail form in a rad window.
Though I did succeed in opening the window uinsg RadWindowMananger and RadWinow.
I use  javascript  radopen("Mail.aspx", "RadWindow1") in my parent aspx file.
When the radwindow opens it displays a series of icons at the bottom of the rad window.
Please someone help with this.

Attached screen shot.


Dhanasekar
Top achievements
Rank 1
 answered on 18 May 2011
1 answer
509 views
Hi,

I am currently working with crystal report & i am using crystal report viewer & crystal report source. Crystal report viewer & Crystal report source that  i put in update panel because when we press "Next" button ( i.e crystal report viewer property ) it doesn't allow post back to page. But problem will occur when i press Export Option ( i.e crystal report viewer property )  to select file formate (PDF), will not be opened due to update panel.
I have already done  Research & development  on it  & i found one solution & i.e.  fire trigger (like below). 
<asp:PostBackTrigger ControlID="CrystalReportViewer1"  />


Page will be post back (that i don't want) & pop up export option (that i want), when i am going to write  this trigger "<asp:PostBackTrigger ControlID="CrystalReportViewer1"  />" . So if i do it like this it is not good for my project that each & every time postback.
 
If any one knows better option that while pressing next button page will not going to be postback every time and Export option (of crystal report viewer ) will pop up. Is there any script for it or other option.

Thank you,
Ronak

Code:
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true"  >

          <Triggers>
           <asp:AsyncPostBackTrigger ControlID="btnCreateReport" EventName="Click" />
           <asp:PostBackTrigger ControlID="CrystalReportViewer1"  />
         </Triggers>

        <ContentTemplate>
        <div style="float: left;padding-left:30px;width:95%">
        <fieldset class="field">
                 <legend style="font-family: Calibri; color :Teal   ">Reports</legend> 
         <table width = "100%"  >
                 
                      <tr>
                          <td width = "20%">
                          
                              <asp:Label ID="lblCreatePreProcessing" runat="server" Font-Names="Calibri" 
                                  Text="Create Preprocessing Report :"></asp:Label>
                          
                              </td>
                              <td width = "80%">
                                  <asp:RadioButtonList ID="radbtnlistCreatePreProcessing" runat="server" 
                                      RepeatDirection="Horizontal" Font-Names="Calibri">
                                      <asp:ListItem>Yes</asp:ListItem>
                                      <asp:ListItem>No</asp:ListItem>
                                  </asp:RadioButtonList>
                              </td>
                              
                      </tr>
                 
                      <tr>
                          <td>
                              <asp:Label ID="lblError" runat="server"></asp:Label>
                          </td>
                      </tr>
                 
                      <tr>
                          <td>
                              <asp:Button ID="btn1" runat="server" Text="Button" />
                              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                              <asp:Button ID="btn2" runat="server" Text="Button" />
                          </td>
                              <td>
                              
                                  &nbsp;</td>
                      </tr>
                 
                      <tr>
                          <td align="center" width="100%">
                          <asp:Button ID="btnCreateReport" runat="server" Text="Generate Report" ValidationGroup="Save"
                           CssClass="ButtonClass" Width="150px"  Height="40px" Font-Names="Calibri" 
                                  Font-Size="Medium"  />
                                  &nbsp&nbsp&nbsp
                                  <asp:Button ID="btnCloseReport" runat="server" Text="Close Report" ValidationGroup="Save"
                           CssClass="ButtonClass" Width="150px"  Height="40px" Font-Names="Calibri" 
                                  Font-Size="Medium"  />
                        
                        <%--<asp:Button ID = "btnCreateReport" Text = "Create Report" runat = "server" />--%>
                        
                              &nbsp;&nbsp;
                        
                       
                         
                        
                          </td>
                      </tr>
                 
                      <tr>
                        <td align ="center"   width= "100%" >
                        
                            &nbsp;</td>
                      
                      </tr>      
                 
                 
                 </table>
                 <table width ="100%" >
                    <tr>
                    <td width ="2%">
                    
                    </td>
                    <td width = "2%">
                    
                    </td>
                    <td width = "2%">
                    
                    </td>
                    <td width = "2%">
                    
                    </td>
                     <td width = "82%">
                         
                      <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" 
                AutoDataBind="true"    EnableViewState="True" Height="50px" Width="350px" 
                             HasGotoPageButton="False" HasViewList="False"   />
                
              <CR:CrystalReportSource ID="CrystalReport21" runat="server">
              <Report FileName="Reports\xyz.rpt">
              
              </Report>
              </CR:CrystalReportSource> 

                     </td>
                   </tr>
                 </table>
                        
      </fieldset>
    </div>    
    
   </ContentTemplate>
</asp:UpdatePanel>















Vinkel
Top achievements
Rank 1
 answered on 18 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?