Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
122 views
Hi,

I am using javascript to open the Radwindow. It works fine on the monitor screen but it doesn't open up in the middle of the page on the iPhone. It opens up on the upper left hand corner where the top part is cut off and I am not able to adjust the position of the window. How do I fix it so it opens up the whole window in the middle of the screen on iPhone.
Thanks,
Marin Bratanov
Telerik team
 answered on 13 Jun 2014
2 answers
293 views
I have 2 RadTimePickers on my page, example:
<telerik:RadTimePicker ID="rtpStartTime" TimeView-HeaderText="Start Time" runat="server" Width="90px" TimeView-Interval="0:15:0" TimeView-StartTime="7:0:0" TimeView-EndTime="17:0:0"></telerik:RadTimePicker>

I want to validate the value as a valid time, client-side, which looks very possible because it validates already visually by turning red with a caution icon.
I get the input value like this:
$("input[id$=rtpStartTime_dateInput").val()
but that returns the value whether valid or not.

In the mark-up I can see there is a clientstate hidden input, and there is a "validationText" sub-value that is an empty string when not valid or a date when valid.  I could use this I think but not sure how to grab it.  Here is what that markup looks like:
<input id="ctl00_ContentPlaceHolder1_rtpStartTime_dateInput_ClientState" name="ctl00_ContentPlaceHolder1_rtpStartTime_dateInput_ClientState" type="hidden" autocomplete="off" value="{"enabled":true,"emptyMessage":"","validationText":"2014-06-12-05-00-00","valueAsString":"2014-06-12-05-00-00","minDateStr":"1980-01-01-00-00-00","maxDateStr":"2099-12-31-00-00-00","lastSetTextBoxValue":"5:00 AM"}">

Any help is appreciated, thanks.

Coty
Coty
Top achievements
Rank 1
 answered on 13 Jun 2014
1 answer
258 views
Hi all,

I need you guys help on jquery to get all the input Type of RadTextBox in a panel and then clear the value each. I found example of jquery here 
http://forums.asp.net/t/1968988.aspx?Clear+Textbox+in+panel+using+jQuery 

But the input[type=text] itself has clear other control as well such as RadComboxBox as it has input[type=text] in it. How to find only the RadTextBox that contain in a panel and clear the value of it?

Thanks in advance.
Regards
Pui
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2014
2 answers
437 views

I recently had a project upgraded from Telerik 2009.2.702.35 to 2014.1.403.40.  In my RadGrid_ItemDataBound event, I get the values from two of my bound columns and construct a string that I assign to a hyperlink column.  Prior to the upgrade, my code worked (and still works in an unconverted version).  After the upgrade, my code doesn't seem to work any longer.  It looks like one of my bound columns isn't getting assigned a value and contains the blank value default text "&nbsp"  now and I'm not sure why. When I interrogate the item row variable, I can see the data values in the ItemArray collection, but it doesn't seem to be available to me as a table column value when I try to extract it using the column's UniqueName.   In the code snippet below, the second value called "NIIN" is there, but the first value called "PIIN" ,isn't( I've verified that the SQL code that I'm using is extracting a value).  I can't explain why some of my bound columns don't contain data any longer and other columns do.    Any help that you can provide would be appreciated.

protected void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
       if (e.Item is GridDataItem)
         {
            if (e.Item.OwnerTableView.Name == "LTC_ITEM")
                {
                  GridDataItem item = (GridDataItem)e.Item;
                  HyperLink hl = (HyperLink)item["LinkCol"].Controls[0];
                  if (hl != null)
                    {
                        string link = "itemdetail.aspx?PIIN=" + item["PIIN"].Text + "&NIIN=" + item["NIIN"].Text; ;
                        hl.NavigateUrl = link;
                    }

                    LTCHeader header = (LTCHeader)FormView1.DataItem;
                    if ((header != null) && (header.IsTerminated()))
                    {
                        GridDataItem di = (GridDataItem)e.Item;
                        DataBoundControl minQtyPerOrder = (DataBoundControl)di["MIN_QTY_PER_ORDER"].Controls[0];
                        DataBoundControl maxQtyPerOrder = (DataBoundControl)di["MAX_QTY_PER_ORDER"].Controls[0];
                        DataBoundControl maxQtyAvail = (DataBoundControl)di["MAX_QTY_AVAIL"].Controls[0];
                        minQtyPerOrder.Enabled = false;
                        maxQtyPerOrder.Enabled = false;
                        maxQtyAvail.Enabled = false;
                    }
                 }
           }    
     }

Shinu
Top achievements
Rank 2
 answered on 13 Jun 2014
2 answers
93 views
I want to hide the grey column on the left side of the gridview.
I column has a arrow on it, i think its a selection column.
Tiaan
Top achievements
Rank 1
 answered on 13 Jun 2014
1 answer
75 views
I am wondering if there is any way for the RadPersistenceManager to also retain the expanded item(s) of a Hierarchical Grid that is also utilizing paging/sorting/filtering.

I am aware of some older posts that discuss retaining the expanded item of a hierarchal grid but was wondering if I am missing something in particular to the RadPersistenceManager to have it retain this information for me.

Kostadin
Telerik team
 answered on 13 Jun 2014
6 answers
152 views
Hi

There are two radcomboboxes in the ASPX with MetroTouch skin and I want to add some different custom styles to the radcomboboxes as shown below.

<telerik:RadComboBox ID="rcbModelName" runat="server" Skin="MetroTouch" Width="100%"
EmptyMessage="Select Model" Height="120px">
</telerik:RadComboBox>
<telerik:RadComboBox ID="rcbColor" runat="server" Skin="MetroTouch" Width="100%"
EmptyMessage="Select Color" Height="120px">
</telerik:RadComboBox>
 
.RadComboBox_MetroTouch .rcbInputCell
{
      border: 1px solid Gray !important;
      background: #FFFFFF url("../Images/Icon1.png") no-repeat 3% 55% !important;
      text-indent: 12%;
}

When I apply the above style, its getting applied to all the radcomboboxes in the page with MetroTouch skin.

So how can I apply the above CSS using the ID so that it will be applied to the corresponding radcombobox only and similarly I can provide some other custom styles to the other combobox as well.

Thanks,
Vishnu.
Vishnu
Top achievements
Rank 1
 answered on 13 Jun 2014
2 answers
126 views
Good day

I have a website where i create dynamic radgrids.

Each radgrid will have 3 rows .

i would like to hide my itemtemplates in row 1 and row 2.

The itemtemplates are checkboxes, these checkboxes should be hidden on row 1 and 2.
Princy
Top achievements
Rank 2
 answered on 13 Jun 2014
1 answer
109 views
I want my RadButton to fill the width of a container (a container whose width depends on the screen resolution). But if I do this via css (width: 100%!important; in the css-class added to the button), the button stretches out to the right, but the text does not move right. Causing the button text to look aligned to the left, rather than to the center.

How do I fix this?
Shinu
Top achievements
Rank 2
 answered on 13 Jun 2014
1 answer
1.0K+ views
I have a radgird that has a three level hierarchy.  I want to be able to expand ALL levels of a specific record when the expand button is clicked at the ROOT level of the radgrid.  **My radgrid may have two or three detail tables at one level with hiearchy levels binded to some of those tables.  I want all those levels to be opened with one click at the root level for a specific record in my radgrid.  I am using HierarchyLoadMode="Client" so I believe I need to code this in javascript.  Refer to the picture attached to this post to visually see my RadGrid.  Please Assist!
Viktor Tachev
Telerik team
 answered on 13 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?