Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
94 views
Hello!

When I enter edit mode in a Telerik radgrid I end up with all the textboxes beeing in different width.

I thought of solving this, by looping through all the items that is beeing edited and set them to System.Web.UI.WebControls.Unit.Pixel(300); to change the size. But I am doing something wrong here, I can't get it to work? And I want to refrain from using the getColumnEditor.

I thought of using it like this: But I cannot get it to work. Any idea?

protected void radgrid1_ItemCreated(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridEditableItem && e.Item.IsInEditMode)
           {
               //the item is in edit mode   
               GridEditableItem editedItem = e.Item as GridEditableItem;
               editedItem.Width = Unit.Pixel(300);
               editedItem.Height = Unit.Pixel(300);
                
           }
       }

Any idea what to do to make them into the same size? 

On a side note, a total different question, Is it possible to set .Enabled status (ReadOnly) programatically without knowing what type the column is?

At the moment I am just stuck with having to iterate through and check whether the column textbox is a GridTextBoxColumnEditor  / GridNumericColumnEditor and so forth. It's annoying way to solve it.

Eg.   
if (columnEditor is GridTextBoxColumnEditor)
{
    GridTextBoxColumnEditor item = columnEditor as GridTextBoxColumnEditor;
    item.TextBoxControl.Enabled = false;
    // To hide completely item.TextBoxControl.ReadOnly = statusReadable ? false : true;
} 
else if (columnEditor is GridNumericColumnEditor)
{
GridNumericColumnEditor item = columnEditor as GridNumericColumnEditor;
item.NumericTextBox.Enabled = false;

}          

See? I even have to specify NumericTextBox so I can't make generic solution to this? Anyone knows?


Sorry for having two questions in one thread, hope it is OK.

Best Regards 
Nicklas        



Viktor Tachev
Telerik team
 answered on 28 Jun 2013
1 answer
73 views
While saving content from silverlight editor control, it generate the following html
<p style="margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px;">
<span style="font-family: 'Segoe UI';font-style: Normal;font-weight: normal;"> </span>
<span style="font-family: 'Verdana';font-style: Italic;font-weight: bold;background-color: #FFFF00;text-decoration: underline line-through;">
Hi this is Bold <br />Test</span>
<span style="font-family: 'Segoe UI';font-style: Normal;font-weight: normal;" />
</p>

Resulting the attached image.

when i try to edit the content added via silverlight control above in asp.net rad editor, i am not able to Unbold the content which is bold in above screen shot. there seems to be compatiblity issue between two. ASP.Net generate the following markup when we bold the content
<strong><em><span style="text-decoration: line-through;">this is Online Test</span></em></strong>


This is happening with other formatting like Italic, Underline, strike.
Attached Memo.png is the screen-shot of RadEditor displaying the disabled buttons i.e issue.




Slav
Telerik team
 answered on 28 Jun 2013
2 answers
112 views
Hi All,
I have a grid with drag to-group enabled. One of the columns is a template field. The data coming from the DB is a binary mask which I'm "translating" in code-behind to "human-readable" format.
Everything works, but when the grid is grouped by the template field, the group header (obviously) displays the raw data (the binary mask). Is there a way to modify the header display? There's an 'OnGroupsChanging' event, but I can't find the correct property to modify.

Thx in advance.
Rgds - M.

Template Field:
<telerik:GridTemplateColumn SortExpression="MATCH" HeaderText="Match"
                                HeaderButtonType="TextButton"
                                UniqueName="Match" DataField="MATCH"
                                GroupByExpression="MATCH Group By MATCH">
    <ItemTemplate>
        <asp:Label ID="lblMatchColumn" runat="server" Text='<%# GetMatchCodes(Eval("MATCH").ToString()) %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>

Pavlina
Telerik team
 answered on 28 Jun 2013
1 answer
116 views
Hi,
I am using multi select combobox by enabling CheckBoxes="true".
My requirement is 
I should able to select items by mark first match. it allows only when no items in the text box. if I had items mark first match does not works. as showed in attached notes
 
  
Dhamodharan
Top achievements
Rank 1
 answered on 28 Jun 2013
1 answer
78 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
79 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
59 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
218 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
158 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
264 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?