Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 views
Hello, in RadEditor when I select some text in design mode and switch to html mode does not maintain the selected position. it is possible to implement this feature?

Bye
Slav
Telerik team
 answered on 28 Jun 2013
1 answer
58 views
Hi,
I have a telerik:RadEditor in a RadAjaxManager but when I refresh (with ajax) the RadEditor  a duplicate ContentArea appears.
I tried many thing like change the ContentAreaMode.
Can you help me on this,

Thanks in advance.

Rumen
Telerik team
 answered on 28 Jun 2013
1 answer
45 views
I am getting what appears to be the clientID (Name) of an element placed within the area of the FilterMenu after setting the filterExpression and calling for Rebind() on the RadGrid (C# codebehind).  Does anyone know why this is occurring or any possible areas to look at?
Viktor Tachev
Telerik team
 answered on 28 Jun 2013
2 answers
167 views
Hi

I have a multi column combo defined. One column contains standard checkboxes (<input type=checkbox>) How do I get at these checkboxes and their checked state, and indeed for that matter, any value or object in a multi column combo box using javascript?

Any pointers appreciated

Many thanks
Gauri
Top achievements
Rank 1
 answered on 28 Jun 2013
4 answers
133 views
I'm trying to set the value of a combo box that uses javascript to clear the items, add one, and set the only item as selected. Everything works except for setting the newly added item as the selected item. When this is triggered, it causes IE9 to crash.

Any ideas? BTW, I'm using 2013 Q1.

<telerik:RadComboBox ID="RCB_Build" runat="server" CheckBoxes="true" EmptyMessage="Select all that apply" OnClientSelectedIndexChanged="toggleFields"  EnableCheckAllItemsCheckBox="true" TabIndex="5" ToolTip="Select the schedule month(s)" AutoPostBack="false">
 <ExpandAnimation Type="OutExpo" Duration="300" />
 <CollapseAnimation Type="InExpo" Duration="200" />
                                </telerik:RadComboBox>

var RCB_Build = $find('<%=RCB_Build.ClientID%>');
var rcbItem = new Telerik.Web.UI.RadComboBoxItem();
rcbItem.set_text(n);
rcbItem.set_value(fom);
RCB_Build.trackChanges();
RCB_Build.clearItems();
RCB_Build.get_items().add(rcbItem);
rcbItem.select();
RCB_Build.commitChanges();
Nencho
Telerik team
 answered on 28 Jun 2013
6 answers
154 views
Hello,
I have a TileList with several Tiles. Its skin is Black. I also have a Save button. I have a cssclass that changes the background image of selected tiles as following:

.RadTileList_Black .rtlistSelectedTile .rtlistSelectedIcon {
    background-image: url('Images/rtlistSpriteRed.png') !important;
}

This works fine for all the tiles. However, in my situation, I only need the set specific selected tiles to have that kind of style. For example, if only I need to change the style for tile 1 and 3 when they are selected. The others' style still has the original style. How can I do that in the code behind.

Thank you!

Josh
Top achievements
Rank 1
 answered on 28 Jun 2013
6 answers
247 views
Hi everyone

I have multiple RadUpload controls, the problem is that a client may upload two files, with the same filename, so what I have done is create a simple File.Exists check and then saving the file, but it seems its saving each file before it even gets to my code. So its always creating a duplicate file.
I understand that this is happening because the RadUpload sends the file to the server automatically on postback, is there a way to "manually" upload each file?

Here is a sample of my code. I have many uploads, so I created an Array
//LOG DOCUMENT ENTRIES
RadUpload[] allUploads = new RadUpload[25] { uxUpload1, uxUpload2,..... };
string fileToWritePath = "";
string fileNameToSave = "";
 
foreach (RadUpload uploadControl in allUploads)
{
    foreach (UploadedFile f in uploadControl.UploadedFiles)
    {
        fileToWritePath = uploadControl.TargetPhysicalFolder + @"\" + f.FileName;
 
        if (File.Exists(fileToWritePath))
        {
            fileNameToSave = f.GetNameWithoutExtension().ToString() + "_" + DateTime.Now.ToString().Replace(":", "").Replace("/", "") + f.GetExtension().ToString();
            f.SaveAs(uploadControl.TargetPhysicalFolder + @"\" + fileNameToSave);
        }
        else
        {
            fileNameToSave = f.GetName();
            f.SaveAs(uploadControl.TargetPhysicalFolder + @"\" + fileNameToSave);
        }
 
        Document document = new Document(fileNameToSave, documenPath, 0, user.UserID);
    }
}

Any ideas?

Thank you.
Jack
Top achievements
Rank 1
 answered on 28 Jun 2013
1 answer
118 views


We want to show a descriptive field as a heading column followed by a row of data - essentially grouping by one field value. The group works but want to remove the group by column. 

A few searches in the forum indicates changing the column width and font size of the grouping column would effectively hide it as in the following sample:
   protected void RadGrid1_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
    {
        if (e.Column is GridGroupSplitterColumn)
        {
            //this doesn't do a thing
            e.Column.HeaderStyle.Width = System.Web.UI.WebControls.Unit.Pixel(0);
            e.Column.HeaderStyle.Font.Size = System.Web.UI.WebControls.FontUnit.Point(1);
            e.Column.ItemStyle.Width = System.Web.UI.WebControls.Unit.Pixel(0);
            e.Column.ItemStyle.Font.Size = System.Web.UI.WebControls.FontUnit.Point(1);
            e.Column.Resizable = false;
            
            //this works but messes up the text grouping row:
            //e.Column.Visible = false;
        }
    }

This doesn't work. Making the grouping column invisible DOES work but introduces a new problem. The grouping text appears in the second  column. It appears a <td></td> element appears for the first column, I assume this is was used for the grouping column. 

I have attached a picture to demonstrate the issue. The first image shows the grouping column using the above code. The second makes the column invisible, but now the grouping text is in the second column



Eyup
Telerik team
 answered on 28 Jun 2013
1 answer
159 views
I was looking at the example here: http://demos.telerik.com/aspnet-ajax/input/examples/common/validation/defaultvb.aspx?#qsf-demo-source
and there are some things that I can't seem to figure out how to do.

First of all in the masked text boxes like phone number, there is no yellow alert triangle when you try and enter numbers. On my page this appears on top of the red highlighting, and it does not look since it overlaps the black "X" that is on all textboxes in IE10.

Also I noticed that the Hire Date stays highlighted when the input is invalid. Is there any easy way to do this?

I can't seem to find anything special in the code on the demo page that handles any of these things.

This is the code for my RadMaskedTextbox:
<telerik:RadMaskedTextBox ID="_phone1" runat="server" MaxLength="25" CssClass="InputText" Mask="(###) ###-####"></telerik:RadMaskedTextBox>

And this is the CSS for it:

.InputText
{
    BORDER-RIGHT: #4d4a46 1px solid;
    BORDER-TOP: #4d4a46 1px solid;
    FONT-SIZE: 9pt;
    BORDER-LEFT: #4d4a46 1px solid;
    COLOR: black;
    BORDER-BOTTOM: #4d4a46 1px solid;
    FONT-FAMILY: Arial, Helvetica, Sans Serif;
    BACKGROUND-COLOR: white
}


I have also attached a picture of the yellow alert triangle that I am talking about in the masked textboxes.
Vasil
Telerik team
 answered on 28 Jun 2013
1 answer
93 views
I am trying to keep the selected values in a RadComboBox (which are nested in a DataBoundGridColumn's FilterTemplate) from resetting to the 1st item in the list ("All" / Value=0) upon filtering the RadGrid (using filterExpression).  I have tried setting the ViewState.ClientID to the selected value in the combobox, and have added a PreRender event handler to the HTML element.  It does not seem that the PreRender event will fire withe the ComboBox nested in the FilterTemplate.  Does anyone know a solution that would allow for the combobox selected item to remain the same after filtering the radGrid?
Eyup
Telerik team
 answered on 28 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?