Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
300 views
I have a page where I dynamically create a radcombox, a radnumerictextbox with percent type and a radnumerictextbox with currency type.  Depending on the item selected, I would hide one and display the other.  There is an issue where if a numerictextbox was initially hidden in the code behind and then set to display on the client side, it disappears on mouseover.  It looks like it is applying the riHover class.  Any idea how to fix this?  Thanks.

   -- code behind
   if (cboCommType.SelectedValue == "1")
    {
         txtOngoingPer.Style.Add("display", "inline");
         txtOngoingCurrency.Style.Add("display", "none");                               
     }
    else if (cboCommType.SelectedValue != "4")
    {
         txtOngoingPer.Style.Add("display", "none");
         txtOngoingCurrency.Style.Add("display", "inline");                               
     }

  --client side code
  function cboCommType_OnClientSelectedIndexChanged(sender, eventArgs, ctlId) {
     var item = eventArgs.get_item();
     var selectedValue = item.get_value();

     var txtPer = document.getElementById("ctl00_FormContentPlaceHolder_txtOngoingPer_" + ctlId);
     var txtCur = document.getElementById("ctl00_FormContentPlaceHolder_txtOngoingCurrency_" + ctlId);


    if (selectedValue == "1") {
       txtPer.removeAttribute("disabled")
       txtPer.setAttribute("style", "height: 24px; display:inline");
       txtCur.setAttribute("style", "display:none");
    }
    else {
       txtCur.removeAttribute("disabled")
       txtCur.setAttribute("style", "height: 24px; display:inline");
       txtPer.setAttribute("style", "display:none");
    }
}



--initial for txtOngoingPer (mouseover1.png)


--cboCommType select index change to 1 (mouseover2.png)


--after mousing over textbox, the textbox disappears! (mouseover3.png)
Maria Ilieva
Telerik team
 answered on 23 Feb 2016
5 answers
203 views

Hi,

 

I have a UserControl including a RadPageLayout. The RadPageLayout is built as the following : 1 one row with 2 layoutColumns and each layoutColumn has "x" rows. When I simply display it, everything is ok.

But in my scenario I don't want to display the UserControl including the RadPageLayout immediatly, so I set its Visible property to False. Then when I set its Visible property to True (by clicking on a button for example) the RadPageLayout layout is broken : the two layoutColumns don't stand side by side anymore.

So to summarize, if at the beginning my UserControl's Visible property is set to True then it's ok, but it's set to False then True I have layout issue.

 

Could you help me to find a solution or a workaround ?

 

Thanks,

Rémi

 

Rémi
Top achievements
Rank 1
 answered on 23 Feb 2016
1 answer
158 views

Hi,

We are in the midst of converting all our Infragistics WebGrids to Telerik RadGrid.

Can anyone point me in the direction of a similar type example as what is outlined in the attachment?

Single Column Grid that defaults to no rows showing, but has an ADD ROW button, and when clicked the row loads. The row has a drop down in it.

 

Any direction is appreciated as we're under a tight deadline for this refactoring and have over 100 Grids to switch out to Telerik.

 

Kostadin
Telerik team
 answered on 23 Feb 2016
1 answer
568 views

I've been trying to figure how to do the simplest drag and drop operation on this grid and its getting really frustrating. It seems all the time I'm supposed to save by using these controls i have to spend in forums and web searches...

To the point: Grid show drag drop animation but rows do not change order. I'm guessing there is something else I have to handle but it is not mentioned neither in your documentation or demo. If it is I would like to get the link to that resource.

As per your documentation:

"Furthermore, depending on the position you drag an item (above or below
other record) it will be placed respectively above or below the
corresponding grid item."

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/drag-and-drop-of-grid-items

 

My code:

   <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
            <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">
                <ClientSettings AllowRowsDragDrop="true">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="true" DataSourceID="SqlDataSource1">
                </MasterTableView>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GraveyardConnectionString %>" SelectCommand="SELECT * FROM [OrderTest]"></asp:SqlDataSource>
       

What am I missing? And if it is covered somewhere in your documentation please share the link.

 

 

Kostadin
Telerik team
 answered on 23 Feb 2016
4 answers
154 views

Hi, currently I am using a RadGridView with the batchMangerExtentions.js Library to manage two combo boxes....one combo box effects the other.  Once the user has made their selections and hits save changes I have a foreach loop that will loop through each e.Commands...inside of the loop I am creating a newValues Hashtable....when I look at the newVales hash table all of the values that are listed are making no sense what so ever.  In some cases the value will = "" and in others it will be a negative int.  I know the values are going into the list properly because I have watched the combobox.items.add be populated.  Currently it is being populated with item.Text, item.Value.ToString();  Has anyone else ran into this problem or know something that I am doing wrong?  

 

Ramey

Viktor Tachev
Telerik team
 answered on 23 Feb 2016
2 answers
122 views

Hi,

Please copy the content from the 100K.txt content and try to paste into the Comments Textbox in the below link.

https://demos.telerik.com/aspnet-ajax/textbox/overview/defaultcs.aspx

Browser is not responding after pasting the content.

Please let me how can we overcome this problem.

 

Thanks

Kesava

kesava pindi
Top achievements
Rank 1
 answered on 23 Feb 2016
1 answer
270 views

I am using Scheduler 4 times in a single page of my application but its header text showing selected day, date and year is hiding behind Day View button. I want to customize text of date in header also want that header text should be changed according to font or font specified by me or Responsively change its location as control has short width. I am attaching image file showing the text. I want that the date text should be in center between tabs.

Wishing to get response immediately 

Magdalena
Telerik team
 answered on 23 Feb 2016
1 answer
118 views
Hi,
Please copy the content from the 100K.txt content and try to paste into the Comments Textbox in the below link.
https://demos.telerik.com/aspnet-ajax/textbox/overview/defaultcs.aspx
Browser is not responding after pasting the content.
Please let me how can we overcome this problem.

Thanks
Kesava
Vessy
Telerik team
 answered on 23 Feb 2016
2 answers
141 views
Our page uses a Telerik Radgrid with pagesize=”50” to display a Checklist with two checkboxes in each row. Client side binding is being used in order to assign data for the grid.
If the data has ‘n’ checklist items, ‘n’ rows with data is created and visible on the grid and the remaining ’50-n’ empty rows will be created but with inline style “display:none” and not visible on the grid.
This works fine in both the browsers IE11 and Chrome when code is hosted in local IIS or deployed in windows 2008 server.

But, when the code is deployed in windows 2012 server, only in IE11, all the empty rows are visible. Please find attached snapshot.
(only checkboxes are visible because data is not available for other columns).

When we inspect the element(empty row - <tr>), we can see display:none property being applied for the <tr> but the row is still visible on the screen.
Viktor Tachev
Telerik team
 answered on 23 Feb 2016
3 answers
1.3K+ views
Hi,
I am using a rad date picker control in my web application. Now, i want user to enter date using keyboard, via calendar of date picker.

So, user press TAB key to reach input box , then another TAB to reach date picker button, press ENTER key to open calendar.

Now i want that this ENTER to bring focus over calendar control. So that next tab moves within calendar dates and navigation ctrls.

Then i move out of calendar either by pressing ESC key or by selecting a date. And this should bring the tabbing focus back to either date input area or calendar button. I have handled this moving out part by writing javascript on OnPopupclosing.

<radCln:RadDatePicker ID="RadDateOfEvent" runat="server" Width="90px" TabIndex="2"Style="z-index: 104;">
    <ClientEvents OnPopupClosing="onDateTimeSelected" />
    <DateInput TabIndex="2"></DateInput>
    
<Calendar TabIndex="2" AccessKey="Q"></Calendar>
</radCln:RadDatePicker>

If there could be a client event like OnPopUpOpened , then also i can write a javascript to move focus to calendar pop up. But we only have OnPopupOpening and this doesn't work as we can't move focus before the control is displayed.

Eyup
Telerik team
 answered on 23 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?