It is fairly easy to export a radgrid content in various formats.
here is sample code:
<telerik:RadGrid ID="GridRaporListe" AllowFilteringByColumn="true" AutoGenerateColumns="false"
PageSize="10000" AllowPaging="True" AllowSorting="True" runat="server" ShowGroupPanel="false"
OnItemCreated="GridRaporListe_ItemCreated" AllowMultiRowSelection="true" ClientSettings-AllowColumnHide="True"
ClientSettings-AllowColumnsReorder="True">
<ClientSettings EnableRowHoverStyle="true">
<Selecting AllowRowSelect="False"></Selecting>
</ClientSettings>
<PagerStyle Mode="NextPrevAndNumeric" />
<GroupingSettings CaseSensitive="false" />
<MasterTableView TableLayout="Fixed" DataKeyNames="ID" CommandItemDisplay="TopAndBottom">
<CommandItemSettings ShowExportToExcelButton="true" ShowExportToPdfButton="true"
ShowExportToWordButton="true" ShowExportToCsvButton="true" ShowRefreshButton="false"
ShowAddNewRecordButton="false"></CommandItemSettings>
<Columns>
<telerik:GridBoundColumn HeaderText="OgretimYili" DataField="OgretimYili" UniqueName="OgretimYili"
SortExpression="OgretimYili" HeaderStyle-Width="100px" />
<telerik:GridBoundColumn HeaderText="Donem" DataField="Donem" UniqueName="Donem"
SortExpression="Donem" HeaderStyle-Width="100px" />
</Columns>
</MasterTableView>
<ExportSettings FileName="Rapor">
<Excel Format="Html"></Excel>
</ExportSettings>
<ClientSettings AllowDragToGroup="true">
</ClientSettings>
</telerik:RadGrid>
14 Mart 2013 Perşembe
7 Mart 2013 Perşembe
allow postgresql connection without password
I am trying to run a thesis project on my local environment. In order to achieve this, i installed postgresql (v9.2) and have to connect it with my computer's user name and no password! (it is not possible to change the code in jar file and the configuration file is missing!) To accomplish this:
- i added a login role (by using pgAdmin GUI) with my computer's name and defined it with no password
- i edited pg_hba.conf file as follows:
host all all 127.0.0.1/32md5trust
- i added a login role (by using pgAdmin GUI) with my computer's name and defined it with no password
- i edited pg_hba.conf file as follows:
host all all 127.0.0.1/32
Kaydol:
Kayıtlar (Atom)