Category: Devexpress

ASPxTextBox – how to accept only numeric data

ASPX<dx:ASPxTextBox ID="txtSozNo" runat="server" Width="100%" ClientInstanceName="ttxtSozNo"><ClientSideEvents KeyPress="function(s,e){ fn_AllowonlyNumeric(s,e);}" /> </dx:ASPxTextBox> javascriptfunction fn_AllowonlyNumeric(s, e) {            var theEvent = e.htmlEvent || window.event;            var key = theEvent.keyCode || theEvent.which;   [...]

Read More

ASPxGridView – Object reference not set to an instance of an object

Solution add to pproject global.asax protected void Application_Error(object sender, EventArgs e) { //We save the error information to a file named Error.txt StreamWriter sw = new StreamWriter(Server.MapPath("~/error.txt"), true); sw.WriteLine(DateTime.Now.ToString()); //Server nesnesini GetLastError metodu sunucuda oluşan son hatayı Exception tipinden getirir. Bu da şu an oluşan hata olacaktır if (Server.GetLastError().InnerException != null) sw.WriteLine(Server.GetLastError().InnerException.Me [...]

Read More

ASPxGridView Command button with image

<SettingsCommandButton NewButton-RenderMode="Image"> <NewButton Image-Url="images/Add-icon.png" Image-ToolTip="Add Record" RenderMode="Image"></NewButton> <EditButton Image-Url="images/Pencil-icon.png" Image-ToolTip="Edit Record" RenderMode="Image"></EditButton> <DeleteButton Image-Url="images/delete.png" Image-ToolTip="Delete Record" RenderMode="Image"></DeleteButton> <UpdateButton Image-Url="images/update.png" Image-ToolTip="Update " RenderMode="Image"></UpdateButton [...]

Read More

ASPxMenu – How to disable a menu item

<dx:ASPxMenu CssClass="centered" ID="ASPxMenu1" runat="server" ShowAsToolbar="true" ShowPopOutImages="true" OnItemClick="ASPxMenu1_ItemClick" Enabled="True" AutoPostBack="False" EnableCallBacks="True" Theme="Moderno" BackgroundImage-VerticalPosition="top" HorizontalAlign="Right"> <ClientSideEvents ItemClick="function(s, e){ OnMenuItemClick(e); }" /> <Items> <dx:MenuItem Name="Add" ToolTip="Yeni Kayıt Ekle" > <Image IconID="data_addnewdatasource_32x32"></Image> [...]

Read More

Access a control placed in AspxMenu SubMenuTemplate

<dx:MenuItem Name="Search" ToolTip="Arama"> <Image IconID="zoom_zoom_32x32"></Image> <SubMenuTemplate> <dx:ASPxGridLookup ID="CustLookup" runat="server" DataSourceID="SqlDataCustomer" OnValueChanged="Desti_ValueChanged" AutoPostBack="True" TextFormatString="{0}" KeyFieldName="MuKod"> <GridViewProperties> <SettingsPager Mode="ShowAllRecords"></SettingsPager> </GridViewProperties> <Columns> <dx:GridViewDataTextColumn FieldName="MuKod" [...]

Read More