Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
Hi,

I am using 2014.3.1024.40 of the ASP.NET for AJAX Controls.

I have a chart with a stacked ColumnSeries.

I want to be able to click on any of the columns and display a new browser window with additional information about that specific point in the series.  I figure I could easily do that in the OnSeriesClick event handler in javascript.  I could do a window.open with a URL to the aspx page I want to display.

I see that the args that are passed to the OnSeriesClick event can give me things like the value and category of that series point.

But I need to pass an ID that I can use as a querystring parameter in the URL I will build in the OnSeriesClick event handler function.

So, is there a way to add additional "context" information to the series, so that I can read and use it in the OnSeriesClick event handler function?

Adding context like this is the type of thing that can be done with your treeview control, so that with that control, for instance, you can then pass the context information to a web service to populate the node with a web service...

Or is there a different way to do this with the HTMLChart control?

Thanks,
Michael
Danail Vasilev
Telerik team
 answered on 20 Jan 2015
8 answers
1.4K+ views
Hi there.

I have a rad grid with a detail table and I want to have the master row expand (to show the details) when a master row is selected. What is the best way to do this?

Thanks, Mike
Fawad
Top achievements
Rank 1
 answered on 20 Jan 2015
2 answers
1.0K+ views
Hi..

I have a radgrid with a column that I'm entering a reference number that I wish to use to extract a corresponding row value. This reference value is not required to be stored so I only need to access the entry whilst the cells are in edit mode (red updated symbol) I wish to use the extracted value to plot a route via google maps.. and the reference will be a number corresponding to the waypoint order. How can I extract a list of strings of postcode column based on numerical value / null value in map column.

<telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowPaging="True" PageSize="10" EnableViewState="True"
        AutoGenerateColumns="False" OnNeedDataSource="RadGrid1_NeedDataSource" OnItemUpdated="RadGrid1_ItemUpdated"
        OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted" OnDataBound="RadGrid1_DataBound"
        OnItemCommand="RadGrid1_ItemCommand" OnItemDataBound="RadGrid1_ItemDataBound"
        CellSpacing="0" Skin="Windows7">
           <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="ID, PK"
            HorizontalAlign="NotSet" AutoGenerateColumns="False" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
11                 AllowAutomaticUpdates="False" EditMode="Batch">
            <BatchEditingSettings EditType="Cell" />
            <Columns>
                <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name"
                    UniqueName="Name" ColumnEditorID="GridTextBoxColumnEditorEditor1">
                </telerik:GridBoundColumn>
                <telerik:GridHyperLinkColumn DataNavigateUrlFields="Postcode" HeaderText="Location" SortExpression="Location"
                    DataTextField="Location" UniqueName="Location" DataNavigateUrlFormatString="http://maps.google.co.uk/maps?q={0}">
                </telerik:GridHyperLinkColumn>
                <telerik:GridNumericColumn DataField="Map" HeaderText="Map" SortExpression="Map"
                    UniqueName="Map" Display="false" ColumnEditorID="GridTextBoxColumnEditorMap">
                </telerik:GridNumericColumn>
                <telerik:GridBoundColumn DataField="Sample" HeaderStyle-Width="300px" HeaderText="Equipment" SortExpression="Sample"
                    UniqueName="Equipment" ColumnEditorID="GridTextBoxColumnEditorEditor3">
                </telerik:GridBoundColumn>>
                <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                    ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                    UniqueName="Delete">
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                </telerik:GridButtonColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

protected void rut_Click(object sender, EventArgs e)
        {
          string v;
           foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
           {
               if (item.FindControl("Map") != null)
               {
                   v = (item.FindControl("Map") as TextBox).Text;
               }
           }

            ClientScript.RegisterStartupScript(this.GetType(), "yourMessage", "alert('" + v + "');", true);
        }
Dave
Top achievements
Rank 1
 answered on 20 Jan 2015
1 answer
336 views
Hi.

I have a scenario where a customer needs to upload to Amazon S3 a zip of files (it will contain a folder structure too) and then extract all the files and honour the folder structure too. It’s similar to this demo but that demo doesn’t use RadCloudUpload. The problem is that the zip file may be hundreds of MBs in size and it will always be to S3 so we need to use RadCloudUpload. 

Furthermore, as they are uploaded we need to enter the file and folder details in to a database table, and associate a few more custom fields to each file like a guid, tenantID, uploadedBy etc. Then we want to use RadFileExplorer to browse the files and custom fields similar to this demo

Is this possible? Any suggestions would be greatly appreciated.

Thanks in advance.

Chris

Hristo Valyavicharski
Telerik team
 answered on 19 Jan 2015
1 answer
116 views
I have a radeditor control with the RealFontSize dropdown   

There are only 2 values available 24pt and 18pt


However, what is displaying in the text of the closed dropdown is either 32px or 24px.  (See attached image).  The client is distressed because the display is showing pixels and not points.   How do I get the closed dropdown to show the actual value of either 24 or 18 pt?  

The client area content returned to the sever has the value in points.    



  function OnClientLoad2(editor, args) {
           var style = editor.get_contentArea().style;
           style.color = '#636466';
    

       }


 <telerik:RadEditor ID="RadEditor2" runat="server" Height="75px"  Width="100%"  StripFormattingOnPaste="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span"
                                    StripFormattingOptions="MSWord, MSWordNoFonts, MSWordRemoveAll, Css, Font, Span" OnClientLoad="OnClientLoad2"
           Skin="Default" EditModes="Design">
                                <RealFontSizes>
                                <telerik:EditorRealFontSize Value="24pt" />
                                <telerik:EditorRealFontSize Value="18pt" />
                                </RealFontSizes>
                                     <Tools>
                                      <telerik:EditorToolGroup>
                                        <telerik:EditorTool Name="Save" Text="Save" />
                                        <telerik:EditorTool Name="Cancel" Text="Cancel" />
                                        
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="Cut" />
                                        <telerik:EditorTool Name="Copy" />
                                        <telerik:EditorTool Name="Paste" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="Undo" />
                                        <telerik:EditorTool Name="Redo" />
                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="InsertSymbol" />
                                      </telerik:EditorToolGroup>
                                      <telerik:EditorToolGroup>
                             
                                                    <telerik:EditorTool Name="RealFontSize" />                           

                                        <telerik:EditorSeparator />
                                        <telerik:EditorTool Name="JustifyLeft" />
                                        <telerik:EditorTool Name="JustifyRight" />
                                        <telerik:EditorTool Name="JustifyCenter" />
                                   
                                        <telerik:EditorTool Name="JustifyNone" />
                                      </telerik:EditorToolGroup>
                                      <telerik:EditorToolGroup>
                               
                                 
                                  
                                       
                                        <telerik:EditorTool Name="AjaxSpellCheck" Text="Spell Check" />

                                     <telerik:EditorTool Name="ResetContent" Text="Clear"/>

                                      </telerik:EditorToolGroup>
                                    </Tools>
                                    <Content>
                                    
</Content></telerik:RadEditor>








Brete
Top achievements
Rank 1
 answered on 19 Jan 2015
2 answers
346 views
I am playing with jQuery Draggable and Droppable in combine with Telerik Editor. There are some DIV containers which i want to drag and drop into the editor at the mouse position. All DIV's are configured with jQuery Draggable and i can drop the content with pasteHtml() function but fail to drop it to the mouse position instead of cursor position in the editor.

When you select a normal text outside the editor and drag/drop it into the editor (works fine with Chrome), you will see the cursor into the editor will move with the mouse position. This behaviour is correct. But with a draggable DIV, there is no cursor in the editor and the drop will be at very beginning of at end of the document. I want the editor to be focussed and moving with the mouse cursor. 

I have read other threads but didn't found a solution.

You an idea?
Erick
Top achievements
Rank 2
 answered on 19 Jan 2015
1 answer
185 views
I have a RadButton like following:

    <telerik:RadButton ID="NewActionBtn" runat="server" NavigateUrl="New.aspx">
            <ContentTemplate>
                <span class="myClass" style="color: black"></span>
                <span class="myAnotherClass"> Add</span>
            </ContentTemplate>
     </telerik:RadButton>

I want inherit this button so I only need to pass button text for the ContentTemplate. How will I do this. I don't want a WebUserControl with ascx extension.
Danail Vasilev
Telerik team
 answered on 19 Jan 2015
1 answer
43 views
Hi,

I am using Telerik PivotGrid control to create a dashboard for a US based client. Though i am experiencing few issues regarding columns.

We need to create report run time that means user can add/delete columns, aggregate columns, rows etc. In the basic scenario we  are showing year at the columns and two aggregate columns in the data.

So it showing like this

2013                                                2014                                         2015
---------------------------------------------------------------------------------------
 agg_col1  agg_col2                 agg_col1  agg_col2                      agg_col1  agg_col2 
---------------------------------------------------------------------------------------
value 1        value 3                     value 1        value 3                       value 1        value 3           
value 2         value 3                    value 1        value 3                       value 1        value 3        

This is working fine. Now client needs to add difference columns that will display difference between aggregate columns between year as show below.

2013                                                                                                                          2014                                         
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 agg_col1  agg_col2    diff_agg_col1   diff_agg_col2                                        agg_col1  agg_col2         diff_agg_col1                                                  diff_agg_col2            
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
value 1        value 3                                                                                                 value 1        value 3        agg_col1(2014) - agg_col1(2013)        col2(2014)-col2(2013) 
value 2        value 3                                                                                                value 1        value 3                     



It will go same as above shown, i have tried to use calculated column but we can give expression only for the same group name and other thing is how we can add at runtime.

Please help me out for this.

Thanks & Regards
Pankaj





  



Vasil
Telerik team
 answered on 19 Jan 2015
3 answers
291 views
Hello,
I want to create TreeNodes with images(NodeText + Image)
Here is something like...
Private void LoadNodes()
{
  RadTreeView.Nodes.Clear();
  RadTreeNode node1 = new RadTreeNode();
  node1 = new RadTreeNode("Node Text" + Image with client Click event, "Node Value")                       node1 .Attributes.Add("IsFirstLevel", "Yes");                                                                                         RadTreeView.Nodes.Add(node1 );
}

How can i do?
Ivan Danchev
Telerik team
 answered on 19 Jan 2015
2 answers
1.0K+ views
I've been troubleshooting an Asp.Net web app and I'm fairly certain my problem is that I'm losing a session variable whenever I run the app in Internet explorer 10 or 11. (Chrome and Firefox work perfectly.) I'm seeing vague hints around the web that Ajax calls could be a problem but nothing definitive. 

The app itself makes use of Telerik Ajax controls.  The session variable is set in one page (which has little more than a RadButton and a couple of RadTextBoxes)  and then a Response.Redirect call is made to a second page (which is mostly one big RadGrid), at which time the variable is null again.  The two pages have a master page in common.

Has anyone else had this problem?
Maria Ilieva
Telerik team
 answered on 19 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?