Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
670 views
I have read several posts regarding this topic and have not really found a good answer. I have a datagrid that I need to add some additional columns when I export the data (Excel, CSV, PDF, Word) and populate with some extra data. I have tried adding the columns on the GridExporting and ItemCommand events but it doesn't work. I can't do this in the ItemDatabound event because I won't have the extra data at this time. Does anyone have any suggestions?
dhuss
Top achievements
Rank 1
 answered on 11 Jul 2013
1 answer
164 views
I have a radCombobox that has multiple items in the dropwdown list, when users check the items they want to see the dropwdownlist should post back and return the items they want to see but it is not doing anything and I dont know if I am getting the items properly or its just not posting back.

Here is the HTML
<telerik:RadComboBox ID="ddlRadTeam" runat="server" Width="160px" BackColor="White" ForeColor="Black" EmptyMessage="Pick Team" AutoPostBack="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true"></telerik:RadComboBox>

Here is my filldatasource
Protected Sub myRadGrid_NeedDataSource(sender As Object, e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles myRadGrid.NeedDataSource
       Dim SqlWhere As String = ""
       Dim items As String = ""
 
       If rblActive.SelectedValue = Nothing Then
           SqlWhere = " where r.bitActive = 1"
           rblActive.SelectedValue = 1
       ElseIf rblActive.SelectedValue = "All" Then
           SqlWhere = ""
       ElseIf rblActive.SelectedValue = "0" Then
           SqlWhere = " where r.bitActive = 0"
       ElseIf rblActive.SelectedValue = "1" Then
           SqlWhere = " where r.bitActive = 1"
           rblActive.SelectedValue = 1
       End If
 
       If fillGrid = True Then
           If ddlRadTeam.CheckedItems.Count > 0 Then
               For Each item As RadComboBoxItem In ddlRadTeam.Items
                   If item.Selected Then
                       items += item.Value & ","
                   End If
               Next
           End If
 
           If ddlRadTeam.SelectedItem.Checked = True And rblActive.SelectedValue = "All" Then
               SqlWhere = " where r.intTeamId IN (" & items & ")"
           ElseIf ddlRadTeam.Items.Count > 0 Then
               SqlWhere += " and r.intTeamId IN (" & items & ")"
           End If
       End If
       sql = "sql select " & SqlWhere
 
       myRadGrid.DataSource = getData(sql)
 
       pnlGrid.Visible = True
   End Sub


this is my attempt to get the grid to post back using the selected index change of the combobox and the itemchecked but neither work.
Protected Sub ddlRadTeam_ItemChecked(sender As Object, e As RadComboBoxItemEventArgs) Handles ddlRadTeam.ItemChecked
       fillGrid = True
       myRadGrid.Rebind()
   End Sub
 
   Protected Sub ddlRadTeam_SelectedIndexChanged(sender As Object, e As RadComboBoxSelectedIndexChangedEventArgs) Handles ddlRadTeam.SelectedIndexChanged
       fillGrid = True
       myRadGrid.Rebind()
   End Sub






























































Boyan Dimitrov
Telerik team
 answered on 11 Jul 2013
7 answers
282 views
Hi

Summary
I need help with RadTabStrip. I need to know which event to use to Save the data from the 1st tab when tab is clicked...current I am using tabclick event. 

Details
I have 4 tabs...Tab 1, Tab 2, Tab 3 and Tab4. By default the users see Tab 1. Once the user changes the Tab 1 to any other tab...I need to save the data from the 1st tab in database.

If the users click Tab 3 and if Tab 2 is missing information I need to redirect the user to Tab 2.

Currently I am using TabClick Event to save the data in database if the user is coming from Tab 1..it also save some info for Tab 2. If Tab 2 is missing some information I display javascript alert and SetActiveTab (i.e; ...set_selectedIndex(2) to 2...but the problem is I get redirected to Tab 3 first and then to Tab 2....how can i cancel Tab 3 redirect using server side code or should where should I conduct the Auto Save of data?

Jinisha
Nencho
Telerik team
 answered on 11 Jul 2013
1 answer
55 views
Hi,

After the skin "Telerik" is applied,

The "next" and "previous" images are rendered properly in a simple calendar control. - http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

But the calendar control in the scheduler does not render the "next" and "previous" images properly. - http://demos.telerik.com/aspnet-ajax/scheduler/examples/customization/defaultcs.aspx

I would want to bring it to your attention so that you could have it fixed in your next official release.

Is there a fix for this available?

Thanks in advance,
Navaneeth
Plamen
Telerik team
 answered on 11 Jul 2013
2 answers
373 views
Hi,

I am trying to convert my asp.net code to rad. On Itemdatabound I want to get the value of the column "id1" specified below. I am specifying id1 as DataKey when defining the rad grid.

 <telerik:RadGrid ID="View1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" GridLines="Horizontal" OnItemDataBound="RadGrid2_ItemDataBound" DataKeyNames="id1" >
<telerik:GridTemplateColumn>
             <ItemTemplate>
                        <a href="javascript:collapseExpand('id1_<%# Eval("d1") %>');">
                            <img id="imageSubId_<%# Eval("id1") %>" alt="Click to show/hide orders" border="0"
                                src="Images/bullet_toggle_plus.jpg" /></a>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="id1" HeaderText="ID"/>
    <telerik:GridTemplateColumn>

Code Behind:
foreach (GridDataItem item in View1.MasterTableView.Items)
                {
                    if (item.IsDataBound)
                    {
                        string oid = item.GetDataKeyValue("id1").ToString();
                        Response.Write(oid);
}
}

When I execute this code I am not getting the value of id1. 

Can someone look into this?
John
Top achievements
Rank 1
 answered on 11 Jul 2013
2 answers
296 views

I have an asp.net page where I have declared static id's in the page declaration

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb"
Inherits="Test" ClientIDMode="Static" %>

On the page I have a combobox. ID=cmb_Marriage

At the end of my page I have the following function

 

$(window).load(function(){
    var combo = $('#cmb_Married');

    if(combo.get_selectedItem().get_Text() == "Yes") {
      $('#div_Married').show("slow");
   
}
}

When I run the page I get an error on the third line of the above code. Error = Microsoft JScript runtime error: Object doesn't support this property or method.

I have tried changing first line to var combo = $find("<%= cmb_Married.ClientID %>");

but still get the same error.

Any ideas why?

 

Mych
Top achievements
Rank 1
 answered on 11 Jul 2013
3 answers
213 views
I'm looking for a solution as to how best to implement clustered/grouped stacked bar charts using RadChart for ASP.NET? It's effectively a very similar question to what was asked here over a year ago, Silverlight isn't an option for me.

Creating series with a type of StackedBar works to an extent, in that I am able to have one stacked bar grouped with regular Bars, but I don't see any way to differentiate an additional StackedBar within the grouping, it ends up stacking on top of the original StackedBar.

Is there any workaround demo/suggestions for this?

Let me know if I can provide you with any further details.

Thanks,
Allan
Rosko
Telerik team
 answered on 11 Jul 2013
3 answers
127 views
Haii,

I want to position the legend to the bottom of the radchart. How do I do this.

RT
Petar Kirov
Telerik team
 answered on 11 Jul 2013
1 answer
132 views
Hi,
  We're using the latest update of RadDropDownTree (2013.2.611.40 -- Much improved, thanks!!!) We have a requirement to show only "All" in the selected text when all items are selected in the tree. I cannot find how to set this value. Could anyone provide some assistance for this?


Thanks
Kate
Telerik team
 answered on 11 Jul 2013
1 answer
133 views
I am exporting PDF from the RadGrid and I am displaying an image in the PageFooter. Because equal size is given to the LeftCell, MiddleCell and RightCell, my image is too small.

                radGrid1.ExportSettings.Pdf.PageFooter.MiddleCell.Text = "<img src=\"images/legend.jpg\"/>";
                radGrid1.ExportSettings.Pdf.PageFooter.MiddleCell.TextAlign = GridPdfPageHeaderFooterCell.CellTextAlign.Center;

Is there a way that I can use the space allocated for the LeftCell and the Middle cell for my one cell?  That would give enough spacde for my image. Any way at all to influence the size of the PageFooter cells?


Kostadin
Telerik team
 answered on 11 Jul 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?