Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
93 views
I have a wide RadComboBox with Width set to 100%. When re-sizing the browser's window (IE, Chrome, FF) at some point the button is separated from the combo box. Image attached. Telerik version is 2015.1.401.45
Randy
Top achievements
Rank 1
 answered on 22 May 2015
3 answers
109 views
Hi,

I have a problem with a RadRotator inside a Radsplitter :
My RadRotatorType is "Buttons".
WrapFrames are set to false.
When I Click on the right arrow, there are no transition effects.
When I Click on the left arrow for going in the initiale position, it seems to go back 2 step before. My rotator WrapFrames property is set to false so I Have blank items.

Here is a simplified portion code with this problem happening :
<telerik:RadSplitter id="RadSplitter1" runat="server"
  <telerik:RadPane id="MiddlePane" runat="server" Width="956" Scrolling="None"
    <div class="vo_visite_apercu_conteneur">     
        <asp:Image ImageUrl="~/images/flecheGvisite.jpg" ID="flecheGvisite" CssClass="flecheGvisite" AlternateText="gauche" runat="server" /> 
        <asp:Image ImageUrl="~/images/flecheDvisite.jpg" ID="flecheDvisite" CssClass="flecheDvisite" AlternateText="droite" runat="server" /> 
        <div class="vo_visite_apercu_div_rotator"
          <telerik:RadRotator ID="RadRotator1" runat="server" RotatorType="Buttons" Width="316px" Height="90px" ItemWidth="79" ItemHeight="75" ScrollDirection="Left" CssClass="vo_visite_apercu_rotator"
            <ItemTemplate> 
              <div class="vo_visite_apercu_item"
                <div class="vo_visite_apercu_img"
                  <asp:Image ID="imgVeh" runat="server" Width="75" ToolTip="Cliquez pour accèder au détail" ImageUrl='<%# "~/images/" & Container.Dataitem("imgItem") & "-1small.jpg" %>' /> 
                </div> 
                <div align="center" class="vo_visite_apercu_chkBox"
                  <asp:CheckBox ID="chkVeh" runat="server" /> 
                </div> 
              </div>                 
            </ItemTemplate> 
          <ControlButtons LeftButtonID="flecheGvisite" RightButtonID="flecheDvisite" /> 
        </telerik:RadRotator> 
      </div> 
    </div> 
  </telerik:RadPane> 
</telerik:RadSplitter> 

When I put my code outside the radsplitter everything works fine.
Is there a solution to make this work?

Thank You,

Julien
Slav
Telerik team
 answered on 22 May 2015
3 answers
95 views
I want to write a dashboard page which will be initially built dynamically but then stored in the db for re-use so that the users can then move the docks around as they wish.  However, what happens when we remove a referenced ascx control?   The stored serialised layout would contain the details of an ascx that doesn't exist anymore.. does it just ignore it, or does it fail to load the whole dock layout?
Slav
Telerik team
 answered on 22 May 2015
5 answers
539 views
I have a radgrid (master detail) as shown below in the code snippets. I want to access a control (TextBox) within another control's (Checkbox) checked_changed event. Please i need your assistance.

Let's say, i need to access the control as follows:

Protected void OnCheckedChanged(object sender, EventsArg e)
{
// I need to find a control here.the control shown in code 'ShortTextBox'
}
Thanks in advance.

Robert
         </Columns>
        </MasterTableView>
    </rad:RadGrid>
<rad:RadGrid ID="qualRadGrid" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="false"
        AllowAutomaticUpdates="false" AllowPaging="True"  OnInsertCommand="qualRadGrid_InsertCommand"
        OnDeleteCommand="CategoryGrid_DeleteCommand" OnUpdateCommand="qualRadGrid_UpdateCommand"
        AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ProgrammeDs" EnableAJAX="False"
        GridLines="None" RadControlsDir="~/Resources/RadControls/" Skin="Web20" SkinsPath="~/Resources/RadControls/Grid/Skins"
        Width="750px">
        <MasterTableView AllowMultiColumnSorting="True"  DataKeyNames="ProgId" DataSourceID="ProgrammeDs"
            CommandItemDisplay="Top" Name="Programme">
            <DetailTables>
                <rad:GridTableView  runat="server" CommandItemDisplay="Top" DataKeyNames="QualId"  DataSourceID="QualificationDs"
                    Name="Qualification" AllowMultiColumnSorting="True" AllowAutomaticDeletes="false"
                    AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                    <ParentTableRelation>
                        <rad:GridRelationFields DetailKeyField="ProgrammeId" MasterKeyField="ProgId" />
                    </ParentTableRelation>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg">
                        </rad:GridEditCommandColumn>
                        <rad:GridBoundColumn DataField="QualId" HeaderButtonType="TextButton" HeaderText="Qual Id"
                            SortExpression="QualId" UniqueName="QualId" Visible="false">
                        </rad:GridBoundColumn>
                        <rad:GridBoundColumn DataField="QualDescription" HeaderButtonType="TextButton" HeaderText="Short Description"
                            UniqueName="ShortDesc">
                        </rad:GridBoundColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table id="editableTables-1">
                                <tr>
                                    <td>
                                        <asp:Label ID="Label1" runat="server">Short Description:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ShortTextBox" Text='<%# Eval("QualDescription") %>' Width="155px"
                                            runat="server" TextMode="MultiLine" Height="30">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ValidationGroup="validD" id="ReqSponsorTextBox" runat="server" ErrorMessage="*" ControlToValidate="ShortTextBox"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                <td>
                                <asp:CheckBox ID="requiresSubjects" runat="server" Text="Requires Subjects:" AutoPostBack="true" OnCheckedChanged="FindTextBox_OnIndexChanged" />
                                </td>
                                <td>
                                 <telerik:RadComboBox ID="subjectsCombo" EnableLoadOnDemand="true" AutoPostBack="true" MarkFirstMatch="true"  OnItemsRequested="OnItemsRequested_getSubjects" runat="server" RadControlsDir="~/Resources/RadControls/Combobox/Skins" Width="155px" Skin="WebBlue" SkinsPath="~/Resources/RadControls/Combobox/Skins/">
                                        </telerik:RadComboBox>
                                </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="LinkInsert" ValidationGroup="validD" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                            Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? true : false %>' />
                                        <asp:ImageButton ID="LinkButton1" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                            Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? false : true %>' />
                                        <asp:ImageButton ID="LinkButtonCancel" ImageUrl="~/Resources/Buttons/CancelButton.jpg"
                                            runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel" />
                                    </td>
                                </tr>
                                <td>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="IDTextBox" Text='<%# Eval("QualId") %>' runat="server" Visible="false">
                                            </asp:TextBox>
                                        </td>
                                    </tr>
                            </table>
                        </FormTemplate>
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                    </EditFormSettings>
                </rad:GridTableView>
            </DetailTables>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <%--<rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg">
                </rad:GridEditCommandColumn>--%>
                <rad:GridBoundColumn DataField="ProgId" HeaderText="Programme ID" SortExpression="ProgId"
                    UniqueName="ProgId" Visible="false">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="ProgCode" HeaderText="Programme Code" SortExpression="ProgCode" ConvertEmptyStringToNull="false"
                    UniqueName="ProgCode">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="ProgrammeName" HeaderText="Programme Name" SortExpression="ProgrammeName" ConvertEmptyStringToNull="false"
                    UniqueName="ProgrammeName">
                </rad:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </rad:RadGrid>

<rad:RadGrid ID="qualRadGrid" runat="server" AllowAutomaticDeletes="false" AllowAutomaticInserts="false"
        AllowAutomaticUpdates="false" AllowPaging="True"  OnInsertCommand="qualRadGrid_InsertCommand" 
        OnDeleteCommand="CategoryGrid_DeleteCommand" OnUpdateCommand="qualRadGrid_UpdateCommand"
        AllowSorting="True" AutoGenerateColumns="False" DataSourceID="ProgrammeDs" EnableAJAX="False"
        GridLines="None" RadControlsDir="~/Resources/RadControls/" Skin="Web20" SkinsPath="~/Resources/RadControls/Grid/Skins"
        Width="750px">
        <MasterTableView AllowMultiColumnSorting="True"  DataKeyNames="ProgId" DataSourceID="ProgrammeDs"
            CommandItemDisplay="Top" Name="Programme">
            <DetailTables>
                <rad:GridTableView  runat="server" CommandItemDisplay="Top" DataKeyNames="QualId"  DataSourceID="QualificationDs"
                    Name="Qualification" AllowMultiColumnSorting="True" AllowAutomaticDeletes="false"
                    AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                    <ParentTableRelation>
                        <rad:GridRelationFields DetailKeyField="ProgrammeId" MasterKeyField="ProgId" />
                    </ParentTableRelation>
                    <RowIndicatorColumn>
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn>
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg">
                        </rad:GridEditCommandColumn>
                        <rad:GridBoundColumn DataField="QualId" HeaderButtonType="TextButton" HeaderText="Qual Id"
                            SortExpression="QualId" UniqueName="QualId" Visible="false">
                        </rad:GridBoundColumn>
                        <rad:GridBoundColumn DataField="QualDescription" HeaderButtonType="TextButton" HeaderText="Short Description"
                            UniqueName="ShortDesc">
                        </rad:GridBoundColumn>
                    </Columns>
                    <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table id="editableTables-1">
                                <tr>
                                    <td>
 r<asp:Label ID="Label1" runat="server">Short Description:</asp:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="ShortTextBox" Text='<%# Eval("QualDescription") %>' Width="155px"
                                            runat="server" TextMode="MultiLine" Height="30">
                                        </asp:TextBox>
                                        <asp:RequiredFieldValidator ValidationGroup="validD" id="ReqSponsorTextBox" runat="server" ErrorMessage="*" ControlToValidate="ShortTextBox"></asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                <td>
                                <asp:CheckBox ID="requiresSubjects" runat="server" Text="Requires Subjects:" AutoPostBack="true" OnCheckedChanged="FindTextBox_OnIndexChanged" />
                                </td>
                                <td>
                                 <telerik:RadComboBox ID="subjectsCombo" EnableLoadOnDemand="true" AutoPostBack="true" MarkFirstMatch="true"  OnItemsRequested="OnItemsRequested_getSubjects" runat="server" RadControlsDir="~/Resources/RadControls/Combobox/Skins" Width="155px" Skin="WebBlue" SkinsPath="~/Resources/RadControls/Combobox/Skins/">
                                        </telerik:RadComboBox>
                                </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:ImageButton ID="LinkInsert" ValidationGroup="validD" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                            Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? true : false %>' />
                                        <asp:ImageButton ID="LinkButton1" Text='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            ImageUrl="~/Resources/Buttons/SaveButton.jpg" runat="server" CommandName='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'
                                            Visible='<%# (Container is Telerik.WebControls.GridEditFormInsertItem) ? false : true %>' />
                                        <asp:ImageButton ID="LinkButtonCancel" ImageUrl="~/Resources/Buttons/CancelButton.jpg"
                                            runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel" />
                                    </td>
                                </tr>
                                <td>
                                    <tr>
                                        <td>
                                            <asp:TextBox ID="IDTextBox" Text='<%# Eval("QualId") %>' runat="server" Visible="false">
                                            </asp:TextBox>
                                        </td>
                                    </tr>
                            </table>
                        </FormTemplate>
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                    </EditFormSettings>
                </rad:GridTableView>
            </DetailTables>
            <RowIndicatorColumn>
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="True">
                <HeaderStyle Width="20px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <%--<rad:GridEditCommandColumn ButtonType="ImageButton" EditImageUrl="~/Resources/Buttons/EditButton.jpg">
                </rad:GridEditCommandColumn>--%>
                <rad:GridBoundColumn DataField="ProgId" HeaderText="Programme ID" SortExpression="ProgId"
                    UniqueName="ProgId" Visible="false">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="ProgCode" HeaderText="Programme Code" SortExpression="ProgCode" ConvertEmptyStringToNull="false"
                    UniqueName="ProgCode">
                </rad:GridBoundColumn>
                <rad:GridBoundColumn DataField="ProgrammeName" HeaderText="Programme Name" SortExpression="ProgrammeName" ConvertEmptyStringToNull="false"
                    UniqueName="ProgrammeName">
                </rad:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </rad:RadGrid>
Nick
Top achievements
Rank 1
 answered on 22 May 2015
4 answers
186 views

We want to allow our users to configure a RadHtmlChart piechart a bit and save those settings, and when they return to that aspx page, the chart will load with those settings.

 Is there a method to save their settings?  

 

For example, the user only wants to see 5 of the 10 legend items by default.  

But we still want to allow them to re-enable the none displayed legend items.. and etc...  

So the user loads the page.  The pie chart has 10 slices and thus 10 items in the legend.

The user clicks on several of the legend items so they are not displayed in the pie chart.

We want to save this configuration for them in the database.

When they revisit the page a few days later, it remembers their view settings for hte chart and displays it.

Then for example they then decide to show two of the excluded legend items by clicking on them again. 

They legends that were once excluded are now included.  

Etc..etc...

 

 

 

 

 

 

Wired_Nerve
Top achievements
Rank 2
 answered on 22 May 2015
1 answer
382 views

I am trying to open the radwindow on button click event from server side. when I do the same from  client side with postback="false" and Onclientclicked="openRadWin" everything works fine. But If I enable the postback and try to call the javascript function openRadWin from server side  that opens the radwindow , it is not working.

I am trying to open the radwindow based on the some condition and do some processing and return back to same original page after it completes. Below is my code snippet.

 

<script type="text/javascript">
function openRadWin() {
            var width = 400;
            var height = 400;
            var left = 200;
            var top = 200;/
            radopen("popupMsg.aspx", "RadWindow1", width, height, left, top);
}
    </script> 

 

 

<telerik:RadScriptManager ID="mgr" runat="server"></telerik:RadScriptManager>
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" Visible="false"/>

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="true">
<Windows>
<telerik:RadWindow ID="RadWindow1" runat="server" ShowContentDuringLoad="false" Width="400px"
Height="400px" Title="Telerik RadWindow" Behaviors="close">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>

<div class="demo-container size-thin">
<p>
<telerik:RadButton runat="server" id="radpopup" OnClick="btnad_Click" Text="Open RadWindow" />
</p>
</div>

 

  protected void btnad_Click(object sender, EventArgs e)
{
            RadScriptManager.RegisterStartupScript(Page, Page.GetType(), "test", "openRadWin();", true);
        }

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 22 May 2015
1 answer
93 views

I have a site that allows ("user1" and "user2") to access.  "user3" only has access to Test1.aspx.   Everything works, but the RadGrid skin doesn't show up.  Any ideas?

 <system.web>

     <authorization>

      <allow users="user1, user2"/>
      <deny users="*"/>
    </authorization>
  </system.web>

   <location path="Test1.aspx">
    <system.web>
      <authorization>
        <allow users ="user3" />
      </authorization>
    </system.web>
  </location>

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

Maria Ilieva
Telerik team
 answered on 22 May 2015
16 answers
1.7K+ views
Hi,

I need to show confirmation before performing action when i click on RadButton.

Please help me...

Thanks in advance...
Danail Vasilev
Telerik team
 answered on 22 May 2015
12 answers
242 views
I'm on my last good nerve trying to get going with telerik ajax development.  My issue is everything seems to be going find and then get back into visual studio later and get a ton of design time errors rendering the controls (see attached image).

Error Rendering Control - RadScriptManager1
An unhandled exception has occurred...

Error Rendering Control - RadAjaxManager1
An unhandled exception has occurred...

Error Rendering Control - RadSkinManager1
An unhandled exception has occurred...

I know this is probably caused by some of the other attempts I took at using these controls and there is somehow some cruft left from a previous install.  But here are my questions:

1.  How the heck do I get my system clean of any of the older cruft?

2. This begs the question of how would one ever be able to develop under a newer version (or 2 different versions at one time)

I have 20 years industry experience and I have been doing .NET development every single day for the last 2 years and your products DRIVE ME CRAZY!!!  They are often harder to get set up than open source software.  This is very upsetting after dropping 1000 bucks on this stuff!!!





Marin Bratanov
Telerik team
 answered on 22 May 2015
6 answers
236 views
Hi
I'm troubled a lot with this strange problem in one of my ASPX page. Background, in all pages including this one, the columns are resizable and reorderable and I have got this GridSettingsPersister.SaveSettings() for all pages to retain the user preferences.In all these pages I'm using inbuilt GridEditCommandColumn. In problem page, I'm using GridTemplateColumn as first column that has a link to open custom edit pop up. Now the problem is that when I reorder the column and save setting by gsPersister and redirect and then come back to the page; that GridTemplateColumn with edit link is gone, like it did not existed at all. I cannot figure out why my Custom(TemplateColumn) Edit Column is lost when I save the Grid Settings and revisit the page. I have other custom Template Columns as well with hyperlinks, which stay intact.
Please help.

The aspx code:
 
<div id="divlistInUsers">
                            <telerik:RadGrid ID="RGSiteConfig" runat="server" AllowPaging="True" AllowSorting="True"
                                AutoGenerateColumns="False"
                                OnNeedDataSource="RGSiteConfig_NeedDataSource" OnInsertCommand="RGSiteConfig_InsertCommand"
                                OnItemDataBound="RGSiteConfig_ItemDataBound" OnItemCommand="RGSiteConfig_ItemCommand"
                                OnPreRender="RGSiteConfig_PreRender"
                                AllowFilteringByColumn="true" EnableLinqExpressions="false"
                                Skin="Silk"
                                PageSize="10" Width=""
                                HeaderStyle-Font-Bold="true"
                                AlternatingItemStyle-BackColor="#f0f0f0">
                                <GroupingSettings CaseSensitive="false" />
                                <PagerStyle Mode="NextPrevAndNumeric" />
                                <MasterTableView CommandItemDisplay="Top" DataKeyNames="SiteID" InsertItemPageIndexAction="ShowItemOnFirstPage" CommandItemSettings-ShowRefreshButton="false">
                                    <Columns>
<%--<telerik:GridTemplateColumn HeaderStyle-Width="10px" AllowFiltering="false" AllowSorting="false" Resizable="true" Reorderable="false">
                                            <ItemTemplate>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
<telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderStyle-Width="40px" Resizable="false" Reorderable="false" />--%>
                                        <telerik:GridTemplateColumn HeaderStyle-Width="40px" AllowFiltering="false" AllowSorting="false" Resizable="true" Reorderable="false">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit"
CommandArgument='<%# Eval("SiteID").ToString() + "," +
Eval("ContractorID").ToString() + "," +
Eval("CountryOfOrigin").ToString() + "," +
Eval("SiteIsActive").ToString() + "," +
Eval("ContractorIsActive").ToString() + "," +
Eval("CSIEnabled").ToString() + "," +
Eval("MCSInstalled").ToString() + "," + Eval("IsCM").ToString()%>'
                                                    CommandName="EditSiteConfig" CausesValidation="false" />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridBoundColumn SortExpression="SiteName" DataField="SiteName" HeaderText="MCS Site Name" HeaderStyle-Width="150" />
                                        <telerik:GridTemplateColumn HeaderText="Mapped PSA Companies" AllowFiltering="false" AllowSorting="false" HeaderStyle-Width="150">
                                            <ItemTemplate>
                                                <asp:Label ID="lblAssignTCACompanies" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoOfTCAs")%>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn SortExpression="Total" HeaderText="Users(UPM/CP)" Visible="true" AllowFiltering="false" HeaderStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:Label ID="lblAssignOperatorsToSite" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoOfOperators") + "/" + DataBinder.Eval(Container.DataItem, "NoOfCPUsers")%>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn SortExpression="NoOfPermissions" HeaderText="Permissions" DataField="NoOfPermissions" AllowFiltering="false" HeaderStyle-Width="100">
                                            <ItemTemplate>
                                                <asp:Label ID="lblAssignPermissionsToSite" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "NoOfPermissions")%>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                        <telerik:GridTemplateColumn HeaderStyle-Width="145px" AllowFiltering="false" AllowSorting="false"
                                            Resizable="false" Reorderable="false" HeaderText="Export CM Details">
                                            <ItemTemplate>
                                                <asp:HyperLink ID="lnkExportInGrid" runat="server" Text="Export CM Details" NavigateUrl='<%# Eval("SiteID", "~/DownloadFile.aspx?SiteID={0}")%>' Target="_blank" />
                                                <input runat="server" type="hidden" id="hdTotal" value='<%# DataBinder.Eval(Container.DataItem, "Total")%>' />
                                                <input runat="server" type="hidden" id="hdNoOfIPs" value='<%# DataBinder.Eval(Container.DataItem, "NoOfIPs")%>' />
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>
                                    <EditFormSettings EditFormType="Template" CaptionFormatString="Add/Edit Site" FormCaptionStyle-Font-Bold="true">
                                        <PopUpSettings Width="555px" Modal="true" />
                                        <FormTemplate>
                                            <table cellpadding="2" cellspacing="5" border="0" width="100%" rules="none"
                                                style="border-collapse: collapse;">
                                                <tr>
                                                    <td>Site ID</td>
                                                    <td>
                                                        <asp:Label ID="lblSiteID" runat="server" Text='<%# Bind("SiteID")%>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Contractor ID</td>
                                                    <td>
                                                        <asp:Label ID="lblContractorID" runat="server" Text='<%# Bind("ContractorID")%>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>MCS Site Name</td>
                                                    <td>
                                                        <asp:TextBox ID="txtSiteName" runat="server" Text='<%# Bind("SiteName")%>'
                                                            MaxLength="50" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Country</td>
                                                    <td>
                                                        <asp:DropDownList ID="lbCountryCode" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Uses LS Web</td>
                                                    <td>
                                                        <asp:CheckBox ID="chkContractorActive" runat="server" Enabled="false" Checked='<%# (DataBinder.Eval(Container.DataItem,
"ContractorIsActive") == DBNull.Value ? true : Eval("ContractorIsActive"))%>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Uses CSI App</td>
                                                    <td>
                                                        <asp:CheckBox ID="chkCSIEnabled" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem, "CSIEnabled").ToString() == "True" ? true : false)%>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <input runat="server" type="hidden" id="hdSiteName" value='<%# Bind("SiteName")%>' />
                                                        <input runat="server" type="hidden" id="hdCountry" value='<%# Bind("CountryOfOrigin")%>' />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td></td>
                                                    <td>
                                                        <asp:Button ID="btnUpdate" Text="Insert" runat="server" CommandName="PerformInsert"
                                                            CausesValidation="false" CssClass="button"></asp:Button>
                                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="false"
                                                            CommandName="Cancel" CssClass="button"></asp:Button>
                                                    </td>
                                                </tr>
                                            </table>
                                        </FormTemplate>
                                    </EditFormSettings>
                                </MasterTableView>
                                <ClientSettings AllowColumnsReorder="true" ColumnsReorderMethod="Reorder" ReorderColumnsOnClient="true">
                                    <ClientEvents OnRowDblClick="" OnPopUpShowing="onPopUpShowing" />
                                    <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True" AllowColumnResize="True" />
                                </ClientSettings>
                            </telerik:RadGrid>
                        </div>
Kostadin
Telerik team
 answered on 22 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?