Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
750 views
hi  
   help me, how to find the controls  'rdpIntrwDate' and  'txtInterviewDateHij' within radgrid editform using javascript?
 Thanks for any suggestion



<telerik:GridTemplateColumn HeaderText=" Interview Date " UniqueName="InterviewDate" DataField="InterviewDate"
 HeaderStyle-ForeColor="Black"  >
<EditItemTemplate>
         <telerik:RadDatePicker ID="rdpIntrwDate" runat="server" Width="200px" DateInput-AutoCompleteType="Disabled"
                      AutoPostBack="false" SelectedDate='<%# Eval("InterviewDate")==DBNull.Value?DateTime.Today:Eval("InterviewDate") %>'
                        onkeydown="return (event.keyCode!=13);"
         CssClass="PersonalDatePicker" DateInput-DateFormat="dd/MM/yyyy" DateInput-DisplayDateFormat="dd/MM/yyyy">
           <ClientEvents OnDateSelected="GrigToHij" />
          </telerik:RadDatePicker>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lblIntrwDate" runat="server" Text='<%# Eval("InterviewDate") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
 
 <telerik:GridTemplateColumn HeaderText=" InterviewDateHij " UniqueName="InterviewDateHij" DataField="InterviewDateHij"
   HeaderStyle-ForeColor="Black"  >
    <EditItemTemplate>
        <telerik:RadTextBox ID="txtInterviewDateHij" runat="server"  Width="200px"
             Height="20px" ForeColor="#0066FF">
                    <ClientEvents OnValueChanged="HijToGreg" />
         </telerik:RadTextBox>
   </EditItemTemplate>
    <ItemTemplate>
      <asp:Label ID="lblDOBHij" runat="server" Text='<%# Eval("InterviewDateHij") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>
Eyup
Telerik team
 answered on 01 Sep 2016
1 answer
136 views

I have a RadNavigation where Parent nodes and Child nodes are programmatically created depending on what the user has access to.

The dropdowns for the nodes and more (sandwich) menu are set to a fixed height depending on screen width size and if portrait or landscape.

Some users are admin level users and have access to everything. The dropdowns do scroll to show more items in the menu but i noticed there is no indicator at the top and/or bottom of the dropdown that indicate there are more items at the top and/or bottom.  Is there a way to set up some kind of indicator?

Please help!

Sincerely,

Keith Jackson

Magdalena
Telerik team
 answered on 01 Sep 2016
2 answers
301 views

Hi,

I am using the code below in an attempt to print out a portion of a page contained in a div. The div contains a RadPageLayout and some other rad controls but when I print the style of the controls is lost (radpagelayout loses it table form and all fonts default to standard) - obviously the style being applied by skin is not included in the window being opened - is it possible to print like this and keep the skin, font etc?

 

function PrintElement(id, width, height) {
    var prtContent = document.getElementById(id);
    var WinPrint = window.open('', '', 'left=0,top=0,width='+width+',height='+height+',toolbar=0,scrollbars=0,status=0,dir=ltr');
    WinPrint.document.write(prtContent.innerHTML);
    WinPrint.document.close();
    WinPrint.focus();
    WinPrint.print();
    WinPrint.close(); 
}

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 01 Sep 2016
1 answer
90 views

Hi, how can I stop the user from highlighting text of the selected item in a combo?

 

See image.

 

 

Ivan Danchev
Telerik team
 answered on 01 Sep 2016
1 answer
122 views

When use drag and drop or select more than one file, how I change the order at RadAsyncUpload ?

For example, I select the files 1.jpg, 2.jpg and 3.jpg with shift key and drop, the order was 2.jpg,1.jpg ,3.jpg. 

Thanks

Veselin Tsvetanov
Telerik team
 answered on 01 Sep 2016
1 answer
98 views

When inserting a table on top of a page, the table tools are over the toolbar, refer to screenshot.

That disturbs Eg. when a dropdown is positioned there.

 

Marc

Marin Bratanov
Telerik team
 answered on 01 Sep 2016
1 answer
291 views

I need to hide list view items depend on the values in item.

 

  <telerik:RadListView ID="lvCustomers" Width="97%" runat="server" ItemPlaceholderID="ProductsHolder"
                allowsorting="true" DataKeyNames="Guid">
                <LayoutTemplate>
                    <fieldset style="max-width: 1100px" id="FieldSet1">
                        <asp:Panel ID="ProductsHolder" runat="server">
                        </asp:Panel>
                        <telerik:RadDataPager RenderMode="Lightweight" ID="dpCustomers" runat="server">
                            <Fields>
                                <telerik:RadDataPagerTemplatePageField>
                                    <PagerTemplate>
                                        <asp:Label ID="lblTotalRecordCount" runat="server" Text="<%# TotalCustomerText %>"></asp:Label>
                                        <asp:Label ID="labTotalCustomerCountValue" runat="server" Text="<%# TotalCustomerValue %>"></asp:Label>
                                    </PagerTemplate>
                                </telerik:RadDataPagerTemplatePageField>
                            </Fields>
                        </telerik:RadDataPager>
                    </fieldset>
                </LayoutTemplate>
                <ItemTemplate>
                    <div class="hubCustomer" id="divCustomer" runat="server">
                        <asp:HiddenField Id="hfIsMyCustomer" runat="server" />
                        <div class="row">
                            <div class="col-md-5 nopadding hubCustomerCode">
<asp:Label ID="lblCustomerCode" runat="server"></asp:Label>  
                            </div>
                            <div class="col-md-4 nopadding text-right">Budget</div>

                            <div class="col-md-3 nopadding text-left">
                                <div class="circleSuccess" id="divBudgetPerformance" runat="server"></div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12 nopadding">
                                <asp:Label ID="lblCustomerName" runat="server"></asp:Label>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-md-12 CustomerListProgress">
                                <uc1:ProgressBar ID="pbCustomerProgress" runat="server" Editable="false" />
                            </div>
                        </div>
</div>
                </ItemTemplate>
            </telerik:RadListView>


        function HideCustomers() {
            debugger;
            var list = $find('<%= lvCustomers.ClientID %>'); // the List view customer data hold
            var items = list.get_items(); // this method not working

            for (var i = 0; i < items.get_count() ; i++) {  //loop through item

                //need to do
Get value of hfIsMyCustomer
If value is false , hide entire item

            }
        };

Eyup
Telerik team
 answered on 01 Sep 2016
1 answer
102 views

Hi Telerik Team 

im using telerik version Q1 2016 i have a problem 

when i add RadSkinManager and RadFormDecorator to my masterpage everything is ok until i make any event like click a button all page control hid ?????

i attached two pic 

 

Vessy
Telerik team
 answered on 01 Sep 2016
3 answers
301 views

The push button is not visible for Reject. Instead it is showing as plain text. Below is the code I have used for it.

<telerik:RadGrid ID="grvUpdate" runat="server" GridLines="Horizontal"CellPadding="0" BorderWidth="0px" EnableEmbeddedSkins="False"Width="382px" CellSpacing="0"><MasterTableViewAllowPaging="true"PageSize="15"EditMode="PopUp"CommandItemDisplay="Top"AllowFilteringByColumn="false" DataSourceID="SqlDataSource1" AutoGenerateColumns="False" DataKeyNames="Id"><Columns><telerik:GridBoundColumn DataField="Id" DataType="System.Int64" FilterControlAltText="Filter Id column" HeaderText="Id" ReadOnly="True" SortExpression="Id" UniqueName="Id"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Amount" HeaderText="Amount" SortExpression="Amount" UniqueName="Amount"></telerik:GridBoundColumn><telerik:GridButtonColumn ButtonType="PushButton" HeaderText="Reject" Text="Reject" UniqueName="Reject" CommandName="Reject"></telerik:GridButtonColumn></Columns></MasterTableView></telerik:RadGrid>

 

Could you please let me know what changes need to be done for the above code to make push button visible properly.

Eyup
Telerik team
 answered on 01 Sep 2016
1 answer
270 views

I want to create a radwindow dialog which have a button for close the window and also after 5 sec the window close automatically.

Thanks in advance.

Marin Bratanov
Telerik team
 answered on 31 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?