Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
141 views

Hi there, 

The RadDatePicker is being shown on my application even if I load up a popup.

Is there any way to fix it?

Eyup
Telerik team
 answered on 23 Jan 2019
1 answer
288 views
How can I cange the style of the Column Headers?  I would like the font to be bold or maybe the background a different color.  I tried changing .rcbHeader but that didn't do it
Peter Milchev
Telerik team
 answered on 23 Jan 2019
0 answers
206 views

I had created rad dynamic controls which consists of(textbox, ddl, combobox etc..) and also created dynamic rad wizardsteps, every wizardstep contains a dynamic table.

I want insert those dynamic rad controls into wizardstep table, to achieve this i used sessions but its giving a exception says Script controls may not be registered after PreRender..

When i tried to insert these controls in static asp table it works fine, while adding to a dynamic table i am getting this issue. What i had done wrong, how can i resolve this issue.

Please guide me i am new to telerik controls.

 

Code Behind: 

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        GenerateWizardSteps(2);
        RadListView1.DataSource = GetDatatable();
        RadListView1.DataBind();
    }
    else
    {
        RecreateControls("rtb", "RadTextBox");
    }
}
public DataTable GetDatatable()
{
    DataTable dt = new DataTable();
    dt.Columns.Add("Label");
 
    dt.Rows.Add("RadTextBox");
    dt.Rows.Add("RadComboBox");
    dt.Rows.Add("RadDateTimePicker");
    dt.Rows.Add("RadDropDownList");
    dt.Rows.Add("RadDatePicker");
    dt.Rows.Add("RadNumericTextBox");
    dt.Rows.Add("RadToggleButton");
    dt.Rows.Add("RadBinaryImage");
    return dt;
}
 
//Creating WizardSteps
public void GenerateWizardSteps(int formID)
{
    RadWizardStep step;
 
    step = new RadWizardStep();
    step.ClientIDMode = ClientIDMode.Static;
    step.ID = "step_" + i.ToString();
    controlTbl = new Table();
    controlTbl.ClientIDMode = ClientIDMode.Static;
    controlTbl.ID = "controlTable_" + i.ToString();
    Session["myTable"] = controlTbl;
    step.Controls.Add(controlTbl);
    wizardControl.WizardSteps.Add(step);
 }
protected void RadAjaxManager1_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e)
{
    string commandText = e.Argument.ToString().Trim();
    string[] splitdata = commandText.Split('&');
    commandText = splitdata[0];
    string controlName = splitdata[1];
    switch (controlName)
    {
        case "RadTextBox":
            int cnt1 = FindOccurence("rtb") + 1;
            DynamicControls dcTextBox = new DynamicControls();
            TableCell txtlblRad = dcTextBox.Controlscreation("RadLabel", "", cnt1, cnt1, "Text Box:", "", 0);
            TableCell txtRad = dcTextBox.Controlscreation("RadTextBox", "", cnt1, cnt1, "", "", 0);
            TableRow txtRow = new TableRow();
            txtRow.Cells.Add(txtlblRad);
            txtRow.Cells.Add(txtRad);
            Table controlTbl = Session["myTable"] as Table;
            controlTbl.Rows.Add(txtRow);
            //Table1.Rows.Add(txtRow);
 
            break;
     }
}
private void RecreateControls(string ctrlPrefix, string ctrlType)
{
    string[] ctrls = Request.Form.ToString().Split('&');
    int cnt = FindOccurence(ctrlPrefix);
    if (cnt > 0)
    {
        for (int k = 1; k <= cnt; k++)
        {
            for (int i = 0; i < ctrls.Length; i++)
            {
                if (ctrls[i].Contains(ctrlPrefix + "_" + k.ToString()))
                {
 
                    if (ctrlType == "RadTextBox")
                    {
                        DynamicControls dcTextBox = new DynamicControls();
                        TableCell txtlblRad = dcTextBox.Controlscreation("RadLabel", "", k, k, "TextBox:", "", 0);
                        TableCell txtRad = dcTextBox.Controlscreation("RadTextBox", "", k, k, "", "", 0);
                        TableRow txtRow = new TableRow();
                        txtRow.Cells.Add(txtlblRad);
                        txtRow.Cells.Add(txtRad);
                        Table controlTbl = Session["myTable"] as Table;
                        controlTbl.Rows.Add(txtRow);
                    }
                       break;
                }
            }
        }
    }
}
 
private int FindOccurence(string substr)
{
    string reqstr = Request.Form.ToString();
    return ((reqstr.Length - reqstr.Replace(substr, "").Length) / substr.Length);
}

 

Saif
Top achievements
Rank 1
 asked on 23 Jan 2019
6 answers
288 views
How do I execute some server-side code after data has been updated, triggered by the user clicking "Save changes" in an automatic-update batch-editmode grid? I need to manipulate some other controls after a successful update.
Neil N
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 22 Jan 2019
1 answer
598 views

Hi,

 

          I put radtextbox on that we put the onkeyup event it work in chrome,ie but not work in Firefox when enter key press but other than enter key it work in firefox.

 

Example:

 <telerik:RadTextBox ID="mainSearchTxt" onkeyup="mainSearchTxt_keyup(event,id)" EmptyMessage="Content Search"  Width="150px" runat="server"> </telerik:RadTextBox>

function mainSearchTxt_keyup(e, id) {


    var unicode = e.charCode ? e.charCode : e.which;
    alert(unicode);

}

This alert message show in firefox when all keypress except "Enter key" for that i need solution

 

 

 

Vessy
Telerik team
 answered on 22 Jan 2019
1 answer
130 views

Hello,

with increasing requirements for websites to fulfill WCAG 2.0 Guidelines, I noticed that RadDock is failing AAA tests just because it wraps Titles with an H6 tag, forcing developers to be aware of this in the hierarchy of Headers in a website. Why not use SPAN or P for this or at least allows us to define which Header tag to use in an option of the control?

What do you suggest to fix this for now?

Thank you

Rumen
Telerik team
 answered on 22 Jan 2019
2 answers
156 views

Dears we have a RadCloudUpload it does not upload files with an Arabic name to RadCloudUpload please see the attachment file.

thank you

Peter Milchev
Telerik team
 answered on 22 Jan 2019
5 answers
237 views
Hello Support Team,

I have demo Asp.net application with Telerik version 2016.2.607.40.  Radgrid and Radwindow controls are used.
Issue which I am facing is, when I do action in application, Memory usage increases but not decrease automatically.
I am facing issue in IE11, but working fine in Chorme and Mozilla.
I have already tried DestroyonClose  and implemented in demo application.

I am trying to attach demo application but not allowed me to upload(Zip) file.

Please let me know your feedback asap.
Marin Bratanov
Telerik team
 answered on 21 Jan 2019
3 answers
558 views

In my radgrid when I click a row it fires the server side event OnSelectedIndexChanged.  However, I am losing focus after postback and the arrow keys stop working to navigate up/down in the grid.  As a work around I am setting the focus to a LinkButton control in the last selected row which gives me arrow key control back, but it does highlight the LinkButton which looks odd.

protected void Page_PreRender(object sender, EventArgs e)
{
  rgOrderItem.SelectedItems[0].FindControl("lbtnPartNumber").Focus();
}

 

How can I get focus on the RadGrid where the arrow keys will work but not focus on a control in the current row?  I have tried focusing on labels, but arrow keys don't work I assume because labels don't except keyboard input.  I have also tried the following:

// 1.
rgOrderItem.Focus();
 
// 2.
rgOrderItem.MasterTableView.Focus();
 
// 3.
rgOrderItem.Parent.Focus();
 
//4.
rgOrderItem.MasterTableView.Parent.Focus();
 
//5.
rgOrderItem.SelectedItems[0].Focus();
 
//6.
rgOrderItem.SelectedItems[0].Parent.Focus();
 
//7.
rgOrderItem.SelectedItems[0].Parent.Parent.Focus();

 

I notice if I click on whitespace inside the grid and below the last row, my focus seems to be where it needs to be and my arrow keys work without anything selected in a grid row, but I can't figure out how to programmatical target this area.  Please help.  Thanks.

 

 

 

Attila Antal
Telerik team
 answered on 21 Jan 2019
5 answers
413 views
Can either of your RadEditor for MOSS (lite or regular) handle inserting images directly into a discussion board post?

If it does, does it then manage those images a picture library?

thanks,
gene

sandeep
Top achievements
Rank 1
 answered on 21 Jan 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?