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

How I can add shapes (not markers) in a way like this:

for (var i = 0; i < resources.length; i++) {
                       kendoMap.markers.add({
                           location: resources[i].point.coordinates,
                           title: value.Title,
                           shape: value.Css,
                           tooltip: {
                               showOn: "click",
                               autoHide: false,
                           }
                       });
                   }


Best Greetings

Cyril
Ianko
Telerik team
 answered on 02 Jul 2014
2 answers
120 views
Hi,

I have a hierarchical radgrid that is four levels deep.  What I need is that when I go into edit mode for an entry on the third level that item's detail table is hidden.


I have tried setting visible to false on e.Item.OwnerTableView.DetailTables  but that doesn't help.


I am using version 2013.1.220.35

Thanks

Colin
Colin
Top achievements
Rank 1
 answered on 02 Jul 2014
2 answers
197 views
Help please,
I am using a rad combo that I am populating with a SQL data source, I have set an item template for the display which displays the correct information but when I select the item it shows the id and not the selected name, I'm not sure what I am doing wrong.

the code I'm using is as follows

on the aspx page

<telerik:RadComboBox ID="DDL_Treatedby" runat="server" OnItemDataBound="DDL_Treatedby_ItemDataBound""DropDownAutoWidth="Enabled" EmptyMessage="Treated By">
<ItemTemplate>
<asp:Label ID="LAB_TreatedName" runat="server"></asp:Label>
</ItemTemplate>
 </telerik:RadComboBox>

 
and the code behind is attached to the OnItemDataBound Event

 
protected void DDL_Treatedby_ItemDataBound(object sender, RadComboBoxItemEventArgs e)
       { UserPermissions tempper = (UserPermissions)e.Item.DataItem;
           Label templabel = (Label)e.Item.FindControl("LAB_TreatedName");
           if (tempper != null && templabel != null)
           {
               users temp = users.GetUserBYID(tempper.UserID);
               templabel.Text = temp.Forename + " " + temp.Surname;
           }
           
       }


I end up with the list been populated with the username but when an item is selected it shows a number instead of the selected name and not sure on where I am going wrong. 


                                            
                                          
                                     
Millfield
Top achievements
Rank 1
 answered on 02 Jul 2014
4 answers
222 views
I can't seem to find any relevant discussions on this topic, but I am wondering if it is possible to hide rows in the generated output (for example highlighted in yellow in the attached file) if certain conditions are met. For example, if one or the other of the values in the column labeled "Difference" is negative, I would want to hide the highlighted row.

Is this possible?
Eyup
Telerik team
 answered on 02 Jul 2014
3 answers
82 views
hello

I am using telerik radbutton in sharepoint 2013  (visual webpart )


but the buttons are cut as shown it attached image.

also no other skin except default skin apply for the radgrid  otherwise it gives error.


please give some solution

thanks
kishor
Danail Vasilev
Telerik team
 answered on 02 Jul 2014
2 answers
334 views
when i put RadMenu in GridTemplateColumn ,set Radmenu css to position:absolute and to allowscroll then radmenu is postion absolute as image that i attach
but when delete position:absolute: radmenu when behind of grid when mouse over there
Css
    .menu {
        z-index: 8000!important;
        position: absolute;
    }

GridColumn
<telerik:GridTemplateColumn UniqueName="TemplateColumnAction" HeaderText="Action" >
                <ItemTemplate>
                    <div>
                        <telerik:RadMenu ID="RadMenuAction" runat="server" CssClass="menu"
                            OnClientItemClicked='<%# "function (s,a){menuClick(s,a,"+Container.ItemIndex+");}" %>'>
                            <Items>
                                <telerik:RadMenuItem Text="v" CssClass="menu">
                                    <Items>
                                        <telerik:RadMenuItem Text="Destroy Hash" Value="Destroy" i>
                                        </telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="Reissue Hash" Value="Reissue">
                                        </telerik:RadMenuItem>

                                    </Items>
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </div>
                </ItemTemplate>
                <EditItemTemplate>
                    Test
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
Hristo Valyavicharski
Telerik team
 answered on 02 Jul 2014
1 answer
98 views
I'm having a bit of trouble with the SetupInputManager scenario, as described in your documentation:  
http://www.telerik.com/help/aspnet-ajax/grid-linq-to-sql-manual-crud-operations.html.

I've used this quite a number of times but this is a little different.

I have a grid with a conventional header/detail setup.  

What I would like to do, when a detail record goes into Edit mode, is to customize the label of a specific editing textbox within the detail record, based on the header's ID.

Is this possible?
Princy
Top achievements
Rank 2
 answered on 02 Jul 2014
3 answers
495 views

Hello,

I am trying to implement a RadComboBox with a datasource that can have up to 2,000 items. Therefore it is import that all the items do not get loaded at once. However I also want a RadComboBox with checkboxes, and I want to be able to select multiple values. The issue I am running into is when I have EnableLoadOnDemand="true" the checkboxes that were checked when searching for one word do not persist.

As an example: If I search for "Apple" check that off and then search for "Zinc" check that off and search for "Apple" again, the checkbox for "Apple" will not appear checked off. This happens even if open the drop down and check of the first 5 items then search for something that's not being displayed in the dropdown, or something that is being displayed, it doesn't change the behavior, check that off and then go back to the original 5 items and they appear unchecked.

The issue doesn't appear to happen if EnableLoadOnDemand="false" however then the ComboBox control will try and load all 2,000 items and the page will start slowing down.

I want to know if there is a way to get this behavior either with EnableLoadOnDemand="true" or if its possible to limit how many items are displayed when EnableLoadOnDemand = "false". Also note that the OnItemsRequested event does not get raised when EnableLoadOnDemand is set to False.


Markup:

<telerik:RadComboBox ID="RadComboBox2" runat="server" Visible="true"  MaxHeight="330" Width=" 200px"
                                Label="Look up values:" filter="Contains" AutoPostBack="false" EnableLoadOnDemand="true" EmptyMessage="Search Code..."
                                OnItemsRequested="RadComboBoxLargeLookup_ItemsRequested" ShowMoreResultsBox="true" ItemsPerRequest="50" EnableViewState="true">
                            <ItemTemplate>
                                <table>
                                    <tr>
                                        <td><input type="checkbox" /></td>
                                        <td><asp:Label runat="server" id="asdfasdf" Text='<%# DataBinder.Eval(Container, "Text")%>' /></td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </telerik:RadComboBox>

Code Behind:

protected void RadComboBoxLargeLookup_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
        {
            try
            {
                DataTable data = (DataTable)(this.ViewState["LookupValues"]);
 
                int itemOffset = e.NumberOfItems;
                int endOffset = Math.Min(itemOffset + ItemsPerRequest, data.Rows.Count);
 
                e.EndOfItems = endOffset == data.Rows.Count;
 
 
                for (int i = itemOffset; i < endOffset; i++)
                {
 
                    RadComboBoxItem item = new RadComboBoxItem();
 
                    string name = data.Rows[i]["SortField"].ToString();
                    string code = data.Rows[i]["Code"].ToString();
 
                    item.Text = name;
                    item.Value = code;
 
                     
                    RadComboBox radComboBox = sender as RadComboBox;
 
                    radComboBox.Items.Add(item);
 
                    item.DataBind();
                }
            }
            catch (Exception ex)
            {
 
            }
        }

Final goal is to allow the user to select multiple options and retain the ones that were selected that are not being displayed in the dropdown.

I also set EnabledViewState="true" per a recommendation on another support item, but that did not do anything.

Any advice is appreciated.

-Klaus

Nencho
Telerik team
 answered on 02 Jul 2014
9 answers
175 views
Hi,

If I use the listviewdesigner and choose a view from a list where the ID is not selected in the view, listviewdesigner creates a table with the ID vissible in it.
I don't want to see the ID.
How do I change this behaviour?

Regards,
Edwin
Marin
Telerik team
 answered on 02 Jul 2014
5 answers
492 views
Hello. I recently incorporated AJAX RadChart into our project, and I'm working on polishing it now.

We have a logarithmic YAxis, and it doesn't seem to be scaling properly. I have AutoScale=True and IsZeroBased=false.

The chart displays a huge empty portion of the chart, between 1 and 10,000 on the Axis. There isn't even any data value below 10,000. Why is it plotting this empty area? It should start plotting near the bottom of the data lines, right?

Here is my chart:

<telerik:RadChart ID="PmChart" runat="server" EnableViewState="True" DefaultType="Line" Skin="Outlook" OnZoom="PmChart_Zoom">
    <ClientSettings ScrollMode="Both" />
    <ChartTitle Visible="False" />
    <PlotArea>
        <XAxis LayoutMode="Inside" AutoScale="False" IsZeroBased="False" DataLabelsColumn="ChartDate">
            <Appearance MajorGridLines-Visible="false">
                <LabelAppearance RotationAngle="270" Position-AlignedPosition="Top" />
            </Appearance>
        </XAxis>
        <YAxis AutoScale="True" IsZeroBased="False" />
        <YAxis2 AutoScale="True" IsZeroBased="False" />
    </PlotArea>
</telerik:RadChart>


I've attached an image to help illustrate my problem. Any help would be greatly appreciated. Thanks!
Danail Vasilev
Telerik team
 answered on 02 Jul 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?