Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
<ej:GroupButton ID="GroupButton1" runat="server" Width="100%" Height="100%" ShowRoundedCorner="true" GroupButtonMode="RadioButton" OnItemSelect="GroupButton1_ItemSelect">
<Items>
<ej:GroupButtonItem Text="Save"></ej:GroupButtonItem>
<ej:GroupButtonItem Text="Open"></ej:GroupButtonItem>
<ej:GroupButtonItem Text="Delete"></ej:GroupButtonItem>
</Items>
</ej:GroupButton> |
protected void GroupButton1_ItemSelect(object sender, Syncfusion.JavaScript.Web.GroupButtonEventArgs e)
{
SelectedText = GroupButton1.Items[(int)e.Arguments["index"]].Text;
}
|
Thank you for the reply, however the button's text values are being set in the code behind file. The example from Syncfusion uses this method in the Page_Load section of the .cs file. My prototype does the same.
As stated prior, all required files are loaded in the header.
Page loads, but OnItemSelect generates and error. When I remove the OnItemSelect from the groupbutton, it works fine but I'm not able to take action when an item is selected.
I added some logging and the issue seems to occur right at the click. I logged the setting of the buttons and it occurs when the page initially loads but not when clicked.
Can you provide a sample with the buttons set in codebehind and using the OnItemSelect event?
I did look at your sample but since it doesn't set the buttons in the codebehind isn't relavent. I also tested with setting the buttons in the aspx file and it seemed to work ok. The purpose is to build a user control for different button types but have the same basic methods for retrieving the settings, validation, etc. My project includes about 5 different button groups and I'd rather maintain one user control rather than 5 since they are very similar.
Thanks