Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
157 views
Hi everyone, 

My problem is that i can change the skin to "Metro" of any Rad Control but i can't change the skin  of telerik:RadEditor.

Why?
Thanks, Bruno F.
Stef
Telerik team
 answered on 10 Feb 2014
1 answer
265 views
Can anyone inform me if there is a way to have a multiple series chart that is databound to a dataset that has two tables in it.  I need to be able to assign the ydatafield property of series A to table[A] column[B] and the ydatafield property of series B to table[B] column[B].  

Thanks for any help. 

Danail Vasilev
Telerik team
 answered on 10 Feb 2014
4 answers
227 views
Dear support,
I am trying to load all hirarchy when user clicks on the root node via web service (web-api).
The outcome of my code brings the correct number of elements but they are all empty (LI items with no text to display).

the markup looks like this:
<telerik:RadTreeView runat="Server" ID="UserGroups" Skin="Vista" DataTextField="caption" DataValueField="caption" DataFieldParentID="parentUnitCode" DataFieldID="unitCode" >
<Nodes>
  <telerik:RadTreeNode runat="server" Text="All" ExpandMode="WebService" Value="0">
  </telerik:RadTreeNode>
</Nodes>
<WebServiceSettings Path="api/Reports" Method="UserGroups" UseHttpGet="True" />
</telerik:RadTreeView>


 

 

 

with fiddler I can see the following response when expand:

 

JSON
     --{}
       -- Caption = "blabla"
       -- Level = 0
       -- ParentUnitCode = 0
       -- Roles
             -- DataRoles
                  -- CDomian x = test1
                  -- CDomian y = test2
             -- DisplayRoles
                  -- CDomian a = test1
                  -- CDomian a = test2
       -- UnitCode = 3091
 --{}
       -- Caption = "blabla2"
       -- Level = 0
       -- ParentUnitCode = 0
       -- Roles
             -- DataRoles
                  -- CDomian x = test5
                  -- CDomian y = test6
             -- DisplayRoles
                  -- CDomian a = test11
                  -- CDomian a = test22
       -- UnitCode = 3091

The source of the outcome looks like this:
<ul class="rtUL" style="height: auto; overflow: visible;">
  <LI class=rtLI _itemTypeName="Telerik.Web.UI.RadTreeNode">
  <DIV class=rtTop><SPAN class=rtSp></SPAN><SPAN class=rtIn></SPAN></DIV></LI>
  <LI class=rtLI _itemTypeName="Telerik.Web.UI.RadTreeNode">
  <DIV class="rtMid "><SPAN class=rtSp></SPAN><SPAN class=rtIn></SPAN></DIV></LI>
  <LI class="rtLI rtLast" _itemTypeName="Telerik.Web.UI.RadTreeNode">
  <DIV class=rtBot><SPAN class=rtSp></SPAN><SPAN class=rtIn></SPAN></DIV></LI>
</ul>

Please advise
Boyan Dimitrov
Telerik team
 answered on 10 Feb 2014
7 answers
110 views
Hey Telerik,
I have a stored proc which is like this:
ALTER proc [dbo].[project_Users_Total_Time_Sheet_Report]
@Start_date datetime,
@Project_id int,  
@Finish_date datetime,
@account_id int 
as
declare @expensetype int 
set @expensetype=(select id from accounts_expensestype 
where account_id=@account_id and action=1)
select 
sum(project_projects_expenses_user.expense_value) AS 
total,project_companies_contacts.contact_name_en ,project_task.subject 
from 
project_projects_expenses_user 
join project_companies_contacts on project_companies_contacts.id=project_projects_expenses_user.user_id
join project_task on project_task.id=project_projects_expenses_user.task_id
where project_projects_expenses_user.project_id=@Project_id and project_projects_expenses_user.doc_date between @Start_date and @Finish_date and project_projects_expenses_user.expense_type_id=@expensetype
group by project_companies_contacts.contact_name_en ,project_task.subject order by project_companies_contacts.contact_name_en ,project_task.subject

Now i want to select the task name as label x and y to be total and the bars to the chart to be contact name.. so i want for each task view bars to contacts with the same task for example programming task has con 1, con 2 , con 3 as bars.. i want it to be something like the attached picture with the question.
how can i achieve something like that by C# code with my proc?

Danail Vasilev
Telerik team
 answered on 10 Feb 2014
1 answer
926 views
Hi,
I have created a webpage to insert details of member. Here is the code

MainPage

<div id="Master_Div" runat="server">
        <div class="art-layout-cell layout-item-1" style="width: 100%; padding: 0px">
            <telerik:RadButton ID="btn_addNewEmployee" runat="server" AutoPostBack="false" Text="Add New Record" OnClientClicked="showWindow()" Width="150px">
                <Icon PrimaryIconUrl="~/Design/MeStyle/Input/Add_Button.png" />
            </telerik:RadButton>
        </div>
        <div class="art-layout-cell layout-item-1" style="width: 100%; padding: 0px">
            <telerik:RadGrid ID="RadGrid_Employee" runat="server" AllowFilteringByColumn="True" AllowAutomaticInserts="false"
                AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="SqlDataSource" GridLines="None"
                AllowPaging="True" EnableEmbeddedSkins="False" PageSize="5" ShowStatusBar="True" Skin="Metro" OnItemDataBound="RadGrid_Employee_ItemDataBound">
                <MasterTableView DataKeyNames="ID" DataSourceID="SqlDataSource" AutoGenerateColumns="false" AllowPaging="true" PageSize="10" CommandItemDisplay="Top">
                    <CommandItemSettings ExportToPdfText="Export to PDF" ShowAddNewRecordButton="false" RefreshText="Refresh" />
                    <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                        <HeaderStyle Width="20px" />
                    </RowIndicatorColumn>
                    <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                        <HeaderStyle Width="20px" />
                    </ExpandCollapseColumn>
                    <Columns>
                        <telerik:GridTemplateColumn HeaderText="No." AllowFiltering="false">
                            <ItemTemplate>
                                <asp:Label ID="IDLabel" runat="server" Text=""></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" Width="40px" />
                            <ItemStyle HorizontalAlign="Center" Width="40px" />
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="EmployeeName" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeName column" HeaderText="Name" SortExpression="EmployeeName"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeName">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EmployeeNumber" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeNumber column" HeaderText="Number" SortExpression="EmployeeNumber"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeNumber">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EmployeeGSM" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeGSM column" HeaderText="GSM" SortExpression="EmployeeGSM"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeGSM">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EmployeeEmail" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeEmail column" HeaderText="Email" SortExpression="EmployeeEmail"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeEmail">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EmployeeIdentificationCardNumber" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeIdentificationCardNumber column" HeaderText="ID Number" SortExpression="EmployeeIdentificationCardNumber"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeIdentificationCardNumber">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="EmployeeContractNumber" FilterControlWidth="100%" FilterControlAltText="Filter EmployeeContractNumber column" HeaderText="Contract Number" SortExpression="EmployeeContractNumber"
                            AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="EmployeeContractNumber">
                            <HeaderStyle HorizontalAlign="Center" Width="150px" />
                            <ItemStyle HorizontalAlign="Center" Width="150px" />
                        </telerik:GridBoundColumn>                       
                    </Columns>
                    <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                </MasterTableView>
                <FilterItemStyle HorizontalAlign="Center" />
                <PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric" />
                <FilterMenu EnableImageSprites="False" />
                <HeaderContextMenu EnableEmbeddedSkins="false" />
            </telerik:RadGrid>
 
            <telerik:RadWindowManager ID="RadWindowManager_modalPopup" runat="server">
                <Windows>
                    <telerik:RadWindow ID="modalPopup" runat="server" Width="980px" Height="550px" VisibleStatusbar="false"
                        EnableEmbeddedSkins="false" Skin="Metro" Modal="true" Behaviors="Close"
                        NavigateUrl="~/Forms/Employee/EmployeeManagement/Add/EmployeeManagementAddTemplate.aspx" >
                    </telerik:RadWindow>
                </Windows>
            </telerik:RadWindowManager>
        </div>


It opens a radwindow inside a webform

webform

<div class="modalpopup_masterdiv">
        <telerik:RadTabStrip ID="RadTabStrip_EmployeeDetails" SelectedIndex="0" Width="100%" runat="server" MultiPageID="Employee_General" Skin="Metro">
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="Employee_PageView" runat="server" SelectedIndex="0">
            <telerik:RadPageView runat="server" ID="Employee_PageView1">
                <div class="modalpopup_masterdiv">
                    <span class="tab-title">Official Details</span>
                </div>
                <div class="modalpopup_masterdiv" style="overflow-x: hidden; height: 340px;">
                    <div class="modalpopup_div">
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeName" AssociatedControlID="txt_EmployeeName" runat="server" Text="Employee Name:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeName" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="EmployeeNameRequired" runat="server" ControlToValidate="txt_EmployeeName" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeNumber" AssociatedControlID="txt_EmployeeNumber" runat="server" Text="Employee Number:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeNumber" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="EmployeeNumberRequired" runat="server" ControlToValidate="txt_EmployeeNumber" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeGSM" AssociatedControlID="txt_EmployeeGSM" runat="server" Text="Employee GSM:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeGSM" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                                <asp:RequiredFieldValidator ID="EmployeeGSMRequired" runat="server" ControlToValidate="txt_EmployeeGSM" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeEmail" AssociatedControlID="txt_EmployeeEmail" runat="server" Text="Email:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeEmail" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_Department" AssociatedControlID="cmb_department" runat="server" Text="Department:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_department" AppendDataBoundItems="True" MaxHeight="250" CausesValidation="False" CollapseDelay="10" DataMember="DefaultView"
                                    ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True" EmptyMessage="- Select Department -"
                                    DataSourceID="SqlDataSource_Department" DataTextField="DepartmentName" DataValueField="ID" />
                                <asp:RequiredFieldValidator ID="DepartmentNameRequired" runat="server" ControlToValidate="cmb_department" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeDateOfHiring" AssociatedControlID="txt_EmployeeDateOfHiring" runat="server" Text="Date Of Hiring:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadDatePicker ID="txt_EmployeeDateOfHiring" runat="server" Width="80%">
                                    <DateInput ID="DateInput" runat="server" Font-Size="Medium" DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy">
                                        <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                        <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                    </DateInput>
                                </telerik:RadDatePicker>
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeGender" AssociatedControlID="cmb_EmployeeGender" runat="server" Text="Gender:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_EmployeeGender" AppendDataBoundItems="True" CausesValidation="False" CollapseDelay="10" DataMember="DefaultView"
                                    ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Male" Value="Male" />
                                        <telerik:RadComboBoxItem runat="server" Text="Female" Value="Female" />
                                        <telerik:RadComboBoxItem runat="server" Text="Other" Value="Other" />
                                    </Items>
                                </telerik:RadComboBox>
                            </div>
                        </div>
                    </div>
                    <div class="modalpopup_div">
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_CommercialActivity" AssociatedControlID="cmb_commercialActivity" runat="server" Text="Commercail Activity:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_commercialActivity" MaxHeight="250" AppendDataBoundItems="True" CausesValidation="False" CollapseDelay="10"
                                    DataMember="DefaultView" ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True" EmptyMessage="- Select Commercial Activity -"
                                    DataSourceID="SqlDataSource_CommercialActivity" DataTextField="CommercialActivityEnglishName" DataValueField="ID" />
                                <asp:RequiredFieldValidator ID="CommercialActivityRequired" runat="server" ControlToValidate="cmb_commercialActivity" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>                       
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeRelativeGSM" AssociatedControlID="txt_EmployeeRelativeGSM" runat="server" Text="Employee Relative GSM:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeRelativeGSM" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeAddress" AssociatedControlID="txt_EmployeeAddress" runat="server" Text="Address:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadTextBox ID="txt_EmployeeAddress" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                </telerik:RadTextBox>
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_JobTitle" AssociatedControlID="cmb_JobTitle" runat="server" Text="Job Title:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_JobTitle" MaxHeight="250" AppendDataBoundItems="True" CausesValidation="False" CollapseDelay="10" DataMember="DefaultView"
                                    ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True"
                                    DataSourceID="SqlDataSource_JobTitle" DataTextField="JobTitleName" DataValueField="ID" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeNationality" AssociatedControlID="cmb_EmployeeNationality" runat="server" Text="Nationality:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_EmployeeNationality" MaxHeight="250px" AppendDataBoundItems="True" CausesValidation="False" CollapseDelay="10" DataMember="DefaultView"
                                    ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True" EmptyMessage="-- Select Nationality --"
                                    DataSourceID="SqlDataSource_Nationality" DataTextField="NationalityName" DataValueField="ID" />
                                <asp:RequiredFieldValidator ID="EmployeeNationalityRequired" runat="server" ControlToValidate="cmb_EmployeeNationality" ErrorMessage="*" ForeColor="Red" ValidationGroup="btn_PageView1" />
                            </div>
                        </div>
                        <div class="modalpopup_masterdiv">
                            <div class="art-layout-cell layout-item-4" style="width: 40%;">
                                <asp:Label ID="label_EmployeeQualification" AssociatedControlID="cmb_EmployeeQualification" runat="server" Text="Qualification:" />
                            </div>
                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                <telerik:RadComboBox runat="server" ID="cmb_EmployeeQualification" MaxHeight="250px" AppendDataBoundItems="True" CausesValidation="False" CollapseDelay="10" DataMember="DefaultView"
                                    ExpandDelay="0" ItemRequestTimeout="0" Width="80%" MarkFirstMatch="True"
                                    DataSourceID="SqlDataSource_Qualification" DataTextField="QualificationName" DataValueField="ID" />
                            </div>
                        </div>
                    </div>
                    <div class="modalpopup_masterdiv">
                        <div class="art-layout-cell layout-item-4" style="width: 40%;">
                            <asp:Label ID="label_EmployeeOfficialJobTitleAtTheMinistryOfManpower" AssociatedControlID="txt_EmployeeOfficialJobTitleAtTheMinistryOfManpower" runat="server" Text="Official Job Title At The Ministry Of Manpower :" />
                        </div>
                        <div class="art-layout-cell layout-item-4" style="width: 60%;">
                            <telerik:RadTextBox ID="txt_EmployeeOfficialJobTitleAtTheMinistryOfManpower" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%">
                                <HoveredStyle Font-Bold="True" ForeColor="#FF3400" />
                                <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                            </telerik:RadTextBox>
                        </div>
                    </div>
                </div>
                <div class="modalpopup_masterdiv">
                    <div class="modalpopup_div_right">
                        <telerik:RadButton ID="btn_nextPageView1" ValidationGroup="btn_PageView1" Skin="Metro" runat="server" Width="100px" Text="Next" OnClick="btn_nextPageView1_Click" />
                    </div>
                </div>
            </telerik:RadPageView>    
            <telerik:RadPageView runat="server" ID="Employee_PageView5">
                <div class="modalpopup_masterdiv">
                    <span class="tab-title">Attachments</span>
                </div>
                <div class="modalpopup_masterdiv" style="overflow-x: hidden !important; height: 340px;">
                    <telerik:RadGrid ID="RadGrid_EmployeeAttachment" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowFilteringByColumn="True"
                        AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0" DataSourceID="SqlDataSource_EmployeeAttachment" GridLines="None"
                        EnableEmbeddedSkins="False" PageSize="5" ShowStatusBar="True" AllowPaging="True" OnInsertCommand="RadGrid_EmployeeAttachment_InsertCommand"
                        OnItemDataBound="RadGrid_EmployeeAttachment_ItemDataBound" OnItemCommand="RadGrid_EmployeeAttachment_ItemCommand" Skin="Metro">
                        <MasterTableView DataKeyNames="ID" DataSourceID="SqlDataSource_EmployeeAttachment" AutoGenerateColumns="false" PageSize="10" CommandItemDisplay="Top">
                            <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Add Attachment" RefreshText="Refresh" />
                            <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px" />
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px" />
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridTemplateColumn HeaderText="No." AllowFiltering="false">
                                    <ItemTemplate>
                                        <asp:Label ID="IDLabel" runat="server" Text=""></asp:Label>
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn Visible="false" DataField="ID" DataType="System.Int64" FilterControlAltText="Filter ID column" HeaderText="ID" ReadOnly="True" SortExpression="ID" UniqueName="ID">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="AttachmentName" FilterControlWidth="100%" FilterControlAltText="Filter AttachmentName column" HeaderText="AttachmentName" SortExpression="AttachmentName"
                                    AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" UniqueName="AttachmentName">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn Visible="false" DataField="AttachmentPath" DataType="System.Int64" FilterControlAltText="Filter AttachmentPath column" HeaderText="AttachmentPath" ReadOnly="True" SortExpression="AttachmentPath" UniqueName="AttachmentPath">
                                </telerik:GridBoundColumn>
                                <telerik:GridHyperLinkColumn AllowFiltering="false" DataNavigateUrlFields="AttachmentPath" Target="_blank" DataNavigateUrlFormatString="{0}" HeaderText="View" Text="View" ImageUrl="~/Design/MeStyle/Grid/view-detail-icon.png">
                                    <HeaderStyle HorizontalAlign="Center" Width="60px" />
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </telerik:GridHyperLinkColumn>
                                <telerik:GridTemplateColumn AllowFiltering="false" HeaderText="Delete">
                                    <ItemTemplate>
                                        <asp:ImageButton ID="DeleteLink" ImageUrl="~/Design/MeStyle/Grid/Delete.gif" runat="server" CommandName="Delete" />
                                    </ItemTemplate>
                                    <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                </telerik:GridTemplateColumn>
                            </Columns>
                            <EditFormSettings EditFormType="Template">
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column" />
                                <FormTemplate>
                                    <div class="art-layout-cell layout-item-1" style="width: 100%; padding-top: 10px;">
                                        <div class="art-layout-cell layout-item-1" style="width: 100%;">
                                            <div class="art-layout-cell layout-item-4" style="width: 30%;">
                                                <asp:Label ID="label_AttachmentName" AssociatedControlID="txt_AttachmentName" runat="server" Text="Attachment Name:" />
                                            </div>
                                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                                <telerik:RadTextBox ID="txt_AttachmentName" runat="server" InvalidStyleDuration="100" SelectionOnFocus="SelectAll" Width="80%" Text='<%#Bind("AttachmentName")%>'>
                                                    <HoveredStyle Font-Bold="True" ForeColor="#FF3300" />
                                                    <EnabledStyle BackColor="Azure" PaddingRight="10px" />
                                                </telerik:RadTextBox>
                                                <asp:RequiredFieldValidator ID="AttachmentNameRequired" runat="server" ControlToValidate="txt_AttachmentName" ErrorMessage="*" ForeColor="Red" />
                                            </div>
                                        </div>
                                        <div class="art-layout-cell layout-item-1" style="width: 100%; padding-top: 10px;">
                                            <div class="art-layout-cell layout-item-4" style="width: 30%;">
                                                <asp:Label ID="label_AttachmentPath" AssociatedControlID="RPAttachmentPath" runat="server" Text="Attachment Path:" />
                                            </div>
                                            <div class="art-layout-cell layout-item-4" style="width: 60%;">
                                                <telerik:RadAsyncUpload ID="RPAttachmentPath" runat="server" AllowedFileExtensions="pdf" MaxFileInputsCount="1" InputSize="43"
                                                    PostbackTriggers="button_Update_1" EnableInlineProgress="false">
                                                    <Localization Cancel="Cancel" Select="Select" Remove="Remove" />
                                                </telerik:RadAsyncUpload>
                                                <telerik:RadProgressArea ID="RadProgressArea1" runat="server" />
                                            </div>
                                        </div>
                                        <div class="art-layout-cell layout-item-1" style="width: 100%;">
                                            <div class="art-layout-cell layout-item-4" style="width: 100%; padding-left: 10px;">
                                                <telerik:RadButton ID="button_Update_1" runat="server" Width="100px" Text='<%# IIf((TypeOf (Container) Is GridEditFormInsertItem), "Add", "Update")%>'
                                                    CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformInsert", "Update")%>' />
                                                <telerik:RadButton ID="button_Cancel" Width="100px" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel" />
                                            </div>
                                        </div>
                                    </div>
                                </FormTemplate>
                            </EditFormSettings>
                        </MasterTableView>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                        <HeaderContextMenu EnableEmbeddedSkins="False">
                        </HeaderContextMenu>
                    </telerik:RadGrid>
                </div>
                <div class="modalpopup_masterdiv">
                    <div class="modalpopup_div">                       
                        <telerik:RadButton ID="btn_prePageView5" runat="server" Skin="Metro" Width="100px" Text="Previous" OnClick="btn_prePageView5_Click" />
                    </div>
                    <div class="modalpopup_div_right">
                        <telerik:RadButton ID="btn_finishPageView5" runat="server" Skin="Metro" Width="100px" Text="Finish" OnClick="btn_finishPageView5_Click" />
                    </div>
                </div>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
         
    </div>


what i'm searching for is, when i click 'btn_finishPageView5' i need to close the radwindow


Regards,
Mohammed
Marin Bratanov
Telerik team
 answered on 10 Feb 2014
1 answer
211 views
I am using autosize on several of my radwindows successfully.

There are a few windows where I would like to have the window autosized when it loads, but after the initial load, disable autosize on further postbacks.

I am running into a situation where I load a radgrid in a radwindow to display some data with filtering and sorting enabled. If the user specifies a filter criteria which yields no records, the radwindow resizes so small that they cannot "unfilter" because clicking the filter button again opens a list which disappears off the top and bottom of the 'resized' radwindow.

By using autosize when the window first opens, I get a properly sized window. I'd like to be able to disable autosize after the window is opened so on future postbacks the window will not resize.

I attempted to add this code to client-size scripting, but it had no effect. Can someone suggest a method by which I can accomplish this? Thanks, Mike.

​       function pageLoad() {
var oWnd = null;
if (window.radWindow)
oWnd = window.radWindow;
else
if (window.frameElement.radWindow)
oWnd = window.frameElement.radWindow;
if (oWnd) {
window.setTimeout(function () { oWnd.autoSize(false); oWnd.set_autoSize(false); }, 500);
            }
}
Marin Bratanov
Telerik team
 answered on 10 Feb 2014
1 answer
53 views
Good Afternoon All,

I am using an older version of Telerik (v 2011.1.519.35) and my company unfortunately is not going to upgrade to the new version so I am stuck with what I got. Anyway that being said I need to a collection of items that are in the 'edit' state to return to a jQuery function that is keeping track of all of that information.

If I can't use this method what are some equivalent ideas / approaches that I can use to get this information.

TIA,
Bill
Konstantin Dikov
Telerik team
 answered on 10 Feb 2014
2 answers
474 views
I'm trying to use RADConfirm for the first time calling it from my codebehind.
I'm using Q1 of RadControls, .Net 4.0, VS 2010.

I have a web form with a button on it. In a function called by the button click event, I put the following:
            RadWindowManager1.RadConfirm("Are you sure?", "confirmCallBackFn", 300, 100, null, "Delete all messages?");

On the page I have a asp:ScriptManager, a telerik:RadAjaxManager, and a telerik:RadWindowManager.

In the debugger I can see the line with the RADConfirm does get executed but I never see anything pop up in the browser. Am I making a rookie mistake? Please enlighten me.

Also, once I can get it to show up, what gets returned? True or False, yes? Could I do something like:

if (RadWindowManager1.RadConfirm("Are you sure?", "confirmCallBackFn", 300, 100, null, "Delete all messages?"))
{
   //delete the messages
}

Thanks!
Matt
lalit
Top achievements
Rank 1
 answered on 10 Feb 2014
3 answers
430 views
I have a question regarding the filtering - or autocomplete - functionality of the RadComboBox. Does the RadComboBox support fuzzy matching?

For example, I have the list:
- Sheba
- Whiskas
- Gourmet

When typing in 'wis' it should also match 'whiskas' (because of fuzzy matching).

Thank you.
Hristo Valyavicharski
Telerik team
 answered on 10 Feb 2014
1 answer
87 views
Hi, 

I am maintaining an existing app and have 3 RADGRIDs which are identical and used for 3 types of transactions. I have several columns with a button at the end, with a row added to the bottom to have comments on the 2nd line of each transaction.

The button is to add comments and I want to get the current comments and put this into the dialog box when the add btn is clicked.

The problem I am having is that I dont know how to access the correct Row (the following example just gives me the 1st row and not the ROW whos add button was clicked and from which RADGRID.

Here is the code I found on you site which gives me the comments for the first transaction only and the radgrids after thet.

Thanks, George.

var grid = $find("RadGrid1").get_element();
var CommentsElement = $telerik.findElement(grid, "CommentsField");
if (CommentsElement)
$("#txtAddComment").val(CommentsElement.outerText); 



<telerik:RadGrid runat="server" ID="RadGrid1" HeaderStyle-HorizontalAlign="Left" 
<MasterTableView>
    <Columns>
        <telerik:GridTemplateColumn HeaderText="ID" ItemStyle-Width="200px" Display="false">
            <ItemTemplate>
                <asp:Label runat="server" ID="ID" Text='<%# DataBinder.Eval(Container.DataItem, "ID")%>' />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Name" ItemStyle-Width="150px">
             <ItemTemplate>
                  <asp:Label runat="server" ID="NAME" Text='<%# DataBinder.Eval(Container.DataItem, "NAME")%>' />
             </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Add Comments">
             <ItemTemplate>
                <telerik:RadButton runat="server" Text="Add" ID="AddCommentBtn" OnClientClicked="AddCommentBtn_Clicked" AutoPostBack="false"  />
           </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
    <DetailItemTemplate>
        <asp:Table ID="ColumnRow" runat="server">
            <asp:TableRow>
                <asp:TableCell>
                      <asp:Label runat="server" ID="CommentsField" Text='<%# DataBinder.Eval(Container.DataItem, "COMMENTS")%>' 
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </DetailItemTemplate>
</MasterTableView>
</telerik:RadGrid>


<telerik:RadGrid runat="server" ID="RadGrid2" HeaderStyle-HorizontalAlign="Left" 
<MasterTableView>
    <Columns>
        <telerik:GridTemplateColumn HeaderText="ID" ItemStyle-Width="200px" Display="false">
            <ItemTemplate>
                <asp:Label runat="server" ID="ID" Text='<%# DataBinder.Eval(Container.DataItem, "ID")%>' />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Name" ItemStyle-Width="150px">
             <ItemTemplate>
                  <asp:Label runat="server" ID="NAME" Text='<%# DataBinder.Eval(Container.DataItem, "NAME")%>' />
             </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn HeaderText="Add Comments">
             <ItemTemplate>
                <telerik:RadButton runat="server" Text="Add" ID="AddCommentBtn2" OnClientClicked="AddCommentBtn_Clicked" AutoPostBack="false"  />
           </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
    <DetailItemTemplate>
        <asp:Table ID="ColumnRow" runat="server">
            <asp:TableRow>
                <asp:TableCell>
                      <asp:Label runat="server" ID="CommentsField" Text='<%# DataBinder.Eval(Container.DataItem, "COMMENTS")%>' 
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
    </DetailItemTemplate>
</MasterTableView>
</telerik:RadGrid>
















Eyup
Telerik team
 answered on 10 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?