PDA

View Full Version : [CLOSED] This page running very slow on ie 11. But on chrome very speed.



cottimucin
Aug 04, 2014, 9:40 AM
This page running very slow on ie 11.
But on chrome very speed.
What must I do ? please help me?



<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BIRIMDERSPROGRAMLARI.aspx.cs"
Inherits="ogrenci.TANIMLAR.BIRIMDERSPROGRAMLARI" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!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>
<ext:ResourcePlaceHolder ID="ResourcePlaceHolder2" runat="server" Mode="Script" />
<ext:ResourcePlaceHolder ID="ResourcePlaceHolder1" runat="server" Mode="Style" />
<style type="text/css">
.multicombo-list
{
font: 11px tahoma,arial,helvetica,sans-serif;
border: 1px solid #000;
width: 100%;
}

.multicombo-list th
{
font-weight: bold;
border: 1px;
}

.multicombo-list td, .multicombo-list th
{
padding: 0px;
border: 1px;
}

.list-item
{
cursor: pointer;
}
</style>
<style type="text/css">
@import url(../GridBlue2.css);
@import url(../GridOrange.css);
</style>
<script>
var dersAdiRenderer = function (value) {
var r = StoreDerslerEkran.getById(value);

if (Ext.isEmpty(r) || value == 0) {
return "";
}

return r.data.DERSINADI;
};



var hocaRenderer = function (value) {
var r = StoreHocaEkran.getById(value);

if (Ext.isEmpty(r) || value == 0) {
return "";
}

return r.data.ADISOYADI;
};


var gunRenderer = function (value) {
if (value == 1) { return "Pazartesi"}
if (value == 2) { return "Salı" }
if (value == 3) { return "?arşamba" }
if (value == 4) { return "Perşembe" }
if (value == 5) { return "Cuma" }
if (value == 6) { return "Cumartesi" }
if (value == 7) { return "Pazar" }

};

var grupvarmiRenderer = function (value) {
if (value == 0) { return "Yok" }
if (value == 1) { return "Var" }

};


var tuRenderer = function (value) {
if (value == 0) { return "" }
if (value == 1) { return "Teorik" }
if (value == 2) { return "Uygulama" }

};

// "#{Store1}.getChangedData();" App.Direct.SomeDirectMethod(Ext.encode(store.getCh angedData()));
// bunları 3 ayrı parametre olarak d?nd?relim işlem okeyyy
//var g = store.getNewRecords(), d = store.getUpdatedRecords(), a = store.getRemovedRecords();
function getValuesUpdate(grid) {
var records = grid.getStore().getUpdatedRecords(),
values = [];

for (i = 0; i < records.length; i++) {
var dataR = grid.store.prepareRecord(records[i].data, records[i], {});

if (!Ext.isEmptyObj(dataR)) {
values.push(dataR);
}
}

return values
}

function getValuesAdd(grid) {
var records = grid.getStore().getNewRecords(),
values = [];

for (i = 0; i < records.length; i++) {
var dataR = grid.store.prepareRecord(records[i].data, records[i], {});

if (!Ext.isEmptyObj(dataR)) {
values.push(dataR);
}
}

return values
}

function getValuesDelete(grid) {
var records = grid.getStore().getRemovedRecords(),
values = [];

for (i = 0; i < records.length; i++) {
var dataR = grid.store.prepareRecord(records[i].data, records[i], {});

if (!Ext.isEmptyObj(dataR)) {
values.push(dataR);
}
}

return values
}



function addRecord(btn) {
// Create a model instance
var r = Ext.create('Kayit', {
ID: '',
KODU: '',
DERSKODU: 0,
//availability: Ext.Date.clearTime(new Date()),
GUNKODU: 0,
SAATKODU: 0,
SICIL: 0,
OGRELEMANIKODU: 0,
DERSLIKKODU: '',
GRUPNO: 1,
GRUPVARMI: 0,
TU: 0,
OGRSINIR: 0
}),
grid = btn.up("gridpanel");

grid.store.insert(0, r);
grid.editingPlugin.startEdit(0, 0);

}


// var prepare = function (grid, toolbar, rowIndex, record) {
// var firstButton = toolbar.items.get(0);

// if (record.data.ID < 2) {
// firstButton.setDisabled(true);
// firstButton.setTooltip("Disabled");
// }

// //you can return false to cancel toolbar for this record
// };


</script>
<script type="text/javascript">


var BeforeConfirm = function () {
Ext.Msg.on(
"beforeshow",
function (win) {
win.defaultFocus = 2;
},
null, {
single: true
}
);
}
</script>
<script type="text/javascript">

var edit = function (editor, e) {
/* BURASI GRİDDE DEĞİŞEN BİR DEĞER İ?İN BAŞKA BİR KOLONU G?NCELLEME YAPMAK İ?İNDİR
"e" is an edit event with the following properties:

grid - The grid
record - The record that was edited
field - The field name that was edited
value - The value being set
originalValue - The original value for the field, before the edit.
row - The grid table row
column - The grid Column defining the column that was edited.
rowIdx - The row index that was edited
colIdx - The column index that was edited
*/

// Call DirectMethod
if (!(e.value === e.originalValue || (Ext.isDate(e.value) && Ext.Date.isEqual(e.value, e.originalValue)))) {
CompanyX.Edit(e.record.data.ID, e.field, e.value, e.record.data, e.rowIdx, e.record.data.DERSKODU, e.record.data.OGRELEMANIKODU2);
}
};



</script>


<style>
.dirty-row .x-grid-cell, .dirty-row .x-grid-rowwrap-div {
background-color: #FFFDD8 !important;
}

.new-row .x-grid-cell, .new-row .x-grid-rowwrap-div {
background: #c8ffc8 !important;
}
</style>





<script type="text/javascript">
var getRowClass = function (record) {
if (record.phantom) {
return "new-row";
}

if (record.dirty) {
return "dirty-row";
}
};



</script>





</head>
<body>
<form id="form1" runat="server">
<div>
<ext:ResourceManager ID="ResourceManager1" runat="server" CleanResourceUrl="true"
Namespace="" SeparateUIStyles="true" DisableViewState="true" />

<ext:Store ID="StoreBirim" runat="server">
<Reader>
<ext:JsonReader IDProperty="FAKMYOKODU">
</ext:JsonReader>
</Reader>
<Model>
<ext:Model ID="Model2" runat="server" IDProperty="FAKMYOKODU">
<Fields>
<ext:ModelField Name="FAKMYOKODU" Type="Int">
</ext:ModelField>
<ext:ModelField Name="FAKMYOADI" Type="String">
</ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:Store ID="StoreBolum" runat="server">
<Reader>
<ext:JsonReader IDProperty="BOLUMKODU">
</ext:JsonReader>
</Reader>
<Model>
<ext:Model ID="Model4" runat="server" IDProperty="BOLUMKODU">
<Fields>
<ext:ModelField Name="BOLUMKODU" Type="Int">
</ext:ModelField>
<ext:ModelField Name="BOLUMADI" Type="String">
</ext:ModelField>
<ext:ModelField Name="PROGRAMADI" Type="String">
</ext:ModelField>
</Fields>
</ext:Model>
</Model>
</ext:Store>
<ext:Store ID="StoreDersler" runat="server">
<Model>
<ext:Model ID="Model3" runat="server" IDProperty="BILGISAYARKODU">
<Fields>
<ext:ModelField Name="BILGISAYARKODU" Type="Int" />
<ext:ModelField Name="KODU" />
<ext:ModelField Name="DERSINADI" />
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Store ID="StoreDerslerEkran" runat="server">
<Model>
<ext:Model ID="Model6" runat="server" IDProperty="BILGISAYARKODU">
<Fields>
<ext:ModelField Name="BILGISAYARKODU" Type="Int" />
<ext:ModelField Name="KODU" />
<ext:ModelField Name="DERSINADI" />
</Fields>
</ext:Model>
</Model>
</ext:Store>


<ext:Store ID="StoreHoca" runat="server">
<Model>
<ext:Model ID="Model5" runat="server" IDProperty="SICIL">
<Fields>
<ext:ModelField Name="SICIL" Type="Int" />
<ext:ModelField Name="ADISOYADI" />
</Fields>
</ext:Model>
</Model>
</ext:Store>


<ext:Store ID="StoreHocaEkran" runat="server">
<Model>
<ext:Model ID="Model7" runat="server" IDProperty="SICIL">
<Fields>
<ext:ModelField Name="SICIL" Type="Int" />
<ext:ModelField Name="ADISOYADI" />
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Store ID="StoreVarmi" runat="server">
<Model>
<ext:Model ID="Model8" runat="server">
<Fields>
<ext:ModelField Name="value" />
<ext:ModelField Name="text" />
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Store ID="StoreGun" runat="server">
<Model>
<ext:Model ID="Model9" runat="server">
<Fields>
<ext:ModelField Name="value" />
<ext:ModelField Name="text" />
</Fields>
</ext:Model>
</Model>
</ext:Store>

<ext:Store ID="StoreTu" runat="server">
<Model>
<ext:Model ID="Model10" runat="server">
<Fields>
<ext:ModelField Name="value" />
<ext:ModelField Name="text" />
</Fields>
</ext:Model>
</Model>
</ext:Store>


<ext:Store runat="server" ID="Store1" >
<Model>
<ext:Model ID="Model1" runat="server" IDProperty="ID" Name="Kayit">
<Fields>
<ext:ModelField Name="ID" Type="Int" />
<ext:ModelField Name="KODU" Type="String" />
<ext:ModelField Name="DERSKODU" Type="Int" />
<ext:ModelField Name="GUNKODU" Type="Int" />
<ext:ModelField Name="SAATKODU" Type="Int" />
<ext:ModelField Name="SICIL" Type="Int" />
<ext:ModelField Name="OGRELEMANIKODU" Type="Int" />
<ext:ModelField Name="OGRELEMANIKODU2" Type="Int" Mapping="OGRELEMANIKODU" />
<ext:ModelField Name="DERSLIKKODU" Type="String" />
<ext:ModelField Name="GRUPNO" Type="Int" />
<ext:ModelField Name="GRUPVARMI" Type="Int" />
<ext:ModelField Name="TU" Type="Int" />
<ext:ModelField Name="OGRSINIR" Type="Int" />

</Fields>
</ext:Model>
</Model>
</ext:Store>


<ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout" >
<Items>


<ext:Panel ID="Panel1" runat="server" Region="North" >
<Items>

<ext:FormPanel ID="FormPanel1" runat="server" Frame="true" Title="Birim Ders Programı"
ButtonAlign="Center" Layout="AnchorLayout" UI="Info" TitleAlign="Left">
<FieldDefaults MsgTarget="Qtip" LabelWidth="100" />
<Listeners>
<AfterRender Handler="#{FormPanel1}.doLayout();" Delay="1" />
</Listeners>
<Items>
<ext:FieldContainer ID="FieldContainer2" runat="server" AnchorHorizontal="100%" Layout="HBoxLayout">
<Items>
<ext:ComboBox ID="BIRIM" runat="server" QueryMode="Local" Editable="true" StoreID="StoreBirim"
DisplayField="FAKMYOADI" ValueField="FAKMYOKODU" AllowBlank="false" ForceSelection="true"
SelectOnFocus="true" EmptyText="Se?im Yapın..." BlankText="Se?im Yapmalısınız"
FieldLabel="Birim " Width="500" LabelWidth="50" >
<ListConfig Width="500" Height="300" ItemSelector=".x-boundlist-item">
<Tpl ID="Tpl1" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="multicombo-list">
<tr>
<td Width="30">Kodu</th>
<td Width="300">Adı</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{FAKMYOKODU}</td>
<td>{FAKMYOADI}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
<Triggers>
<ext:FieldTrigger Icon="Clear" HideTrigger="true" />
</Triggers>
<DirectEvents>
<Change OnEvent="birim_secildi">
<EventMask ShowMask="True" Msg="İlgili Kayıtlar Se?iliyor. L?tfen Bekleyiniz..." />
</Change>

</DirectEvents>
<DisplayTpl ID="DisplayTpl1" runat="server">
<Html>
<tpl for=".">{FAKMYOKODU} - {FAKMYOADI}</tpl>
</Html>
</DisplayTpl>
<AfterLabelTextTpl runat="server" ID="AfterLabelTextTpl1">
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:ComboBox>
<ext:DisplayField ID="DisplayField1" runat="server" Width="20" Html="&nbsp;" />
<ext:ComboBox ID="BOLUM" runat="server" QueryMode="Local" Editable="true" StoreID="StoreBolum"
DisplayField="PROGRAMADI" ValueField="BOLUMKODU" AllowBlank="false" ForceSelection="true"
SelectOnFocus="true" EmptyText="Se?im Yapın..." BlankText="Se?im Yapmalısınız"
FieldLabel="B?l?m " Width="500" LabelWidth="50">
<ListConfig Width="500" Height="300" ItemSelector=".x-boundlist-item">
<Tpl ID="Tpl2" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="multicombo-list">
<tr>
<td Width="30">Kodu</th>
<td Width="300">Adı</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{BOLUMKODU}</td>
<td>{PROGRAMADI}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
<Triggers>
<ext:FieldTrigger Icon="Clear" HideTrigger="true" />
</Triggers>
<DirectEvents>
<Change OnEvent="bolum_secildi">
<EventMask ShowMask="True" Msg="İlgili Birime Ait Kayıtlar Se?iliyor. L?tfen Bekleyiniz..." />
</Change>
</DirectEvents>
<DisplayTpl ID="DisplayTpl2" runat="server">
<Html>
<tpl for=".">{PROGRAMADI} - {BOLUMKODU}</tpl>
</Html>
</DisplayTpl>
<AfterLabelTextTpl runat="server" ID="ctl956">
<Html>
<span style="color: red; font-weight: bold" data-qtip="Required">*</span>
</Html>
</AfterLabelTextTpl>
</ext:ComboBox>
</Items>
</ext:FieldContainer>


</Items>
</ext:FormPanel>

</Items>
</ext:Panel>

<ext:Panel ID="Panel2" runat="server" Region="Center" Layout="FitLayout">
<Items>

<ext:GridPanel ID="GridPanel1" runat="server" Height="500" Frame="true" StoreID="Store1" SelectionMemory ="true"
Cls="x-grid-custom_Blue2" Hidden="true" StripeRows="true" TrackMouseOver="true" >

<CustomConfig>
<ext:ConfigItem Name="EnableColumnHide" Value="false" Mode="Raw" />
</CustomConfig>


<TopBar>
<ext:Toolbar ID="Toolbar1" runat="server" >
<Items>
<ext:Button ID="Button2" runat="server" Icon="Add" Text="Boş Satır A?" Handler="addRecord" />
<ext:ToolbarSeparator/>
<ext:Button ID="Button1" runat="server" Icon="Accept" Text="Değişiklikleri Kaydet" >
<DirectEvents>
<Click OnEvent="kaydet">
<ExtraParams>


<ext:Parameter Name="valuesAll" Value="Ext.encode(#{GridPanel1}.getRowsValues({dirtyRowsO nly: true}))" Mode="Raw" />
<ext:Parameter Name="valuesUpdate" Value="Ext.encode(getValuesUpdate(#{GridPanel1}))" Mode="Raw" />
<ext:Parameter Name="valuesAdd" Value="Ext.encode(getValuesAdd(#{GridPanel1}))" Mode="Raw" />
<ext:Parameter Name="valuesDelete" Value="Ext.encode(getValuesDelete(#{GridPanel1}))" Mode="Raw" />
</ExtraParams>
<EventMask ShowMask="True" Msg="İşlem yapılıyor. L?tfen Bekleyiniz..." />
</Click>
</DirectEvents>
</ext:Button>

<ext:ToolbarSeparator/>
<ext:Button ID="Button5" runat="server" Icon="BookAdd" Text="Excelden Aktarma İşlemi">
<DirectEvents>
<Click OnEvent="aktarmaekranı"/>
</DirectEvents>
</ext:Button>

<ext:ToolbarSeparator/>
<ext:Button ID="Button3" runat="server" Icon="Printer" Text="Yazdır">
<DirectEvents>
<Click OnEvent="yazdir"/>
</DirectEvents>
</ext:Button>


<ext:ToolbarSeparator/>
<ext:Button ID="Button6" runat="server" Icon="Printer" Text="M?fredatta Olan Ders Programında Olmayan Dersler">
<DirectEvents>
<Click OnEvent="unutulandersler_yazdir"/>
</DirectEvents>
</ext:Button>


</Items>
</ext:Toolbar>
</TopBar>
<ColumnModel ID="ColumnModel3" runat="server">
<Columns>

<ext:Column ID="Column1" runat="server" Text="ID" DataIndex="ID" Align="Center" Hidden="true">
</ext:Column>
<ext:Column ID="Column8" runat="server" Text="KODU" DataIndex="KODU" Align="Center"
Width="70">
</ext:Column>
<ext:Column ID="Column7" runat="server" Text="Ders" DataIndex="DERSKODU" Flex="1">
<Renderer Fn="dersAdiRenderer" />

<Editor>


<ext:ComboBox ID="ComboBox4" runat="server" Editable="true" StoreID="StoreDersler"
DisplayField="DERSINADI" ValueField="BILGISAYARKODU" AllowBlank="false" ForceSelection="true"
Width="450" SelectOnFocus="true" TypeAhead="false"
EnableKeyEvents="true" HideBaseTrigger="true" MinChars="1" TriggerAction="Query" >

<Listeners>
<%-- <KeyUp Handler="Ext.net.DirectMethods.GetData(this.getRawValue());" /> --%>
<Change Handler="Ext.net.DirectMethods.GetData(this.getRawValue());" />
</Listeners>


<ListConfig Width="450" Height="300" ItemSelector=".x-boundlist-item">
<Tpl ID="Tpl3" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="multicombo-list">
<tr>
<td Width="50">Kodu</th>
<td Width="350">Adı</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{KODU}</td>
<td>{DERSINADI}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
<Triggers>

<ext:FieldTrigger Icon="Clear" HideTrigger="true" />
</Triggers>
</ext:ComboBox>
</Editor>
</ext:Column>
<ext:Column ID="Column3" runat="server" Text="Sicil" DataIndex="OGRELEMANIKODU" Width="50"
Align="Center" >
</ext:Column>
<ext:Column ID="Column6" runat="server" Text="?ğretim ?yesi/Elemanı" DataIndex="OGRELEMANIKODU2"
Width="350">




<Renderer Fn="hocaRenderer" />
<Editor>
<ext:ComboBox ID="ComboBox1" runat="server" Editable="true" StoreID="StoreHoca"
DisplayField="ADISOYADI" ValueField="SICIL" AllowBlank="false" ForceSelection="true"
Width="450" SelectOnFocus="true" TypeAhead="false"
EnableKeyEvents="true" HideBaseTrigger="true" MinChars="1" TriggerAction="Query" >

<Listeners>
<Change Handler="Ext.net.DirectMethods.GetData2(this.getRawValue()) ;" />

</Listeners>

<ListConfig Width="450" Height="300" ItemSelector=".x-boundlist-item">
<Tpl ID="Tpl4" runat="server">
<Html>
<tpl for=".">
<tpl if="[xindex] == 1">
<table class="multicombo-list">
<tr>
<td Width="50">Sicil</th>
<td Width="350">Adı Soyadı</th>
</tr>
</tpl>
<tr class="x-boundlist-item">
<td>{SICIL}</td>
<td>{ADISOYADI}</td>
</tr>
<tpl if="[xcount-xindex]==0">
</table>
</tpl>
</tpl>
</Html>
</Tpl>
</ListConfig>
</ext:ComboBox>


</Editor>
</ext:Column>
<ext:Column ID="Column4" runat="server" Text="G?n" DataIndex="GUNKODU" Width="75"
Align="Center">
<Renderer Fn="gunRenderer" />
<Editor>
<%-- <ext:NumberField ID="NumberField1" runat="server" AllowBlank="false" MinValue="1"
MaxValue="7" SelectOnFocus="true" HideTrigger="true" />--%>

<ext:ComboBox ID="cbgun" runat="server" StoreID="StoreGun"
AnchorHorizontal="20%" AllowBlank="false" SelectOnFocus="true" ForceSelection="true" TypeAhead="false" EmptyText="Se?." DisplayField="text" ValueField="value">

</ext:ComboBox>

</Editor>
</ext:Column>
<ext:Column ID="Column2" runat="server" Text="Saat" DataIndex="SAATKODU" Width="40"
Align="Center">

<Editor>
<ext:NumberField ID="NumberField2" runat="server" AllowBlank="false" MinValue="8"
MaxValue="23" SelectOnFocus="true" HideTrigger="true" Step="0" >
</ext:NumberField>
</Editor>
</ext:Column>
<ext:Column ID="Column5" runat="server" Text="Derslik" DataIndex="DERSLIKKODU" Align="Center"
Width="75">
<Editor>
<ext:TextField ID="TextField1" runat="server" AllowBlank="false" SelectOnFocus="true"
MaxLength="10" EnforceMaxLength="true" />
</Editor>
</ext:Column>
<ext:Column ID="Column9" runat="server" Text="Gr.V?" DataIndex="GRUPVARMI" Width="50"
Align="Center">
<Renderer Fn="grupvarmiRenderer" />
<Editor>
<%-- <ext:NumberField ID="NumberField4" runat="server" AllowBlank="false" MinValue="0"
MaxValue="1" SelectOnFocus="true" HideTrigger="true" />--%>
<ext:ComboBox ID="cbgvarmi" runat="server" FocusClass="highlight" StoreID="StoreVarmi"
AnchorHorizontal="20%" AllowBlank="false" SelectOnFocus="true" ForceSelection="true" TypeAhead="false" EmptyText="Se?." DisplayField="text" ValueField="value">

</ext:ComboBox>
</Editor>
</ext:Column>
<ext:Column ID="Column10" runat="server" Text="G.No" DataIndex="GRUPNO" Width="50"
Align="Center">
<Editor>
<ext:NumberField ID="NumberField3" runat="server" AllowBlank="false" MinValue="1"
MaxValue="9" SelectOnFocus="true" HideTrigger="true" Step="0"/>
</Editor>
</ext:Column>
<ext:Column ID="Column11" runat="server" Text="T/U" DataIndex="TU" Width="60" Align="Center">
<Renderer Fn="tuRenderer" />
<Editor>
<%--<ext:NumberField ID="NumberField5" runat="server" AllowBlank="false" MinValue="0"
MaxValue="2" SelectOnFocus="true" HideTrigger="true" Step="0"/>--%>
<ext:ComboBox ID="cbtu" runat="server" StoreID="StoreTu"
AnchorHorizontal="20%" AllowBlank="false" SelectOnFocus="true" ForceSelection="true" TypeAhead="false" EmptyText="Se?." DisplayField="text" ValueField="value">
</ext:ComboBox>
</Editor>
</ext:Column>
<ext:Column ID="Column12" runat="server" Text="?.Sınır" DataIndex="OGRSINIR" Width="50"
Align="Center">
<Editor>
<ext:NumberField ID="NumberField6" runat="server" AllowBlank="false" MinValue="0"
MaxValue="1000" SelectOnFocus="true" HideTrigger="true" Step="0"/>
</Editor>
</ext:Column>



<ext:ImageCommandColumn ID="ImageCommandColumn2" runat="server" Width="23" Sortable="false" Align="Center">
<Commands>
<ext:ImageCommand Icon="Decline" ToolTip-Text="Sil" CommandName="delete">
</ext:ImageCommand>
</Commands>
<%-- <PrepareToolbar Fn="prepare" />--%>
<DirectEvents>
<Command OnEvent="komutlar">
<Confirmation BeforeConfirm="BeforeConfirm();" ConfirmRequest="true" Title="Onaylama" Message="Listeden bu kaydı ?ıkartmak istediğinize eminmisiniz ?" />
<ExtraParams>
<ext:Parameter Name="Command" Value="command" Mode="Raw" />
<ext:Parameter Name="index" Value="recordIndex" Mode="Raw" />
</ExtraParams>

</Command>
</DirectEvents>
</ext:ImageCommandColumn>







</Columns>
</ColumnModel>



<Features>
<ext:GridFilters runat="server" ID="GridFilters1" Local="true">
<Filters>
<ext:NumericFilter DataIndex="OGRELEMANIKODU"></ext:NumericFilter>
</Filters>
</ext:GridFilters>
</Features>



<View>
<ext:GridView ID="GridView1" runat="server" StripeRows="true" TrackOver="true" LoadMask="true" LoadingText="Y?kleniyor...">
<GetRowClass Fn="getRowClass" />
</ext:GridView>
</View>


<Plugins>

<%-- <ext:BufferedRenderer ID="BufferedRenderer1" runat="server" />--%>

<%-- <ext:CellEditing ID="CellEditing1" runat="server" ClicksToEdit="1">
<Listeners>
<Edit Fn="edit"/>
<BeforeEdit Handler="return !e.grid.lockEditing;" Delay="10"/>
</Listeners>
<DirectEvents>

</DirectEvents>
</ext:CellEditing>
--%>

<ext:RowEditing ID="RowEditing1" runat="server" ClicksToEdit="1" ClicksToMoveEditor="1" AutoCancel="false" ErrorSummary="false" CancelBtnText="Vazge?" SaveBtnText="Tamam" >
<Listeners>
<Edit Fn="edit" />
<BeforeEdit Handler="return !e.grid.lockEditing;" />
<CancelEdit Handler="Ext.net.DirectMethods.GetData(' '); Ext.net.DirectMethods.GetData2(' ');"/>
</Listeners>
</ext:RowEditing>


</Plugins>



<Listeners>
<BeforeEdit Handler="return !e.grid.lockEditing;" />
</Listeners>
</ext:GridPanel>

</Items>
</ext:Panel>

</Items>
</ext:Viewport>






<ext:Window ID="Window1" runat="server" Closable="true" Resizable="false" Height="580"
Icon="Lock" Title="Rapor G?r?nt?leme" Draggable="false" Width="770" Modal="true"
Maximizable="true" BodyStyle="padding:0px;" Layout="FitLayout" ButtonAlign="Center"
IDMode="Static" Hidden="true">
<Loader ID="Loader1" runat="server" Url="../Printing.aspx" Mode="Frame" DisableCaching="true"
TriggerEvent="show" ReloadOnEvent="true">
<LoadMask ShowMask="true" Msg="Rapor Y?kleniyor..." />
</Loader>
<Listeners>
<Hide Handler="this.clearContent();" />
</Listeners>
</ext:Window>




<ext:Window ID="Window2" runat="server" Closable="true" Resizable="false" Height="100"
Icon="Lock" Title="Ders Programı Aktarma İşlemi" Draggable="false" Width="500" Modal="true"
Maximizable="true" BodyStyle="padding:5px;" Layout="FormLayout" ButtonAlign="Center"
IDMode="Static" Hidden="true">
<Items>
<ext:FileUploadField ID="FileUploadField1" runat="server" ButtonText="Dosya Se?" BlankText="Aktarma işlemi i?in dosya se?iniz"/>
</Items>

<Buttons>
<ext:Button ID="Button4" runat="server" Text="Aktar">
<DirectEvents>
<Click OnEvent="aktar" IsUpload="true" >
<EventMask ShowMask="True" Msg="Aktarma işlemi yapılıyor. L?tfen Bekleyiniz..." />
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:Window>



</div>
</form>
</body>
</html>

Vladimir
Aug 04, 2014, 9:50 AM
Hi
Your test sample is not runnable, so we cannot test it, please provide runnable version of this page
What do you mean under "This page running very slow "? How did you measure it?

Also, i see many stores on your page, how much records do you bind to stores?

cottimucin
Aug 04, 2014, 10:02 AM
Hi Vladimir

Store1 have 75 records

GridPanel1 loading slow on ie.
But loading speed on chrome.

cottimucin
Aug 04, 2014, 10:20 AM
StoreBirim have 29 records

StoreBolum have 310 records

StoreDersler have 150 records

StoreDerslerEkran 150 records

StoreHoca have 1151 records

StoreHocaEkran 1151 records

StoreVarmi have 2 records

StoreGun have 7 reocrds

StoreTu have 2 records

Store1 have 75 records

Vladimir
Aug 04, 2014, 10:20 AM
How did you determine that grid is loaded slowly if the grid is hidden in your sample?
Please provide runable sample which demonstrates the issue

cottimucin
Aug 04, 2014, 10:45 AM
<DirectEvents>
<Change OnEvent="bolum_secildi">
<EventMask ShowMask="True" Msg="İlgili Birime Ait Kayıtlar Se?iliyor. L?tfen Bekleyiniz..." />
</Change>
</DirectEvents>

When I change bolum selection (bolum_secildi)

running code behind this code


if (BOLUM.SelectedItem.Index == -1)
{
GridPanel1.Hidden = true;
}
else
{
GridPanel1.Hidden = false;
}


Store1.DataSource = dersprgbus.getListBirimDersProgram(Convert.ToInt32 (BOLUM.SelectedItem.Value));
Store1.DataBind();
//ResourceManager1.AddScript("App.GridPanel1.lockEditing = true;");



// yetkiid = 6
DataTable dt = ub.getSayfaYetki(Convert.ToInt32(Session["USERID"]), 6);

Sabitler.gorme = Convert.ToInt16(dt.Rows[0]["GOREBILIR"].ToString());
Sabitler.ekleme = Convert.ToInt16(dt.Rows[0]["EKLEYEBILIR"].ToString());
Sabitler.degistirme = Convert.ToInt16(dt.Rows[0]["DEGISTIREBILIR"].ToString());
Sabitler.yetkifakulte = Convert.ToInt16(dt.Rows[0]["YETKIFAKULTE"].ToString());
Sabitler.silme = Convert.ToInt16(dt.Rows[0]["SILEBILIR"].ToString());


//ders programı tarih aralığındamı ? kontrol?
DataTable dtu = birimbus.getBirimTarihKontrol(Convert.ToInt32(BIRI M.SelectedItem.Value));


Button1.Hidden = false;
Button5.Hidden = false;
Button2.Hidden = false;

if (dtu.Rows[0]["DPRGACIKMI"].ToString() == "0")
{
Sabitler.silme = 0;
Sabitler.ekleme = 0;
Sabitler.degistirme = 0;
}

//sili disabled yap

if (Sabitler.silme == 0)
{
ImageCommandColumn2.Hidden = true;
}
else
{
ImageCommandColumn2.Hidden = false;
}
//if (Sabitler.silme == 0) this.GridPanel1.ColumnModel.Columns[12].Hidden = true;
if (Sabitler.degistirme == 0)
{
GridPanel1.DirectEvents.BeforeEdit.AddScript("GridPanel1.lockEditing = true;");
//GridPanel1.CustomConfig.Add(new ConfigItem("lockEditing", "true"));
Button1.Hidden = true;
Button5.Hidden = true;
}
else
{
GridPanel1.DirectEvents.BeforeEdit.AddScript("GridPanel1.lockEditing = false;");
//GridPanel1.CustomConfig.Add(new ConfigItem("lockEditing", "false"));
}


if (Sabitler.ekleme == 0)
{
Button2.Hidden = true;
Button5.Hidden = true;
}

Vladimir
Aug 04, 2014, 10:50 AM
I cannot run your code, please provide test case which doesn't require any changes from our side and the test case should be runable

Also, please use [CODE] tags when you post source code

geoffrey.mcgill
Aug 04, 2014, 10:57 AM
@cottimucin - Please review the Forum Guidelines:

http://forums.ext.net/showthread.php?3440-Forum-Guidelines-For-Posting-New-Topics

http://forums.ext.net/showthread.php?10205-More-Information-Required