iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I have a problem with a column of type button on the grid.I do not want it done postback when clicked and IButtonAutoPostback property = "false". however postback is done when pressed.attached sample project with the effect .. enter any username and password, click on the "Incidencias" icon and then click any button on the grid .. A message is displayed in the form load.Best Regards
I modified Page_Load event handler of VACIO.aspx.vb file into the following and find that the message "Postback executed" is no longer appear when user click the button.
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then DisplayAlert("Postback executed", "", Tipomensaje.MsgInfo) End If End Sub
Please let us know whether it helps or not.
the postbak is still executed.. only the message is not show with your solution..
we need not postback on button press
regards
Hi Ernesto Barrera,
As an alternative, you could prevent postback event from being fired using javascript.The solution would be something like bellow.
1. Create javascript function that will prevent postback event :
function prevent(event) { /* do something here */ // Prevent the default event and Prevent the event from bubbling up event.preventDefault(); event.stopPropagation(); return false; }
2. Attach that function to the button mousedown event.
Protected Sub WGridGestiontareas_InitializeRow(sender As Object, e As RowEventArgs) If e.Row.Type = RowType.Record Then Dim customObjectAttributes As String = " onmousedown = ""prevent(event)"" type = ""button""" e.Row.Cells.GetNamedItem("ACTIVAR").CustomObjectAttributes = customObjectAttributes End If End Sub
Please let us know whether this solution work at your end.
Regards.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname