Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hello All,
Greeting of the day!

I am facing some problem in Telerik RadChart Control.

My requirement is this:
I am using radchart control for displaying company different ranking.
I want to make link and show tooltip description on mouseover on each item.
I am not getting any for this.
I attached image file according my requirement.
Please have a look this and suggest me how we will do this on PIE RadChart.

My another question is that I am using DNN 6.2 version and I am not getting RadHTMLChart control on the telerik DLL.
Please let me know how we will get RadHtmlChart control in DotnetNuke 6.2 version.

Thanks
Viky
Evgenia
Telerik team
 answered on 11 Sep 2012
1 answer
92 views
Hi,
I want to achieve such scenario.
I`m invoking CreateColumnEditor and want it to show different edit controls, depending on actually editable rows control(data inside the control).

Any ideas to get me going? Some small code sample?
Marin
Telerik team
 answered on 11 Sep 2012
1 answer
167 views
have Implemented telerik Tree-view in page and populating node using web-service.
Source code look like
<telerik:RadTreeView ID="tvNodes" runat="server" EnableDragAndDrop="false" ExpandAnimation-Type="OutExpo" ExpandAnimation-Duration="800" EnableDragAndDropBetweenNodes="false" CollapseAnimation-Type="OutElastic" CollapseAnimation-Duration="800" Skin="Windows7" OnNodeDrop="tvNodes_HandleDrop" ClientNodePopulating="nodePopulating">
       <ContextMenus>
           <telerik:RadTreeViewContextMenu ID="NodesTreeMenu" runat="server" CssClass="MenuGroup" Skin="Windows7">
               <CollapseAnimation Type="none" />
           </telerik:RadTreeViewContextMenu>
       </ContextMenus>
       <WebServiceSettings Path="../ManageNode.asmx" Method="GetNodes">
       </WebServiceSettings>
   </telerik:RadTreeView>
Javascript
function nodePopulating(sender, eventArgs) {
       var node = eventArgs.get_node();
       var context = eventArgs.get_context();
       SelectedType = '1'//selected node id.
       SearchText = ''
       context["ParentID"] = node.get_value();
       context["AllowDragAndDrop"] = allowDragDrop;
       context["SelectedType"] = SelectedType;
       context["SearchText"] = SearchText;
   }
webmethod
[WebMethod]
   public RadTreeNodeData[] GetNodes(RadTreeNodeData node, object context)
   {
       IDictionary<string, object> contextDictionary = (IDictionary<string, object>)context;
       List<RadTreeNodeData> nodes = new List<RadTreeNodeData>();
       int parentID = Convert.ToInt32(contextDictionary["ParentID"]);
       bool AllowDragAndDrop = Convert.ToBoolean(contextDictionary["AllowDragAndDrop"]);
       int selectedType = Convert.ToInt32(contextDictionary["SelectedType"]);
       string SearchText = Convert.ToString(contextDictionary["SearchText"]);
       dsNodes = NodeBLL.GetAllRecordsByNodeDefinition(selectedType, parentID, SearchText.Trim());
       for (int rowCount = 0; rowCount < dsNodes.Tables[0].Rows.Count; rowCount++)
       {
           DataRow childRow = dsNodes.Tables[0].Rows[rowCount];
           RadTreeNodeData childNode = new RadTreeNodeData();
           if (Convert.ToInt16(childRow["StatusID"]) == Convert.ToInt16(Common.NodeStatus.Archieve))
           {
               childNode.Text = Common.DecodeXML(Convert.ToString(childRow["Name"])) + Common.deleteFlag;
           }
           else
           {
               childNode.Text = Common.DecodeXML(Convert.ToString(childRow["Name"]));
           }
           childNode.Value = Convert.ToString(childRow["ID"]);
           childNode.Attributes.Add(Common.virtualIDAtt, Convert.ToString(childRow["virtualID"]));
           childNode.Attributes.Add(Common.isVirtualExist, Convert.ToString(childRow["isVirtualExist"]));
           childNode.Attributes.Add(Common.NodeDefinitionID, Convert.ToString(childRow["NodeDefinitionID"]));
           childNode.Attributes.Add(Common.ParentNodeID, Convert.ToString(childRow["ParentID"]));
           childNode.Attributes.Add(Common.Position, Convert.ToString(childRow["Position"]));
           childNode.Attributes.Add(Common.NodeDefinition, Convert.ToString(childRow["NodeDefinition"]));
 
           childNode.ExpandMode = (Convert.ToInt32(childRow["ischildexists"]) > 0) ? TreeNodeExpandMode.WebService : TreeNodeExpandMode.ClientSide;
           nodes.Add(childNode);
       }
    return nodes.ToArray();
   }
When I click on expand arrow then through javascript function web method is called to populate child node, it's worked perfect, I have issue in performance when parent node have 1000+ child nodes, I want to implement in batch mode like when user click on expand arrow then load 200 child node with more button then click on more button then load next 200 node. can any one have idea to achieve this feature.

Thanks,
Mohmedsadiq.
Plamen
Telerik team
 answered on 11 Sep 2012
8 answers
210 views
I have a radgrid where I want the user to be able to just click to select multiple rows.  Not click and drag, and not ctrl-click.  Instead, every time they click a row it either selects that row, if it's not already selected - or it deselects it if it's currently selected.  So in the end you end up with a grid with multiple rows selected. 

I would need to intercept the rowclick because I need to check to see if there are 6 rows selected yet.  Once there are 6 rows selected, I'll need to grab the values from the 6 rows and redirect the user to another page where I use those values.

Is this possible with RadGrid?  I currently do this with a GridView, but it's all done on the client side...  It would be nice to be able to use some of the built-in functionality in RadGrid to accomplish this, but I've been working on it for a couple hours and haven't been able to get it to respond the way I thought it would...

Thanks for the help!

Eddie
Radoslav
Telerik team
 answered on 11 Sep 2012
0 answers
52 views

Hi

BinaryImage doesn't resize after change ImageUrl image instead previous  BinaryImage or image with  ImageUrl when ResizeMode="Fit"

Please fix this.

mastermehdi
Top achievements
Rank 2
 asked on 11 Sep 2012
1 answer
457 views
Hello,

Its very urgent.

I have 2 radlistbox in radpageview.
Definition is as below:

<telerik:RadPageView ID="rpvAssignProcess" runat="server">
 <table cellpadding="0" cellspacing="0">
 <tr>
 <td>Available Process</td>
 <td>Assign Process</td>
 </tr>
<tr>
<td>
    <telerik:RadListBox ID="rlboxAvailableProcess" runat="server" AllowTransfer="True" 
        DataSourceID="SqlDataSource_Process" DataTextField="ProcessName"   Skin="WebBlue" 
        TransferToID="rlboxAssignProcess" Height="200px" Width="300px" DataValueField="ProcessName"  
        >
        <ButtonSettings TransferButtons="All" />
        <ItemTemplate>
                <div>
                    <span style="float:left;padding:10px">
                        <%# DataBinder.Eval(Container.DataItem, "CustomerID")%>
                   <br />
                        <%# DataBinder.Eval(Container.DataItem, "ProcessName")%>
                    </span>
                </div>
            </ItemTemplate>
            
  
        <WebServiceSettings>
            <ODataSettings InitialContainerName="">
            </ODataSettings>
        </WebServiceSettings>
    </telerik:RadListBox>
      
    </td>
<td>
 <telerik:RadListBox ID="rlboxAssignProcess" runat="server" AllowDelete="false" AllowReorder="true" 
         Skin="WebBlue" Height="200px" Width="300px" DataSourceID="SqlDataSource_Process1"
         DataTextField="ProcessName" DataValueField="ProcessName">
        <ButtonSettings Position="Right" VerticalAlign="Top" />
            
</telerik:RadListBox>
  
  
 </td>
</tr>
  </table>
    
</telerik:RadPageView>

Code behind code:

Protected Sub RadTabStrip1_TabClick(sender As Object, e As Telerik.Web.UI.RadTabStripEventArgs) Handles RadTabStrip1.TabClick
  
        If RadTabStrip1.SelectedIndex = 4 Then
            Try
                Dim CustomerID As String = ""
                For Each item As GridDataItem In rgView1.MasterTableView.Items
                    If item.Selected = True Then
                        If CustomerID = "" Then
                            CustomerID = item.Item("CustomerID").Text
                        Else
                            CustomerID += "','" + item.Item("CustomerID").Text
                        End If
                    End If
                Next
                SqlDataSource_Process.SelectCommand = "SELECT CustomerID,ProcessName FROM tbl_Process where CustomerID IN ('" & CustomerID & "')"
                rlboxAvailableProcess.DataBind()
            Catch ex As Exception
  
            End Try
        End If
  
    End Sub

It shows multicolumn in first radListbox with values CustomerId, ProcessName. Also i can transfer it to second radlistbox. I tried to transfer data from second to first radlistbox. Data is transfering but it is not visible, transfered row in first listbox is not visible properly. Why it happens? Guide me

Jayanthi
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
94 views
hello,

i would to know how i'm hide the chart label "Series xx" from the chart and how can i positioning this label (without hide it) to the buttom
Princy
Top achievements
Rank 2
 answered on 11 Sep 2012
4 answers
219 views
My code :

<telerik:RadGrid ID="RadGridOrder" ShowStatusBar="true" runat="server" OnNeedDataSource="RadGridOrder_NeedDataSource"
                        OnItemDataBound="RadGridOrder_ItemDataBound" Width="100%" AutoGenerateColumns="False"
                        AllowMultiRowSelection="False" GridLines="None" AllowAutomaticUpdates="True"
                        OnItemUpdated="RadGridOrder_ItemUpdated" EnableViewState="true" OnEditCommand="RadGridOrder_ItemEdit"
                        OnDataBound="RadGridOrder_DataBound" OnItemCommand="RadGridOrder_ItemCommand">
                        <ClientSettings EnableRowHoverStyle="true" AllowColumnsReorder="false" ReorderColumnsOnClient="true">
                            <Selecting AllowRowSelect="True" />
                            <Resizing EnableRealTimeResize="false" ResizeGridOnColumnResize="false" AllowColumnResize="false">
                            </Resizing>
                        </ClientSettings>
                        <MasterTableView Width="100%" DataKeyNames="OrderSubOrderID" ExpandCollapseColumn-ButtonType="ImageButton"
                            EditMode="InPlace" ExpandCollapseColumn-CollapseImageUrl="Img/minus.png" ExpandCollapseColumn-ExpandImageUrl="Img/Plus.png">
                            <DetailTables>
                                <telerik:GridTableView ShowHeadersWhenNoRecords="false" HorizontalAlign="Right" BorderWidth="1px"
                                    EnableNoRecordsTemplate="" Width="80%" runat="server">
                                    <ParentTableRelation>
                                        <telerik:GridRelationFields DetailKeyField="OrderSubOrderID" MasterKeyField="OrderSubOrderID" />
                                    </ParentTableRelation>
                                    <Columns>
                                        <telerik:GridBoundColumn HeaderText="ShippingStatus" DataField="Status" UniqueName="ShippingStatus">
                                        </telerik:GridBoundColumn>
                                        
                                        <telerik:GridBoundColumn HeaderText="textShipDate" DataField="ShippedOn" DataFormatString="{0:MM/dd/yyyy}"
                                            UniqueName="Timestamp">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn HeaderText="Quantitystr" DataField="Quantity" UniqueName="quantity">
                                        </telerik:GridBoundColumn>
                                    </Columns>
                                </telerik:GridTableView>
                            </DetailTables>
                            <Columns>
                                <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="25" HeaderStyle-Width="25" />
                                <telerik:GridTemplateColumn HeaderText="ExternalItemstr" UniqueName="SKU">
                                    <ItemTemplate>
                                        <%#Eval("SKU")%>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtCouponCode" runat="server" Text='<%#Eval("SKU")%>'
                                            Width="95" />
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn HeaderText="txtQuantityOrdered" DataField="Quantity" UniqueName="OrderedQuantity">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn HeaderText="txtQuantityShipped" DataField="Shipped 
Quantity" UniqueName="ShippedQuantity">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                        <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                        </ClientSettings>
                    </telerik:RadGrid>

Screen Short: please check attachment.

Please let me know if any one know solution.


 

Shinu
Top achievements
Rank 2
 answered on 11 Sep 2012
1 answer
82 views
I am looking at an example on how to add new entries using javascript. 

Thanks. Randy
Kalina
Telerik team
 answered on 11 Sep 2012
4 answers
1.4K+ views
I am trying to set up a RadAutoCompleteBox that pulls the current list of items from a data source and allows the user to add and remove from that list. So far in all of the examples I've seen, I can set the DataSourceID, DataTextField, and DataValueField to allow the user to add entries to the box, but I don't see a built-in way to start the RadAutoCompleteBox with entries in it.

For example, a RadComboBox used in a form can use SelectedIndex='<%#Bind("Field")%>' to select an item in the combo box 
using the parent form's data object. I would like to do something like that in the AutoCompleteBox and pass in a string of SelectedValues or something like that. Is that possible?

<telerik:RadAutoCompleteBox runat="server" ID="people"
    AllowCustomToken="true" InputType="Token"
    DataSourceID="dsPeople" DataTextField="Name" DataValueField="ID">
</telerik:RadAutoCompleteBox>
Sypher
Top achievements
Rank 1
 answered on 10 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?