dotvvm icon indicating copy to clipboard operation
dotvvm copied to clipboard

Problem with content in PostbackHandler

Open ludarous opened this issue 10 years ago • 3 comments

dothtml:

<dot:GridView DataSource="{value: UsersDataSet}" ShowHeaderWhenNoData="true" class="table table-striped settings-table grid-view">
                    <RowDecorators>
                        <dot:Decorator Events.Click="{command: _parent.SelectUser(Id)}">
                            <PostBack.Handlers>
                                <cc:SelectUserPostBackHandler Condition="{value: _parent.SelectedUser.Changed}" Message="User was changed!">content on PostBackHandler </cc:SelectUserPostBackHandler>
                            </PostBack.Handlers>
                        </dot:Decorator>
                    </RowDecorators>
                    <Columns>
                        <dot:GridViewTextColumn ValueBinding="{value: Name}" HeaderText="Name" ValueType="Text" AllowSorting="true">
                        </dot:GridViewTextColumn>
                        <dot:GridViewTextColumn ValueBinding="{value: UserName}" HeaderText="Username" ValueType="Text" CssClass="{value: _parent.ShowRightPanel ? 'hidden' : ''}" HeaderCssClass="{value: ShowRightPanel ? 'hidden' : ''}" />
                    </Columns>
                </dot:GridView>

Exception:

System.ExceptionThe compilation failed! This is most probably bug in the DotVVM framework. warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy (1,9201): error CS1061: 'SelectUserPostBackHandler' does not contain a definition for 'Children' and no extension method 'Children' accepting a first argument of type 'SelectUserPostBackHandler' could be found (are you missing a using directive or an assembly reference?) warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy warning CS1702: Assuming assembly reference 'System.Collections.Concurrent, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'DotVVM.Framework' matches identity 'System.Collections.Concurrent, Version=4.0.12.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Collections.Concurrent', you may need to supply runtime policy namespace DotvvmGeneratedViewsViews.users_636137720962737103 { [global::DotVVM.Framework.Compilation.LoadControlBuilderAttribute("Views/users.dothtml")] public class usersControlBuilder : global::DotVVM.Framework.Compilation.IControlBuilder { public global::DotVVM.Framework.Controls.DotvvmControl BuildControl(global::DotVVM.Framework.Compilation.IControlBuilderFactory controlBuilderFactory) { var c0 = new usersControlBuilderControl(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c0, "c0"); global::DotVVM.Framework.Controls.Internal.MarkupFileNameProperty.SetValue(c0, "Views/users.dothtml"); c0.ViewModelType = typeof (global::Vis.Cloud.AspNetCore.Admin.ViewModels.UsersViewModel); c0.Directives["viewModel"] = "Vis.Cloud.AspNetCore.Admin.ViewModels.UsersViewModel, Vis.Cloud.AspNetCore.Admin"; c0.Directives["masterPage"] = "Views/master.dotmaster"; var c1 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n", "\r\n", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c1, "c1"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c1, 4); c0.Children.Add(c1); var c2 = new global::DotVVM.Framework.Controls.Content(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c2, "c2"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c2, 4); global::DotVVM.Framework.Controls.Content.ContentPlaceHolderIDProperty.SetValue(c2, "content"); var c3 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n\r\n ", "\r\n\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c3, "c3"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c3, 6); c2.Children.Add(c3); var c4 = new global::DotVVM.Framework.Controls.HtmlGenericControl("input"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c4, "c4"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c4, 6); c4.Attributes["data-bind"] = "showRightPanelIndicator : ShowRightPanel"; c4.Attributes["hidden"] = null; c2.Children.Add(c4); var c5 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c5, "c5"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c5, 7); c2.Children.Add(c5); var c6 = new global::DotVVM.Framework.Controls.HtmlGenericControl("input"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c6, "c6"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c6, 7); c6.Attributes["data-bind"] = "selectedUserIndicator : SelectedUser"; c6.Attributes["hidden"] = null; c2.Children.Add(c6); var c7 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n\r\n\r\n ", "\r\n\r\n\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c7, "c7"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c7, 10); c2.Children.Add(c7); var c8 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c8, "c8"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c8, 10); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c8, "content-left"); c8.Attributes["class"] = "vis-table-full vis-panel"; var c9 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c9, "c9"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c9, 11); c8.Children.Add(c9); var c10 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c10, "c10"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c10, 11); c10.Attributes["class"] = "vis-panel-flex-column"; var c11 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c11, "c11"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c11, 12); c10.Children.Add(c11); var c12 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c12, "c12"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c12, 12); var c13 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c13, "c13"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c13, 13); c12.Children.Add(c13); var c14 = new global::DotVVM.Framework.Controls.Button(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c14, "c14"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c14, 13); c14.Attributes["class"] = "btn btn-success"; global::DotVVM.Framework.Controls.ButtonBase.TextProperty.SetValue(c14, "Nový"); global::DotVVM.Framework.Controls.ButtonBase.ClickProperty.SetValue(c14, new global::DotVVM.Framework.Binding.Expressions.CommandBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[105])); c12.Children.Add(c14); var c15 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c15, "c15"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c15, 14); c12.Children.Add(c15); c10.Children.Add(c12); var c16 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c16, "c16"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c16, 15); c10.Children.Add(c16); var c17 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c17, "c17"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c17, 15); c17.Attributes["style"] = "height: 90%"; var c18 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c18, "c18"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c18, 16); c17.Children.Add(c18); var c19 = new global::DotVVM.Framework.Controls.GridView(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c19, "c19"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c19, 16); global::DotVVM.Framework.Controls.ItemsControl.DataSourceProperty.SetValue(c19, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[106])); global::DotVVM.Framework.Controls.GridView.ShowHeaderWhenNoDataProperty.SetValue(c19, true); c19.Attributes["class"] = "table table-striped settings-table grid-view"; if (c19.GetValue(DotVVM.Framework.Controls.GridView.RowDecoratorsProperty) == null) c19.SetValue(DotVVM.Framework.Controls.GridView.RowDecoratorsProperty, new System.Collections.Generic.List<global::DotVVM.Framework.Controls.Decorator>()); var c20 = (System.Collections.Generic.List<global::DotVVM.Framework.Controls.Decorator>)c19.GetValue(DotVVM.Framework.Controls.GridView.RowDecoratorsProperty); var c21 = new global::DotVVM.Framework.Controls.Decorator(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c21, "c21"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c21, 18); global::DotVVM.Framework.Controls.Events.ClickProperty.SetValue(c21, new global::DotVVM.Framework.Binding.Expressions.CommandBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[107])); if (c21.GetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty) == null) c21.SetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty, new global::DotVVM.Framework.Controls.PostBackHandlerCollection()); var c22 = (global::DotVVM.Framework.Controls.PostBackHandlerCollection)c21.GetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty); var c23 = new global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c23, "c23"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c23, 20); global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler.ConditionProperty.SetValue(c23, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[108])); global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler.MessageProperty.SetValue(c23, "Are you sure?"); var c24 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral(" ", " ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c24, "c24"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c24, 20); c23.Children.Add(c24); c23.Parent = c21; c22.Add(c23); var c25 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c25, "c25"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c25, 23); c21.Children.Add(c25); c21.Parent = c19; c20.Add(c21); if (c19.GetValue(DotVVM.Framework.Controls.GridView.ColumnsProperty) == null) c19.SetValue(DotVVM.Framework.Controls.GridView.ColumnsProperty, new System.Collections.Generic.List<global::DotVVM.Framework.Controls.GridViewColumn>()); var c26 = (System.Collections.Generic.List<global::DotVVM.Framework.Controls.GridViewColumn>)c19.GetValue(DotVVM.Framework.Controls.GridView.ColumnsProperty); var c27 = new global::DotVVM.Framework.Controls.GridViewTextColumn(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c27, "c27"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c27, 26); global::DotVVM.Framework.Controls.GridViewTextColumn.ValueBindingProperty.SetValue(c27, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[109])); global::DotVVM.Framework.Controls.GridViewColumn.HeaderTextProperty.SetValue(c27, "Name"); global::DotVVM.Framework.Controls.GridViewTextColumn.ValueTypeProperty.SetValue(c27, global::DotVVM.Framework.Controls.FormatValueType.Text); global::DotVVM.Framework.Controls.GridViewColumn.AllowSortingProperty.SetValue(c27, true); c27.Parent = c19; c26.Add(c27); var c28 = new global::DotVVM.Framework.Controls.GridViewTextColumn(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c28, "c28"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c28, 28); global::DotVVM.Framework.Controls.GridViewTextColumn.ValueBindingProperty.SetValue(c28, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[110])); global::DotVVM.Framework.Controls.GridViewColumn.HeaderTextProperty.SetValue(c28, "Username"); global::DotVVM.Framework.Controls.GridViewTextColumn.ValueTypeProperty.SetValue(c28, global::DotVVM.Framework.Controls.FormatValueType.Text); global::DotVVM.Framework.Controls.GridViewColumn.CssClassProperty.SetValue(c28, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[111])); global::DotVVM.Framework.Controls.GridViewColumn.HeaderCssClassProperty.SetValue(c28, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[112])); c28.Parent = c19; c26.Add(c28); c17.Children.Add(c19); var c29 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c29, "c29"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c29, 31); c17.Children.Add(c29); var c30 = new global::DotVVM.Framework.Controls.DataPager(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c30, "c30"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c30, 31); global::DotVVM.Framework.Controls.DataPager.DataSetProperty.SetValue(c30, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[113])); c30.Attributes["class"] = "pagination"; global::DotVVM.Framework.Controls.Validation.EnabledProperty.SetValue(c30, false); c17.Children.Add(c30); var c31 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c31, "c31"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c31, 32); c17.Children.Add(c31); c10.Children.Add(c17); var c32 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c32, "c32"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c32, 33); c10.Children.Add(c32); c8.Children.Add(c10); var c33 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c33, "c33"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c33, 34); c8.Children.Add(c33); c2.Children.Add(c8); var c34 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c34, "c34"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c34, 35); c2.Children.Add(c34); var c35 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c35, "c35"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c35, 35); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c35, "content-right"); c35.Attributes["class"] = "vis-table-nothing hidden vis-panel"; var c36 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c36, "c36"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c36, 36); c35.Children.Add(c36); var c37 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c37, "c37"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c37, 36); c37.Attributes["class"] = "vis-panel-flex-column"; var c38 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c38, "c38"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c38, 37); c37.Children.Add(c38); var c39 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c39, "c39"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c39, 37); var c40 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c40, "c40"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c40, 38); c39.Children.Add(c40); var c41 = new global::DotVVM.Framework.Controls.Button(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c41, "c41"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c41, 38); c41.Attributes["class"] = "btn btn-default"; global::DotVVM.Framework.Controls.ButtonBase.TextProperty.SetValue(c41, "Zavřít"); global::DotVVM.Framework.Controls.ButtonBase.ClickProperty.SetValue(c41, new global::DotVVM.Framework.Binding.Expressions.StaticCommandBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[114])); c41.Attributes["style"] = "float: right;"; if (c41.GetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty) == null) c41.SetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty, new global::DotVVM.Framework.Controls.PostBackHandlerCollection()); var c42 = (global::DotVVM.Framework.Controls.PostBackHandlerCollection)c41.GetValue(DotVVM.Framework.Controls.PostBack.HandlersProperty); var c43 = new global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c43, "c43"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c43, 40); global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler.ConditionProperty.SetValue(c43, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[115])); global::Vis.Cloud.AspNetCore.Admin.Controls.SelectUserPostBackHandler.MessageProperty.SetValue(c43, "Are you sure?"); c43.Parent = c41; c42.Add(c43); var c44 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c44, "c44"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c44, 42); c41.Children.Add(c44); c39.Children.Add(c41); var c45 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c45, "c45"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c45, 43); c39.Children.Add(c45); c37.Children.Add(c39); var c46 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c46, "c46"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c46, 44); c37.Children.Add(c46); var c47 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c47, "c47"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c47, 44); c47.Attributes["style"] = "height: 100%"; var c48 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c48, "c48"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c48, 45); c47.Children.Add(c48); var c49_builder = controlBuilderFactory.GetControlBuilder("Controls/UserDetail.dotcontrol"); var c49_untyped = c49_builder.BuildControl(controlBuilderFactory); var c49 = (global::Vis.Cloud.AspNetCore.Admin.Controls.UserDetail)c49_untyped; global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c49, "c49"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c49, 45); global::DotVVM.Framework.Controls.DotvvmBindableObject.DataContextProperty.SetValue(c49, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[116])); var c50 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c50, "c50"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c50, 46); c49.Children.Add(c50); c47.Children.Add(c49); var c51 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c51, "c51"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c51, 47); c47.Children.Add(c51); c37.Children.Add(c47); var c52 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c52, "c52"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c52, 48); c37.Children.Add(c52); c35.Children.Add(c37); var c53 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c53, "c53"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c53, 49); c35.Children.Add(c53); c2.Children.Add(c35); var c54 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n\r\n ", "\r\n\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c54, "c54"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c54, 51); c2.Children.Add(c54); var c55 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c55, "c55"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c55, 51); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c55, "userSelectModal"); c55.Attributes["class"] = "modal fade"; c55.Attributes["tabindex"] = "-1"; c55.Attributes["role"] = "dialog"; var c56 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c56, "c56"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c56, 52); c55.Children.Add(c56); var c57 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c57, "c57"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c57, 52); c57.Attributes["class"] = "modal-dialog"; c57.Attributes["role"] = "document"; var c58 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c58, "c58"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c58, 53); c57.Children.Add(c58); var c59 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c59, "c59"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c59, 53); c59.Attributes["class"] = "modal-content"; var c60 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c60, "c60"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c60, 54); c59.Children.Add(c60); var c61 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c61, "c61"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c61, 54); c61.Attributes["class"] = "modal-header"; var c62 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c62, "c62"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c62, 55); c61.Children.Add(c62); var c63 = new global::DotVVM.Framework.Controls.HtmlGenericControl("button"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c63, "c63"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c63, 55); c63.Attributes["type"] = "button"; c63.Attributes["class"] = "close"; c63.Attributes["data-dismiss"] = "modal"; c63.Attributes["aria-label"] = "Close"; var c64 = new global::DotVVM.Framework.Controls.HtmlGenericControl("span"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c64, "c64"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c64, 55); c64.Attributes["aria-hidden"] = "true"; var c65 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("&times;", "&times;", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c65, "c65"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c65, 55); c64.Children.Add(c65); c63.Children.Add(c64); c61.Children.Add(c63); var c66 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c66, "c66"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c66, 56); c61.Children.Add(c66); var c67 = new global::DotVVM.Framework.Controls.HtmlGenericControl("h4"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c67, "c67"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c67, 56); c67.Attributes["class"] = "modal-title"; var c68 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("Byla provedena změna", "Byla provedena změna", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c68, "c68"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c68, 56); c67.Children.Add(c68); c61.Children.Add(c67); var c69 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c69, "c69"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c69, 57); c61.Children.Add(c69); c59.Children.Add(c61); var c70 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c70, "c70"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c70, 58); c59.Children.Add(c70); var c71 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c71, "c71"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c71, 58); c71.Attributes["class"] = "modal-body"; var c72 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c72, "c72"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c72, 59); c71.Children.Add(c72); var c73 = new global::DotVVM.Framework.Controls.HtmlGenericControl("p"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c73, "c73"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c73, 59); var c74 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("Byla provedena změna v uživateli ", "Byla provedena změna v uživateli ", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c74, "c74"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c74, 59); c73.Children.Add(c74); var c75 = new global::DotVVM.Framework.Controls.Literal(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c75, "c75"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c75, 59); global::DotVVM.Framework.Controls.Literal.TextProperty.SetValue(c75, new global::DotVVM.Framework.Binding.Expressions.ValueBindingExpression(global::DotVVM.Framework.Compilation.BindingCompiler.GlobalBindingList[117])); global::DotVVM.Framework.Controls.Literal.RenderSpanElementProperty.SetValue(c75, false); c73.Children.Add(c75); var c76 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral(". Chcete změnu uložit?", ". Chcete změnu uložit?", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c76, "c76"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c76, 59); c73.Children.Add(c76); c71.Children.Add(c73); var c77 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c77, "c77"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c77, 60); c71.Children.Add(c77); c59.Children.Add(c71); var c78 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c78, "c78"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c78, 61); c59.Children.Add(c78); var c79 = new global::DotVVM.Framework.Controls.HtmlGenericControl("div"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c79, "c79"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c79, 61); c79.Attributes["class"] = "modal-footer"; var c80 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c80, "c80"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c80, 62); c79.Children.Add(c80); var c81 = new global::DotVVM.Framework.Controls.HtmlGenericControl("button"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c81, "c81"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c81, 62); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c81, "continueEdit"); c81.Attributes["type"] = "button"; c81.Attributes["class"] = "btn btn-default"; c81.Attributes["data-dismiss"] = "modal"; var c82 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("Pokračovat", "Pokračovat", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c82, "c82"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c82, 62); c81.Children.Add(c82); c79.Children.Add(c81); var c83 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c83, "c83"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c83, 63); c79.Children.Add(c83); var c84 = new global::DotVVM.Framework.Controls.HtmlGenericControl("button"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c84, "c84"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c84, 63); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c84, "cancelEdit"); c84.Attributes["type"] = "button"; c84.Attributes["class"] = "btn btn-primary"; var c85 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("Zrušit", "Zrušit", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c85, "c85"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c85, 63); c84.Children.Add(c85); c79.Children.Add(c84); var c86 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c86, "c86"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c86, 64); c79.Children.Add(c86); var c87 = new global::DotVVM.Framework.Controls.HtmlGenericControl("button"); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c87, "c87"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c87, 64); global::DotVVM.Framework.Controls.DotvvmControl.IDProperty.SetValue(c87, "saveEdit"); c87.Attributes["type"] = "button"; c87.Attributes["class"] = "btn btn-primary"; var c88 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("Uložit", "Uložit", false); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c88, "c88"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c88, 64); c87.Children.Add(c88); c79.Children.Add(c87); var c89 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c89, "c89"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c89, 65); c79.Children.Add(c89); c59.Children.Add(c79); var c90 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c90, "c90"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c90, 66); c59.Children.Add(c90); c57.Children.Add(c59); var c91 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("<!-- /.modal-content -->", " /.modal-content ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c91, "c91"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c91, 66); c57.Children.Add(c91); var c92 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c92, "c92"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c92, 67); c57.Children.Add(c92); c55.Children.Add(c57); var c93 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("<!-- /.modal-dialog -->", " /.modal-dialog ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c93, "c93"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c93, 67); c55.Children.Add(c93); var c94 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n ", "\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c94, "c94"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c94, 68); c55.Children.Add(c94); c2.Children.Add(c55); var c95 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("<!-- /.modal -->", " /.modal ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c95, "c95"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c95, 68); c2.Children.Add(c95); var c96 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n\r\n ", "\r\n\r\n ", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c96, "c96"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c96, 70); c2.Children.Add(c96); var c97 = new global::DotVVM.Framework.Controls.InlineScript(); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c97, "c97"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c97, 70); global::DotVVM.Framework.Controls.InlineScript.DependenciesProperty.SetValue(c97, "jquery,scrollTo"); global::DotVVM.Framework.Controls.InlineScript.ScriptProperty.SetValue(c97, "\r\n\r\n var resizeHeads = function () {\r\n\r\n $('.table').each(function (index, table) {\r\n $table = $(table);\r\n var $bodyCells = $table.find('tbody tr:first').children();\r\n var colWidth;\r\n\r\n // Get the tbody columns width array\r\n colWidth = $bodyCells.map(function () {\r\n return $(this).width();\r\n }).get();\r\n\r\n // Set the width of thead columns\r\n $table.find('thead tr').children().each(function (i, v) {\r\n $(v).width(colWidth[i]);\r\n });\r\n });\r\n };\r\n\r\n var showRightPanel = false;\r\n\r\n var showRightPanelCallback = function () {\r\n resizeHeads();\r\n initTabs();\r\n }\r\n\r\n ko.bindingHandlers[\"showRightPanelIndicator\"] = {\r\n update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {\r\n var value = ko.unwrap(valueAccessor());\r\n var duration = 300;\r\n if (!value) {\r\n $(\"#content-left\").addClass('vis-table-full', duration);\r\n $(\"#content-right\").addClass('vis-table-nothing hidden', duration);\r\n $(\"#content-left\").removeClass('vis-table-third', duration);\r\n $(\"#content-right\").removeClass('vis-table-2third', duration, 'swing', showRightPanelCallback);\r\n }\r\n else {\r\n $(\"#content-left\").addClass('vis-table-third', duration, 'swing', showRightPanelCallback);\r\n $(\"#content-right\").addClass('vis-table-2third', duration);\r\n $(\"#content-left\").removeClass('vis-table-full', duration);\r\n $(\"#content-right\").removeClass('vis-table-nothing hidden', duration);\r\n }\r\n showRightPanel = value;\r\n //userDetailInit();\r\n }\r\n };\r\n\r\n ko.bindingHandlers[\"selectedUserIndicator\"] = {\r\n update: function (element, valueAccessor, allBindingsAccessor, viewModel, bindingContext) {\r\n var value = ko.unwrap(valueAccessor());\r\n resizeHeads();\r\n }\r\n };\r\n\r\n\r\n var $table = $('.table');\r\n var $selectedRow;\r\n\r\n $table.keydown(function (event) {\r\n $selectedRow = $table.find('tr.selected');\r\n switch (event.which) {\r\n case 40:\r\n {\r\n event.preventDefault();\r\n var $nextRow = $selectedRow.closest('tr').next('tr');\r\n $selectedRow.removeClass('selected');\r\n $nextRow.addClass('selected');\r\n $nextRow.focus();\r\n $nextRow.click();\r\n break;\r\n }\r\n case 38:\r\n {\r\n event.preventDefault();\r\n var $previousRow = $selectedRow.closest('tr').prev('tr');\r\n $selectedRow.removeClass('selected');\r\n $previousRow.addClass('selected');\r\n $previousRow.focus();\r\n $previousRow.click();\r\n break;\r\n }\r\n }\r\n\r\n });\r\n\r\n dotvvm.events.init.subscribe(function () {\r\n dotvvm.postBackHandlers[\"userSelect\"] = function SelectUserPostBackHandler(options) {\r\n\r\n var message = options.message; // you'll get the parameters passed to the handler in the options object\r\n var condition = options.condition;\r\n\r\n return {\r\n execute: function (callback) {\r\n // do whathever you need and if you need to do the postback, invoke the 'callback()' function\r\n if (condition) {\r\n $('#userSelectModal').modal('show')\r\n .one('click', '#cancelEdit', function () {\r\n callback();\r\n $('#userSelectModal').modal('hide');\r\n })\r\n .one('click', '#saveEdit', function () {\r\n callback();\r\n $('#userSelectModal').modal('hide');\r\n });\r\n }\r\n else {\r\n callback();\r\n }\r\n }\r\n };\r\n };\r\n });\r\n\r\n\r\n $('body').on('click', '.grid-view tr', function (e) {\r\n $('.grid-view tr').removeClass('selected');\r\n var $row = $(e.currentTarget);\r\n $row.addClass('selected');\r\n });\r\n\r\n $table.find('tbody tr').each(function (index, row) {\r\n row.tabIndex = index;\r\n $(row).click(function () {\r\n $selectedRow = $(this);\r\n });\r\n });\r\n\r\n resizeHeads();\r\n\r\n\r\n "); c2.Children.Add(c97); var c98 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n", "\r\n", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c98, "c98"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c98, 203); c2.Children.Add(c98); c0.Children.Add(c2); var c99 = new global::DotVVM.Framework.Controls.Infrastructure.RawLiteral("\r\n\r\n", "\r\n\r\n", true); global::DotVVM.Framework.Controls.Internal.UniqueIDProperty.SetValue(c99, "c99"); global::DotVVM.Framework.Controls.Internal.MarkupLineNumberProperty.SetValue(c99, 205); c0.Children.Add(c99); return c0; } public global::System.Type DataContextType => typeof (global::Vis.Cloud.AspNetCore.Admin.ViewModels.UsersViewModel); public global::System.Type ControlType => typeof (usersControlBuilderControl); public class usersControlBuilderControl : global::DotVVM.Framework.Controls.Infrastructure.DotvvmView { } } } References: Microsoft.CSharp System.Dynamic.Runtime DotVVM.Framework mscorlib System.Runtime System.Collections.Concurrent System.Collections System.Private.CoreLib Vis.Cloud.AspNetCore.Admin DotVVM.Core

ludarous avatar Nov 03 '16 12:11 ludarous

@ludarous Could you please share how are properties on SelectUserPostBackHandler declared? I have tried to break it in the related commit, but it works fine. Maybe it was accidentally fixed in this version, but could you please verify it?

exyi avatar Nov 05 '16 15:11 exyi

public class SelectUserPostBackHandler : PostBackHandler
    {
        protected override string ClientHandlerName => "userSelect";

        protected override Dictionary<string, string> GetHandlerOptionClientExpressions()
        {
            return new Dictionary<string, string>()
            {
                ["message"] = TranslateValueOrBinding(MessageProperty),
                ["condition"] = TranslateValueOrBinding(ConditionProperty)
            };
        }

        public string Message
        {
            get { return (string)GetValue(MessageProperty); }
            set { SetValue(MessageProperty, value); }
        }
        public static readonly DotvvmProperty MessageProperty
            = DotvvmProperty.Register<string, SelectUserPostBackHandler>(c => c.Message, null);

        public bool Condition
        {
            get { return (bool)GetValue(ConditionProperty); }
            set { SetValue(ConditionProperty, value); }
        }
        public static readonly DotvvmProperty ConditionProperty
            = DotvvmProperty.Register<bool, SelectUserPostBackHandler>(c => c.Condition, false);
    }

ludarous avatar Nov 08 '16 08:11 ludarous

Fixed by 71e5a61b7d999cbfa29a43c5a1409aa2a55c4184.

exyi avatar Nov 15 '16 11:11 exyi