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

I do receive the combobox list information in the PDF file, however , it doesn't come in the csv file.
what could be the reason ?
thank you
I've added the grid format.
<telerik:RadGrid AutoGenerateColumns="False" ID="RadGrid4" AllowFilteringByColumn="True" AllowSorting="True" runat="server" OnItemCommand="RadGrid4_ItemCommand" OnItemCreated="RadGrid4_ItemCreated" EnableLinqExpressions="false" HtmlEncode="true" OnNeedDataSource="RadGrid4_NeedDataSource" GroupingSettings-RetainGroupFootersVisibility="true"
                        ShowGroupPanel="True" CellSpacing="-1" GridLines="Both" Skin="Office2010Silver" EnableViewState="true" Width="100%">
                        <PagerStyle Mode="NextPrevAndNumeric" />
                        <GroupingSettings CaseSensitive="false" />
                        <ClientSettings AllowKeyboardNavigation="true">
                        </ClientSettings>
                        <ExportSettings OpenInNewWindow="true" FileName="i-Dispatch Job Part Used Report" ExportOnlyData="true">
                            <Pdf PageHeight="210mm" PageWidth="297mm" DefaultFontFamily="Arial Unicode MS" PageTopMargin="45mm"
                                BorderStyle="Medium" BorderColor="#666666" PaperSize="A4">
                            </Pdf>
                        </ExportSettings>
                        <MasterTableView Width="100%" DataKeyNames="JobID" HierarchyLoadMode="ServerOnDemand" ShowGroupFooter="true" AllowMultiColumnSorting="true">
                            <Columns>
                                <telerik:GridMaskedColumn DataField="JobID" HeaderText="JobID#"
                                    FilterControlWidth="50px" AutoPostBackOnFilter="false" CurrentFilterFunction="EqualTo"
                                    FilterDelay="2000" ShowFilterIcon="false" Mask="#####" GroupByExpression="JobID Group By JobID">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text=""></ModelErrorMessage>
                                    </ColumnValidationSettings>
                                </telerik:GridMaskedColumn>
                                <telerik:GridBoundColumn DataField="JobTitle" FilterControlAltText="Filter JobTitle column" HeaderText="Job Title" SortExpression="JobTitle" UniqueName="JobTitle">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn DataField="JobBookedDate" PickerType="DatePicker" EnableTimeIndependentFiltering="true"
                                    DataFormatString="{0:dd/MM/yyyy HH:mm }" DataType="System.DateTime" FilterControlAltText="Filter JobBookedDate column" HeaderText="Job Booked Date" SortExpression="JobBookedDate" UniqueName="JobBookedDate">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridDateTimeColumn>
                                <telerik:GridTemplateColumn DataField="AssignedStaffID" HeaderText="Mobile Staff" UniqueName="AssignedStaffID"
                                    HeaderStyle-Width="200px" SortExpression="AssignedStaffID">
                                    <FilterTemplate>
                                        <telerik:RadComboBox ID="comboStaff" DataTextField="StaffName"
                                            DataValueField="StaffID" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("AssignedStaffID").CurrentFilterValue %>'
                                            runat="server" OnClientSelectedIndexChanged="StaffIndexChanged">
                                            <Items>
                                                <telerik:RadComboBoxItem Text="All" />
                                            </Items>
                                        </telerik:RadComboBox>
                                        <telerik:RadScriptBlock ID="RadScriptBlock10" runat="server">
                                            <script type="text/javascript">
                                                function StaffIndexChanged(sender, args) {
                                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                                    tableView.filter("AssignedStaffID", args.get_item().get_value(), "EqualTo");
                                                }
                                            </script>
                                        </telerik:RadScriptBlock>
                                    </FilterTemplate>
                                    <ItemTemplate>
                                        <%# Eval("Staff") %>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridTemplateColumn DataField="CreatedBy" HeaderText="Added By" UniqueName="CreatedBy"
                                    HeaderStyle-Width="200px" SortExpression="CreatedBy">
                                    <FilterTemplate>
                                        <telerik:RadComboBox ID="comboAdded" DataTextField="StaffName"
                                            DataValueField="StaffID" Height="100px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("CreatedBy").CurrentFilterValue %>'
                                            runat="server" OnClientSelectedIndexChanged="AddedByIndexChanged">
                                            <Items>
                                                <telerik:RadComboBoxItem Text="All" />
                                            </Items>
                                        </telerik:RadComboBox>
                                        <telerik:RadScriptBlock ID="RadScriptBlock11" runat="server">
                                            <script type="text/javascript">
                                                function AddedByIndexChanged(sender, args) {
                                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                                    tableView.filter("CreatedBy", args.get_item().get_value(), "EqualTo");
                                                }
                                            </script>
                                        </telerik:RadScriptBlock>
                                    </FilterTemplate>
                                    <ItemTemplate>
                                        <%# Eval("AddedBy") %>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn DataField="PartCode" FilterControlAltText="Filter PartCode column" HeaderText="Part Code" SortExpression="PartCode" UniqueName="PartCode">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="PartName" Aggregate="Count" FooterText="Total parts: " FilterControlAltText="Filter PartName column" HeaderText="Part Name" SortExpression="PartName" UniqueName="Part Name">
                                    <ColumnValidationSettings>
                                        <ModelErrorMessage Text="" />
                                    </ColumnValidationSettings>
                                </telerik:GridBoundColumn>
 
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="PartPurchasePrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Purchase Price" SortExpression="PartPurchasePrice" UniqueName="PartPurchasePrice" Aggregate="Sum" FooterText="Total : " FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="PartSalePrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Recommended Sale Price" SortExpression="PartSalePrice" UniqueName="PartSalePrice" FooterText="Total: " Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartUnitPrice" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Sale Price Charged" SortExpression="JobPartUnitPrice" UniqueName="JobPartUnitPrice" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataField="JobPartQuantity" DataType="System.Double"
                                    HeaderText="Quantity" SortExpression="JobPartQuantity" UniqueName="JobPartQuantity" Aggregate="Sum" FooterAggregateFormatString="{0:n}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartGST" DataType="System.Double" NumericType="Currency"
                                    HeaderText="GST Charged" SortExpression="JobPartGST" UniqueName="JobPartGST" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridNumericColumn DataFormatString="{0:$###,##0.00}" DataField="JobPartTotal" DataType="System.Double" NumericType="Currency"
                                    HeaderText="Total" SortExpression="JobPartTotal" UniqueName="JobPartTotal" Aggregate="Sum" FooterAggregateFormatString="{0:C}">
                                    <FooterStyle Font-Bold="true"></FooterStyle>
                                </telerik:GridNumericColumn>
                                <telerik:GridCalculatedColumn HeaderText="Gross Margin" UniqueName="GrossMargin" DataType="System.Double" DataFormatString="{0:$###,##0.00}"
                                    DataFields="JobPartUnitPrice, PartPurchasePrice" Expression="{0}-{1}" FooterText="Total : "
                                    Aggregate="Sum">
                                </telerik:GridCalculatedColumn>
                                   <telerik:GridCalculatedColumn HeaderText="Gross Margin Percentage" UniqueName="GrossMarginPercentage" DataType="System.Double" DataFormatString="{0:P}"
                                    DataFields="JobPartUnitPrice, PartPurchasePrice" Expression="iif({0}=0,0,iif(({0}-{1})=0,0,(({0}-{1})/{0})*100))" FooterText="Total : "
                                    Aggregate="Sum">
                                </telerik:GridCalculatedColumn>                               
                            </Columns>
                            <GroupByExpressions>
                                <telerik:GridGroupByExpression>
                                    <GroupByFields>
                                        <telerik:GridGroupByField FieldName="JobID"></telerik:GridGroupByField>
                                    </GroupByFields>
                                    <SelectFields>
                                        <telerik:GridGroupByField FieldName="JobID" HeaderText="JobID#"></telerik:GridGroupByField>
                                    </SelectFields>
                                </telerik:GridGroupByExpression>
                            </GroupByExpressions>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="true">
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
                    </telerik:RadGrid>
Kostadin
Telerik team
 answered on 03 Apr 2015
3 answers
106 views
Hi,

We have an issue with the ordered/unordered list options in the editor. Adding an unorderedlist causes the entire text in a TD element to be intended, not the specific text where the cursor is placed or text is selected. 

Reproduceable steps:
- Go to the demos: http://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
- Paste the following text into the editor:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Cum sociis natoque penatibus et magnis dis parturient montes

- Put your cursor at beginning ot the second paragraph (at beginning of the word Cum)
- Press on the unordered list button

The unordered bullet will be added at beginning of the first paragraph. 
This is an bug issue for us because of high count people working with it, so it's URGENT for us.

Are you aware of this issue?

Kind regards,
Jelle de Boer
Erick
Top achievements
Rank 2
 answered on 03 Apr 2015
1 answer
47 views
Hello,

Well after upgrade from Telerik version of 2011 to 2015 RadScheduler stoped working. The problem resides in

<%#Container.ItemIndex%>

Always is represented by empty space. The exact  code 

<asp:ImageButton ID="imgAdmin" runat="server" OnCommand="verCalendarioAdmin"<br>                                    CommandArgument='<%#Container.ItemIndex%>' ImageUrl="./Img/Perfil/administrar.png"  ToolTip='<%$ Resources: GridAdministrar %>'/>    
                       
Nencho
Telerik team
 answered on 03 Apr 2015
1 answer
121 views
Is there any way to detect during OnClientItemClicking/OnClientItemClickedwhether a RadMenuItem has PostBack=False? 
Nencho
Telerik team
 answered on 03 Apr 2015
3 answers
158 views


Please look at my month view and look at the Day/Week view I
did not find my appointments/meeting in Day/Week view why??

Please advise…

Thanks

Plamen
Telerik team
 answered on 03 Apr 2015
3 answers
126 views
Hello there,

I have 100% height problem in File Explorer. I tried the solution at below but treeview + splitter + grid have 67 pixel when i check the source of the page...


html, form, body { height: 100%; margin: 0px; }
Guss
Top achievements
Rank 2
Veteran
 answered on 03 Apr 2015
2 answers
193 views
I need help. I need to make the FileExplorer resize it's length and width to match it's parent container.  I attempted to implement the code found here .  The browser cannot interpret the Telerik functions so I consistently get a "is not a function" response from Firebug debugger for .get_grid(), etc..  Why am I getting the error message and how can I accomplish resizing the FileExplorer to it's parent Container?  The FileExplorer is in a panel, which is in the bottom half of another panel which the width of the RadSlidingPane (ID=LSlidingPane @ line 4) can be resized by the client.  The FileExplorer's height needs to resize to the width of the sliding pane onresize and the height of it's container onload.  If this can't be done, I at least need to be able to view the bottom of the FileExplorer.  Presently, I can only view the upper portion and not the bottom horizontal scrollbar.  Any help is greatly appreciated.  Thanks.

​
001.<telerik:RadSplitter id="RadSplitter1" runat="server" Height="488" Width="767">
002.        <telerik:RadPane id="LPane" runat="server" width="22px" Scrolling="None">
003.            <telerik:RadSlidingZone ID="LSlidingZone" runat="server" Width="22px">
004.                <telerik:RadSlidingPane ID="LSlidingPane" runat="server"
005.                EnableDock="True" EnableResize="True" Scrolling="None" Title="Location"
006.                Width="250px">
007.                    <telerik:RadSplitter ID="Radsplitter3" runat="server" Height="275" Orientation="Horizontal" Width="260">
008.                              <telerik:RadPane ID="LoRadpane" runat="server" Scrolling="None" CssClass="AutoHeight" >  
009.                                  <asp:Panel ID="pnlL" runat="server" >
010.                                        <div ID="DivC" align="center" style="overflow: hidden">
011. 
012.                                                <asp:DropDownList ID="Bdropdwn" runat="server"
013.                                                AutoPostBack="false" Height="25px" Width="200px">
014.                                                </asp:DropDownList>
015. 
016.                                                    <br />
017.                                                    <p />
018.                                                <asp:ListBox ID="RListBox" runat="server" AutoPostBack="false"
019.                                                Height="150px" Width="200px">
020.                                                </asp:ListBox>
021.                                                <br />
022.                                       </div>
023.                                    </asp:Panel>
024.                                </telerik:RadPane>
025.                             <telerik:RadSplitBar id="URadsplitbar" runat="server" CssClass="tab_click">
026.                             </telerik:RadSplitBar>
027.                                 <telerik:RadPane id="URadpane" runat="server">
028.                                     <asp:Panel id="pnlU" runat="server" Height="100px" Width="260px">
029.                                          <div id="layer" align="center" >
030. 
031.                                                                   <p align="center">
032.                                                                   <input id="file" type="file" width="200px" />
033.                                                                   </p>
034.                                              </div>
035.                                        <div id="dvFileExplorer" >
036.                                            <asp:Panel runat="server" ID="pnlFileExplorer" class="dvFileExplorerContent" >
037.                                                 
038.                                                <telerik:RadFileExplorer ID="RadFileExplorer" runat="server"
039.                                                    EnableOpenFile="false"
040.                                                    ExplorerMode="Default" Width="100%" >
041.                                                </telerik:RadFileExplorer>
042. 
043.                                            </asp:Panel>
044.                                        </div>
045.                                      </asp:Panel>
046.                                  </telerik:RadPane>
047.                             </telerik:RadSplitter>
048.                    </telerik:RadSlidingPane>
049. 
050.                <telerik:RadSlidingPane ID="MPane" runat="server" EnableDock="True" EnableResize="True" Title="Message(s)" Height="275" Width="260">
051.                    <div id="AccordionMPane">
052.                    </div>
053.                </telerik:RadSlidingPane>
054.                  <telerik:RadSlidingPane id="EPane" runat="server" EnableDock="True" EnableResize="True" Title="Error(s)" Height="275" Width="260">
055.                    <div id="AccordionEPane">
056.                    </div>
057.                  </telerik:RadSlidingPane>
058.                  <telerik:RadSlidingPane id="SPane" runat="server" EnableDock="True" EnableResize="True" Title="Summary" Height="275" Width="260">
059.                    <div id="AccordianSPane">
060.                    </div>
061.                  </telerik:RadSlidingPane>
062.                 </telerik:RadSlidingZone>
063.        </telerik:RadPane>
064. 
065.      <%--Splitter Bar--%>
066.      <telerik:RadSplitBar id="RadSplitbar1" runat="server">
067.      </telerik:RadSplitBar>
068. 
069.      <%--Main Pane--%>
070.      <telerik:RadPane id="MiddlePane" runat="server" Scrolling="None">
071.               <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
072.                <ContentTemplate>
073.                    <div id="TabDiv" class="tabcontainer" style="margin:0px;border-width:0px; padding:0px;border:none;">
074.                        <ul class="tabs">
075.                            <li><a href="#W#" class="tab-link current">W</a></li>                  
076.                            <li><a href="#S1#" class="tab-link">S1</a></li>                 
077.                            <li><a href="#S2#" class="tab-link">S2</a></li>   
078.                            <li><a href="#S3#"  class="tab-link">S3</a></li>                  
079.                            <li><a href="#R#" class="tab-link">R</a></li>
080.                        </ul>
081.                        <div id="W#" class="tab-content">
082.                        </div>
083.                        <div id="S1#" class="tab-content">
084.                         <div >
085.                         </div>
086.                        </div>
087.                        <div id="S2#" class="tab-content">
088.                         <div >
089.                         </div>
090.                        </div>
091.                        <div id="S3#" class="tab-content">
092.                         <div >
093.                         </div>
094.                        </div>
095.                        <div id="R#" class="tab-content">
096.                         <div >
097.                         </div>
098.                        </div>
099.                    </div>
100.               </ContentTemplate>
101.               </asp:UpdatePanel
102.           </telerik:RadPane>
103.    </telerik:RadSplitter>
Guss
Top achievements
Rank 2
Veteran
 answered on 03 Apr 2015
2 answers
103 views
I've been toying with using this control for a webapp on the iPhone. Since there is no scroll bar for iPhone Safari, I would like to be able to display longer lists in FileTree ExplorerMode. Is there a way to dynamically change the height of the tree that appears? I can set it to an arbitrary longer value, but would prefer that the height autoresize resize itself to the content displayed.

Thanks!
Guss
Top achievements
Rank 2
Veteran
 answered on 03 Apr 2015
2 answers
208 views
What I want to show on my scheduler is each row from 8AM to 6PM, I know how to do that, but, I don't want to show the rows from 2PM to 4PM(example)

I want the next row after 1PM to be 4PM instead of 2PM.

Do you guys know if this is possible?

I hope I made myself clear, thank you.
Ing. Jesus Manuel
Top achievements
Rank 1
 answered on 02 Apr 2015
4 answers
109 views
using version 2014.3.1202

I have the following RadComboBox:

<telerik:RadComboBox runat="server" ID="auto_Section" AutoPostBack="true"
                            AllowCustomText ="false"  Filter="Contains" EmptyMessage="Select Section"
                            DataMember="DisplayString"  DataValueField="ID" DataTextField="DisplayString" 
                            OnSelectedIndexChanged="auto_Section_SelectedIndexChanged" 
                           />
        
When the selected Index changes, the selected value is always returning ""
However, when I remove EmptyMessage="Select Section", it works perfectly.


I tried adding in a default item like so:

<telerik:RadComboBox runat="server" ID="auto_Section" AutoPostBack="true" AppendDataBoundItems="true"
                            AllowCustomText ="false"  Filter="Contains" EmptyMessage="Select Section"
                            DataMember="DisplayString"  DataValueField="ID" DataTextField="DisplayString" 
                            OnSelectedIndexChanged="auto_Section_SelectedIndexChanged" 
                  <Items>
                                <telerik:RadComboBoxItem Text="< Select Section >" Value="-1" />
                  </Items>
</telerik:RadComboBox>

 
 but having AppendDataBoundItems='true' set causes other issues when filtering; the items get appended to the list multiple times.


Does anyone know how to get this to work properly?























jen
Top achievements
Rank 1
 answered on 02 Apr 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?