Telerik Forums
UI for ASP.NET AJAX Forum
9 answers
165 views
Nice control, thanks!
I noticed that there is no markers as well as navigation buttons (up/down/right/left) displayed in IE11 at http://demos.telerik.com/aspnet-ajax/map/examples/overview/defaultcs.aspx.
Could you look into?
miksh
Top achievements
Rank 1
Iron
 answered on 02 Jul 2014
5 answers
91 views
Is there any way to limit file selection to only one?  I tried setting

fileExplorer.TreeView.MultipleSelect = false;

But it didn't work.
Vessy
Telerik team
 answered on 02 Jul 2014
1 answer
153 views
I am trying to create a two level nested grid. First level RadGrid will have list of all users (name, ID, email address etc.). Second level grid nested inside the first grid will have list of departments that user has access to.

I created this grid using this example: http://www.telerik.com/help/aspnet-ajax/grid-nestedviewtemplate.html

However I run into couple of issues

1) When I expand User1, it correctly displays the list of departments he has access to (e.g. Department1 and Department2).

>User1
--Department1
--Department2
>User2


When I expand User2, the nested grid displays the list of departments User2 has access to (Department3 and Department4), but it also displays the same under User1.


>User1
--Department3
--Department4
>User2
--Department3
--Department4


2) The second issue I need help with is the Primary Key of parent record. For example, if I need to add a new department under User1, the form field with User1's primary key should already be populated. How do I get that value?








Eyup
Telerik team
 answered on 02 Jul 2014
3 answers
270 views
Hi guys,

After searching through many topics and trying different code snippets we still are not able to update a TextBox on the parent page when the RadWindow is closed.

We are currently using C# 2010 asp.net ajax controls.

Parent page code from where the rad window is being opened.
<!-- Parent Page -->
 
<body id="Body1">
    <form id="form1" runat="server">
 
        <script type="text/javascript">
 
            function getCookie()
            {
                if (document.cookie.length > 0) {
                    var c_name = "ConsumerID";
                    c_start = document.cookie.indexOf(c_name + "=");
                    if (c_start != -1)
                     {
                        c_start = c_start + c_name.length + 1;
                        c_end = document.cookie.indexOf(";", c_start);
                        if (c_end == -1)
                        {
                            c_end = document.cookie.length;
                        }
                        return unescape(document.cookie.substring(c_start, c_end));
                    }
                }
                return "";
            }
 
            function OpenConsumerWindow() {
                var oWnd = $find('<%= FormView1.FindControl("ConsumerWindow").ClientID %>');
 
                oWnd.setUrl('ConsumerIssue.aspx?ConsumerID=' + getCookie());
                oWnd.show();
                oWnd.maximize();
            }
 
        </script>
 
        <asp:FormView ID="FormView1" runat="server" DataKeyNames="ItemID" GridLines="None" OnItemCommand="FormView1_ItemCommand"  Width="100%">
            <EditItemTemplate>
                <div>
                    <table>
                        <tr>
                            <td>
                                <telerik:RadTextBox ID="tbConsumerInfo" runat="server" EmptyMessage="No Consumer" ReadOnly="true" BackColor="LightYellow" style="float:right;" ></telerik:RadTextBox>
                            </td>
                            <td>
                                <telerik:RadButton ID="btnAddConsumer" runat="server" Width="16px" Height="16px" AutoPostBack="false" style="padding-top:-5px;float:right;" ToolTip="Add/Edit Consumer" CausesValidation="false" OnClientClicked="OpenConsumerWindow" Visible="false">
                                    <Image ImageUrl="Images/icons/ClipboardPlus.png"  IsBackgroundImage="true"/>
                                </telerik:RadButton>
                            </td>
                             
                        </tr>
                    </table>
                </div>
 
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Behaviors="None"  RenderMode="Lightweight" ShowContentDuringLoad="false">
                    <Windows>
                        <telerik:RadWindow ID="ConsumerWindow" runat="server" >
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>
 
            </EditItemTemplate>
        </asp:FormView>
    </form>
</body>


Page which is opened inside the RadWindow
<!-- Page inide of radwindow -->
 
<body id="ConsumerBody">
    <div id="MainDiv">
        <table>
            <tr>
                <td>
                    <telerik:RadTextBox ID="tbConsumerInfo" runat="server" ReadOnly="true" BackColor="LightYellow" ></telerik:RadTextBox>
                </td>
                <td>
                    <telerik:RadButton ID="btnCheckDB" runat="server" AutoPostBack="true"  CausesValidation="true" OnClick="btnCheckDB_Click" />
                </td>
            </tr>
        </table>
    </div>
</body>

Pretty much what happens is that when a user enters text into the textbox and clicks the btnCheckDB button some processing takes place in the code behind. the returned value from the database must be sent through to the parent page and the tbConsumerInfo TextBox must be updated with this data once the RadWindow is closed.

Please would you provide some feed back on how we would achieve this.

Thank you in advance.

Carlos
Top achievements
Rank 2
 answered on 02 Jul 2014
1 answer
140 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
115 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
189 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
212 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
79 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
328 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?