Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
97 views
I have a read only grid control on the web.  When you click on a row i want to be able to display whole bunch of information on the right side of the grid.  For example lets say you have a first name and last name showing on the grid.  Upon clicking on the grid row user can see further information such as address, email, etc on that user on the right side of the grid.
My questions are
 #1 the SelectedIndexChanged doesn't fire why? am i doing something wrong?
#2 I see the manual say use a checkbox.  It doesn't really work for me but I figured i place a checkbox on the grid( i don't see an option for autopostback on the checkbox column).  Anyways, I run  the app and the checkbox is disabled ( i can't click on it).
Can someone help me here?
Thanks

Saro
Top achievements
Rank 1
 answered on 07 May 2012
7 answers
120 views
Hi,

Is that possible to rotate RadTabStrip tabs automatically like a slide show?

improwise
Top achievements
Rank 1
Iron
Iron
 answered on 07 May 2012
1 answer
183 views
Hi

I'm using a RadComboBox with check boxes and server side when the user saves the form I insert using the following:
var sb = new StringBuilder();
var collection = ddlAdditionalStaff.CheckedItems;
foreach (var item in collection)
sb.Append(item.Value + "|");

Which leaves me with a field in my database table eg. Fred|Mark|Gary|

My question is how can I rebind this field to the RadComboBox with Checkboxes when the user edits the form. I have tried the text, selected value and checkeditems without luck. I have seen in the documentation the DataCheckedField can be used, but I do not understand it's use so could do with some clarification.

Any help would be greatly appreciated.

Ben
Ben
Top achievements
Rank 1
 answered on 07 May 2012
2 answers
110 views
I'm working with the RadChart in displaying a stacked bar chart.  I have enabled scrolling along the x-axis.  The scrollbar is overlapping the bottom series (see attached image).  How do I fix this?
Chad Johnson
Top achievements
Rank 1
 answered on 07 May 2012
8 answers
136 views
Hello,

after updating the ASP.Net controls from Q3 2011 to Q1 2012 the following problem occured;
When disabling the RadDatePicker and hide the DatePopupButton the display of the date is a litlle bit unexpected :-). If the DatePopupButton stays vsible everything works fine but when visible is false than there's my problem.

.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1.PanelBar_Default" %>
 
<%@ Register Src="~/PanelBar/WebUserControl.ascx" TagName="ucpb" TagPrefix="usercpb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head id="Head1" runat="server">
  <title></title>
  <style type="text/css">
     
  </style>
  <script type="text/javascript">
  </script>
</head>
<body>
  <form id="form1" runat="server">
  <telerik:RadScriptManager ID="ScriptManager1" runat="server">
  </telerik:RadScriptManager>
  <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
  </telerik:RadAjaxManager>
  <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Outlook">
  </telerik:RadAjaxLoadingPanel>
  <telerik:RadScriptBlock ID="ScriptBlock1" runat="server">
    <script type="text/javascript">
    </script>
  </telerik:RadScriptBlock>
  <telerik:RadAjaxPanel runat="server" ID="rapHourControl" LoadingPanelID="RadAjaxLoadingPanel1">
    <div style="width: 100px;">
      <telerik:RadDatePicker runat="server" ID="rdpDate" Skin="Windows7" Width="100px"
        TabIndex="2" DatePopupButton-TabIndex="-1">
        <DateInput ID="rdpDateInput" runat="server" EmptyMessage="Required">
          <EmptyMessageStyle BackColor="#FFF1F1" Font-Italic="True" ForeColor="Red" />
          <FocusedStyle BackColor="#CCFFCC" />
        </DateInput>
      </telerik:RadDatePicker>
    </div>
  </telerik:RadAjaxPanel>
  </form>
</body>
</html>

aspx.cs:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using Telerik.Web.UI;
using System.Data;
 
namespace WebApplication1
{
  public partial class PanelBar_Default : System.Web.UI.Page
  {
    protected void Page_Load(object sender, EventArgs e)
    {
      rdpDate.Enabled = false;
      rdpDate.DatePopupButton.Visible = false;
    }
 
    protected override void OnInit(EventArgs e)
    {
      base.OnInit(e);
 
      rdpDate.SelectedDate = DateTime.Now;
    }
  }
}

Anyone?

Regards,
  Jos Meerkerk



Vasil
Telerik team
 answered on 07 May 2012
4 answers
104 views
Editor: any option for thesaurus? Could I integrate something like nhunspell or mythes?

Form fields: Is there any built in way to dynamically add /duplicate a group of fields including upload?

Thanks, Marty
moegal
Top achievements
Rank 1
 answered on 07 May 2012
2 answers
128 views
This is what I'm trying to achieve:

I have some data that I want to export using a click of a button. When the user clicks the export button, I'm creating mutliple RadGrids dynamically, adding them to the form, and triggering the ExportToExcel() method.

This is part of the code:
For Each Vendor_ID As Integer In hashDataByVendor.Keys
    Dim tempRadGrid As New Telerik.Web.UI.RadGrid
    Dim dtVendor_ID As System.Data.DataTable = hashDataByVendor(Vendor_ID)
    tempRadGrid.DataSource = dtVendor_ID
    Dim vendor As New Vendor(Vendor_ID)
    tempRadGrid.ID = String.Format("{0}-{1}", vendor.Vendor_Name, Date.Now.ToString("MMddyyyy_HHmmssfff"))
    tempRadGrid.MasterTableView.Caption = String.Format("{0} ETA List for {1}", vendor.Vendor_Name, Date.Today.ToString("MM/dd/yyyy"))
 
    Dim tempColumnGrid As New Telerik.Web.UI.GridBoundColumn
    tempRadGrid.MasterTableView.Columns.Add(tempColumnGrid)
    tempColumnGrid.DataField = "Task_ID"
    tempColumnGrid.HeaderText = "Task ID"
    tempColumnGrid.ItemStyle.HorizontalAlign = HorizontalAlign.Left
 
    tempRadGrid.MasterTableView.ShowHeader = True
    tempRadGrid.AutoGenerateColumns = False
    tempRadGrid.ExportSettings.HideStructureColumns = False
    tempRadGrid.ExportSettings.ExportOnlyData = True
    tempRadGrid.ExportSettings.FileName = String.Format("{0} - {1}", vendor.Vendor_Name, Date.Now)
    tempRadGrid.ExportSettings.OpenInNewWindow = True
    Page.Controls.Add(tempRadGrid)
    tempRadGrid.DataBind()
    intTempVendor_ID = vendor.Vendor_ID ' Store the current vendor_id so we can use it in the GridExporting Sub.
    tempRadGrid.MasterTableView.ExportToExcel()
 
    AddHandler tempRadGrid.GridExporting, AddressOf tempRadGrid_GridExporting
    intVendorsCounter += 1
Next

When there is only ONE Grid created through this loop - everything works fine.

When there is more then one Grid created I'm getting an error: 

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:

Line 355:                tempRadGrid.ExportSettings.FileName = String.Format("{0} - {1}", vendor.Vendor_Name, Date.Now)
Line 356:                tempRadGrid.ExportSettings.OpenInNewWindow = True
Line 357:                Page.Controls.Add(tempRadGrid)
Line 358:                tempRadGrid.DataBind()
Line 359:                intTempVendor_ID = vendor.Vendor_ID ' Store the current vendor_id so we can use it in the GridExporting Sub.



Any clue on how to solve this matter?
Daniel
Telerik team
 answered on 07 May 2012
1 answer
47 views
Hi All,

I have 2 questions about RadEditor

1. How can I add an item (like insert image) to my editor using ribbon mode with default tools?
2. Is there any way to add RTL and LTR buttons to RadEditor in ribbon mode with default tools?

Thank you.
Rumen
Telerik team
 answered on 07 May 2012
1 answer
199 views
I need to convert radgrid which has detail tables to html and send by email.

HtmlTextWriter

 

 

a = null; ;

 

rg.RenderControl(a);


does not work ( looked at http://gchandra.wordpress.com/2006/08/23/export-datagrid-to-html/)
error: rg is not a registered sctript control...script controls must be registerd using registerscriptcontrol() before calling registerscriptDescription()...

Can you send some working sample for convert radgrid to html text.
or some sample code for looping grid master and detail table  to get out put html text.

Please help!!!
Shinu
Top achievements
Rank 2
 answered on 07 May 2012
3 answers
266 views
Is there a simple way to have the dropdown (the "child menu") centered instead of aligned left or right? I guess you could write a function to calculate it and then use OffsetX property, but that seems very complicated. This should be a standard option I believe in the designer. 
Princy
Top achievements
Rank 2
 answered on 07 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?