Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
84 views
On our web solution, using the editor, in chrome, a tab inserts this:

<p><span class="Apple-tab-span" style="white-space: pre;"> </span></p>

not an issue, but if you immediately press (delete), the html is changed to:

<span class="Apple-tab-span" style="white-space: pre; color: #56585a; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em; background-color: #93bfd9;">

It's like the tab delete sequence triggers some type of macro. 

Anyone seen anything like this? And have a potential solution?

Thanks,
Todd.
Todd A
Top achievements
Rank 1
 answered on 24 Feb 2015
1 answer
191 views
Hi all,

I'm encountering some strange behavior using RadImageEditor.

I have code that displays two images on a page.  This in itself works fine.  However, attempting to resize the image on the server side causes the first image to not display at all, and the second image to not change its size upon display, though stepping through the code and looking at the properties indicates the Height and Width values are changed as expected.  Anyone have an explanation for this behavior?  Code included below.

Thanks in advance for any insights!

--Randy


            try
            {
                RadImageEditor1.ImageUrl = PathToUrl(imagerelpath);
                Telerik.Web.UI.ImageEditor.EditableImage ei = RadImageEditor1.GetEditableImage();
                ei.Resize((int)(ei.Width * .5), (int)(ei.Height * .5));  // browser rendering works as expected (shown full size) without this line
                RadImageEditor1.Height = ei.Height + 58;
                RadImageEditor1.Width = ei.Width;
            }
            catch (Exception ex)
            {
            }

            try
            {
                RadImageEditor2.ImageUrl = PathToUrl(backuprelpath);
                Telerik.Web.UI.ImageEditor.EditableImage ei2 = RadImageEditor2.GetEditableImage();
                ei2.Resize((int)(ei2.Width * .5), (int)(ei2.Height * .5));  // browser rendering works as expected (shown full size) without this line
                RadImageEditor2.Height = ei2.Height + 58;
                RadImageEditor2.Width = ei2.Width;
            }
            catch (Exception ex)
            {
            }
Vessy
Telerik team
 answered on 24 Feb 2015
1 answer
90 views
I have created a radgrid that functions with edit inplace and updates from an outside button to update an receords that were changed.  
I also would like to use the insert button to be able to add a new record. 
I am running in to a problem with the dropdowns because on an insert there is not a value to 'bind/eval', I need the dropdown to say "select' or something similar.  
Can I combine both items in the way I am trying?  I've attached the aspx from my column.  
Please advise.

                <telerik:GridTemplateColumn  UniqueName="PartNumber" SortExpression="PartNumber" AllowFiltering ="true"
                        HeaderText="Part Number"  ReadOnly="false" ItemStyle-VerticalAlign="Top" Visible="true" >
                             <ItemTemplate>
                           <asp:DropDownList ID="DropPart" runat="server" DataSourceID="dsPartNumbers" DataTextField="PartNumber" 
                                DataValueField="CustomerPartNumberID" SelectedValue='<%# DataBinder.Eval(Container.DataItem,"CustomerPartNumberID") %>'  >
                            </asp:DropDownList>
                            </ItemTemplate>
                              <EditItemTemplate>
                                 <asp:DropDownList ID="EditDropPartNumber" runat="server" DataSourceID="dspartNumbers" DataTextField="PartNumber" AppendDataBoundItems="true"
                                DataValueField="CustomerPartNumberID" SelectedValue='<%# bind("CustomerPartNumberID") %>'>
                                  </asp:DropDownList>
                                  <asp:RequiredFieldValidator ID="Validator1" ControlToValidate="EditDropPartNumber" 
                                  ErrorMessage="*Required" runat="server" Display="Dynamic" InitialValue="-- Select --" ForeColor="Red">
                                      </asp:RequiredFieldValidator>
                                </EditItemTemplate>
                    </telerik:GridTemplateColumn>
Konstantin Dikov
Telerik team
 answered on 24 Feb 2015
1 answer
138 views
Hi

     How can I use a Rad grid to perform batch edit, Edit form and Pop-Up edit combined?

     I have a grid which uses batch edit with some drop down, check box and text box control. I want to use Edit form to edit and display another grid (which is                related to the individual rows in the first grid) by clicking on one button similar to the edit button. Also I want to show a pop-up to display and edit other related          data with the first grid on clicking on another button. How can i achieve this?

Thanks & Regards
Lijo Sebastian
Viktor Tachev
Telerik team
 answered on 24 Feb 2015
1 answer
69 views
Hello,

I have a RadGrid, this RadGrid uses an Edit Form Template containing multiple controls for user input. In particular, I am interested in how I can add existing values to a RadComboBox which has multiple checkbox options when the edit form is opened.

Currently, I have methods to get all the values I need to check from my database. I also have all other elements in the grid initialized on edit mode because they are bound in my markup. Below is the code I am trying to use to check some items in the RadComboBox (OnEditOrInsertMode handles RadGrid.OnItemCreated, getFormFactorIds is a function that returns a list of ids to be checked.):

01.protected void OnEditOrInsertMode(object sender, GridItemEventArgs e)
02.{
03.    // Initalizes the RadComboBoxFormFactor combobox like all the other controls in the form.
04.    if (e.Item is GridEditableItem && e.Item.IsInEditMode)
05.    {
06.        GridEditableItem item = (GridEditableItem) e.Item;
07.        RadComboBox formFactorComboBox = (RadComboBox) e.Item.FindControl("RadComboBoxFormFactor");
08.        List<int> formFactorIds = (List<int>) getFormFactorIds((int) ((GridEditableItem)e.Item).GetDataKeyValue("CID"));
09. 
10.        formFactorComboBox.DataBind();
11.        foreach (RadComboBoxItem rcbItem in formFactorComboBox.Items)
12.        {
13.            rcbItem.Checked = formFactorIds.Contains(int.Parse(rcbItem.Value));
14.        }
15.        formFactorComboBox.DataBind();
16.    }
17.}


But, this seems to have no effect when I verify that a particular item has values marked in the multiple select combobox, and step through the code in the debugger and watch the 'Checked' values be set to 'true'.

What is causing the 'Checked' values to be set back to false?
Am I setting the 'Checked' values in the correct handler?

Thanks
Eyup
Telerik team
 answered on 24 Feb 2015
2 answers
101 views
Hi,

I want to hide the text under control (check the attached image file).

And I want to get "SaveSettings" values like json/xml format. Is it possible?
If possible I want take them from javascript, but if it is impossible I want to know how to get this settings from code behind in xml or json format
Eyup
Telerik team
 answered on 24 Feb 2015
1 answer
55 views
Hi,
I need to find a list of filtered rows/columns value on server side. Is it possible?
As you can see on the attached file I found the value but they are a not public member

Thanks
Angel Petrov
Telerik team
 answered on 24 Feb 2015
11 answers
584 views

I have a rad grid inside a update panel.
Add a trigger in update panel on a button.
this works fine but when we click on header of grid fro sorting then it throws a error column name is not find.

Please suggest me what i will do to remove this problem. Its vary urgent
Kostadin
Telerik team
 answered on 24 Feb 2015
3 answers
401 views
Hi all,

I am trying to get value of certain column from datagrid and then use it in URL for hyperlink control. I am using  onitemdatabound  event and  using the code like this


 

 

Hashtable t1 = new Hashtable();

 

 

dataItem.ExtractValues(t1);


but it is not extracting all the values from dataitem and only showing few values.
Any advice ?

Pavlina
Telerik team
 answered on 24 Feb 2015
1 answer
128 views
I have a rad tab strip on a page in my project. When I try to set the orientation value of the tabstrip to HorizontalTop nothing happens. When i try to use any setting at all, the same occurs. I have attached two pictures of the issue. the first is the observed result and the second is the preferred result/Design view. 

The affected code is:
<div>
                                                   <telerik:RadTabStrip ID="rtsCharts" runat="server" Skin="Office2007" MultiPageID="rmpCharts" Width="575px"
                                                       SelectedIndex="0">
                                                       <Tabs>
                                                           <telerik:RadTab runat="server" Text="Pie Charts" PageViewID="rpvPie" />
                                                           <telerik:RadTab runat="server" Text="Bar Charts" PageViewID="rpvBar" TabIndex="1" />
                                                       </Tabs>
                                                   </telerik:RadTabStrip>
                                                   <telerik:RadMultiPage ID="rmpCharts" SelectedIndex="0" runat="server">

I have a RadGrid and several RadHtmlChart controls on the page as well. I have several other pages with the tabstrip/MultiPage setup without any issues. I can't for the life of me figure out what I did wrong.
Magdalena
Telerik team
 answered on 24 Feb 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?