Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
538 views

Is there an easy way to repeat headers for each record in a radgrid master/detail table?

In records with a lot of children, the headers can scroll off the screen, and then the user has to scroll up and down to read the headers. It would be nice if there were a way to automatically repeat the header each time you write a new MasterHeader, for instance, since RadGrid doesn't have a "freeze" feature where the headers will remain frozen at the top of the screen while the user scrolls down.

Is there an easy way to do this?

MasterHeader
MasterDetail
ChildHeader
ChildDetail
ChildHeader
ChildDetail
ChildHeader
ChildDetail
MasterHeader
MasterDetail

ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 22 Apr 2016
4 answers
348 views
I know absolutely nothing about responsive design.  

I was wondering if someone could point me to some small example of this.  

What I'd like is to set up (hopefully quickly) two extremely simple pages in my web app to be compatible with multiple devices.  

One page contains a RadGrid with only a few columns and a template popup with a few controls including a RadEditor.

The other page contains two RadComboBoxes, a RadEditor, and two buttons.
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 22 Apr 2016
1 answer
426 views

Hello,

I am calling a telerik radbutton's click event via javascript from within a RadAjaxPanel and it is causing a postback rather than a call back. When I click the button manually all works as expected (a callback occurs).

Example:

document.getElementById('<% = SaveEditorButton.ClientID %>').click();

Please help.

Maria Ilieva
Telerik team
 answered on 22 Apr 2016
0 answers
80 views
I have scenario where the values of textbox inside rad grid is getting loss when Filter has done.

Example

COLUMN1            COLUMN2                COLUMN3                    COLUMN4

   A                            B                        TEXTBOX1                     TEXTBOX2

   C                            D                       TEXTBOX3                     TEXTBOX4

I am giving value for TEXTBOX1 and TEXTBOX2. When I search for "C" in COLUMN1 using FILTER which is available in radgrid all the values

entered in TEXTBOX1 and TEXTBOX2 are getting loss.



My scenario is not to get loss when I Filter for any record.



Please assist me on this
Govindon
Top achievements
Rank 1
 asked on 22 Apr 2016
9 answers
1.9K+ views
HI there

I have a radlistbox on my page that displays a list of items with checkboxes that I programatically add items to:

 <telerik:RadListBox ID="NewslettersRadListBox" runat="server" Width="100%" CheckBoxes="true" Height="200px"></telerik:RadListBox>

What I need to do is to display the items in 2 columns. Is this at all possible?

I have attenpted to do this by modifying the styles as descibedin the following thread: http://www.telerik.com/community/forums/aspnet-ajax/listbox/how-to-show-two-columns-when-use-checkboxes.aspx but this doesn't work.

Thanks in advance!





Sridhar
Top achievements
Rank 1
 answered on 22 Apr 2016
1 answer
128 views
For some reason my drop down is getting reset on my page load i popuplate the dropdown by trapping the post back.
protected void Page_Load(object sender, EventArgs e)
       {
           tblApertureNetShiftPattern _shifts = new tblApertureNetShiftPattern();
           string timeCode = "";
 
           string id = Request.QueryString["id"];
 
           Guid _guid = string.IsNullOrEmpty(id) ? new Guid() : new Guid(id);
 
           _shifts = _dal.GetShiftPatternById(_guid);
 
           if (Request.Browser.Browser == "Firefox")
               Form.Attributes.Add("autocomplete", "off");
 
 
           if (!IsPostBack)
           {
               var dlManagersSource = _dal.GetManagers();
               rdManagers.DataSource = dlManagersSource;
               rdManagers.DataValueField = "LookupValue";
               rdManagers.DataTextField = "LookupDescription";
               rdManagers.DataBind();
 
               // Then add your first item
               var ddlDaysOfWeek = _dal.GetDaysOfWeek().OrderBy(o => o.Order);
               rdDayOfWeek.DataSource = ddlDaysOfWeek;
               rdDayOfWeek.DataValueField = "LookupValue";
               rdDayOfWeek.DataTextField = "LookupDescription";
               rdDayOfWeek.DataBind();
 
               var ddlShiftPatterns = _dal.GetShiftPatternTypes();
               rdAppointmentType.DataSource = ddlShiftPatterns;
               rdAppointmentType.DataValueField = "LookupValue";
               rdAppointmentType.DataTextField = "LookupDescription";
               rdAppointmentType.DataBind();
           }
 
           txtDescription.Text = _shifts.Description;
               rdStartShift.SelectedDate = _shifts.startdate;
               rdShiftEnd.SelectedDate = _shifts.endDate;
               rdDayOfWeek.SelectedValue = _shifts.dayOfWeek.ToString();
               rdAppointmentType.SelectedValue = _shifts.appointmentType.ToString();
               rdManagers.SelectedValue = _shifts.manager_Id.ToString();
          
           
       }

 

/// <summary>
/// Gets the days of week.
/// </summary>
/// <returns></returns>
public List<StandardLookup> GetDaysOfWeek()
{
    List<StandardLookup> lookups = new List<StandardLookup>();
 
    try
    {
        var q = from lookup in apertureNetEntities.tblApertureNetLookUps.Where(a => a.lookup_type == Constants.daysOfWeek).OrderByDescending(o => o.colOrder)
                orderby lookup.lookup_description
                select new
                {
                    LookLookupValue = lookup.lookup_Code,
                    LookupDescription = lookup.lookup_description.Trim(),
                    Order = lookup.colOrder
                };
 
        if (q != null)
        {
            Array.ForEach(q.ToArray(), l =>
            {
                lookups.Add(new StandardLookup(l.LookLookupValue, l.LookupDescription, l.Order));
            });
        }
    }
    catch (Exception ex)
 
    {
        string inner = string.Empty;
        if (ex.InnerException != null)
        {
            inner = ex.InnerException.ToString();
        }
        logger.Error("Error in GetDaysOfWeek function aperturenetdal " + ex.ToString() + " " + inner);
        return null;
    }
 
    return lookups;
}

Nencho
Telerik team
 answered on 22 Apr 2016
3 answers
115 views

Hi,

I'm using the Telerik Rad Spell Checker in my page attached screenshot.
A Textbox and Rad Spell Check.

When I tried to navigate the page using tab key in the Keyboard. At First it is navigated into the Textbox "Text 1" field and when I pressed tab key again, it is pointed to the Rad Spell Checker and Spell Check Dialog Box is opened this seems like a tab key is considered as a click event and once I clicked ok the Dialog Box disappears.

When I press tab key again, the dialog box continuously opened instead of navigating into the next field in the page which is "Text 2" Text box.
This behavior is observed  in the Firefox Browser only.

But in the Chrome and IE.  It's working fine. When I press tab key after the Text box “Text 1”, it is pointing to the spell checker but no dialog box is opened and when I pressed tab again it is pointing to the next fields in the page.

The Telerik Version details are below:

Runtime Version: v4.0.30319
Version: 2014.2.618.45

Attached the screenshots for both. 

 

Regards

Mani

 

Mani
Top achievements
Rank 1
 answered on 22 Apr 2016
2 answers
128 views
Ok for some reason I have a recurrance dated for 19/04/2016 but for some reason its giviing me recurrances in the past instead of the future.
01.if (chkWeekly.Checked == true)
02.                {
03.                    //Creating a Weekly Recurrence rule
04.                    int interval = 2;
05.                    RecurrenceRange range = new RecurrenceRange();
06. 
07.                    range.Start = Convert.ToDateTime(rdStartShift.SelectedDate);
08.                    range.EventDuration = TimeSpan.FromMinutes(30);
09.                    range.MaxOccurrences = 3;
10.                    RecurrenceDay recurrenceDay  = (RecurrenceDay) Convert.ToInt32(rdDayOfWeek.SelectedValue);
11.                    // _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range).ToString();
12.                    DayOfWeek startDayOfWeek = DayOfWeek.Monday;
13.                    _shifts.RecurrenceRule = new WeeklyRecurrenceRule(interval, recurrenceDay, range, startDayOfWeek).ToString();
14.   }


I am sure if i set weekly which I have done acording to the option it should set them in the future.

Plamen
Telerik team
 answered on 22 Apr 2016
3 answers
1.3K+ views
Hi there,
I am using a TabStrip and am struggeling with scrollbars within the tab strip content. I found out that I am able to solve this by using css style "display: inline-table" instead of "display: block".
Unfortunately I am not able to set this style in my code:

@(Html.Kendo().TabStrip()
                      .Name("tab1")
                      .HtmlAttributes(new {style = "height:auto" })
                      .Items(ts =>
                      {
                          ts.Add().Text("Text1").Enabled(true).HtmlAttributes(new { id = "item1"}).Content(@Html.Partial("_Form1", new Model1()).ToHtmlString());
                          ....
This will generate following markup structure:
<div class="k-tabstrip-wrapper">
<div class="k-widget k-tabstrip k-header k-floatwrap k-tabstrip-top">
<ul class="k-reset k-tabstrip-items">
....[some more ul]...
<div class="k-content k-state-active" id="tab1" style="display:block" role="tabpanel" aria-expanded="true">
...
The problem appears in the line above where display is set to "block". The browser shows:
element.style {
display: block;
}
1. I did not specify this style. I assume this is generated?
2. I cannot override this property using:
<style>
    .k-tabstrip .k-content.k-state-active {
        display: inline-table;
    }
</style>
3. Neither setting .Htmlattributes on the grid nor the tabstrip helps, as they're corresponding to parent divs.

Does anybody know how to do this?
Magdalena
Telerik team
 answered on 22 Apr 2016
4 answers
157 views

Dear Sir,

if you try to put this html in the RadEditor, it will not be displayed correctly if you are using the google chrome:

<div style="text-align:Left;font-family:Times New Roman;font-style:normal;font-weight:normal;font-size:14px;color:#000000;">
<p style="margin:0 0 0 40;"><span>hello</span></p>
</div>

 

save the file in html file and open it in google chrome, it is correctly displayed.

 

 

Ianko
Telerik team
 answered on 22 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?