File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/Shared/HandyControl_Shared/Controls/Other Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ public class Pagination : Control
4848
4949 private bool _appliedTemplate ;
5050
51+ private readonly string groupName = Guid . NewGuid ( ) . ToString ( "N" ) ;
52+
5153 #endregion Data
5254
5355 #region Public Events
@@ -284,6 +286,9 @@ public override void OnApplyTemplate()
284286 _buttonLast = GetTemplateChild ( ElementButtonLast ) as RadioButton ;
285287 _jumpNumericUpDown = GetTemplateChild ( ElementJump ) as NumericUpDown ;
286288
289+ _buttonFirst . GroupName = groupName ;
290+ _buttonLast . GroupName = groupName ;
291+
287292 CheckNull ( ) ;
288293
289294 _appliedTemplate = true ;
@@ -395,7 +400,8 @@ private RadioButton CreateButton(int page)
395400 return new ( )
396401 {
397402 Style = PaginationButtonStyle ,
398- Content = page . ToString ( )
403+ Content = page . ToString ( ) ,
404+ GroupName = groupName
399405 } ;
400406 }
401407
You can’t perform that action at this time.
0 commit comments