Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
92 views
Do you guys have ever seen this gfx bug and a solution for it? (see attached jpg file)

code for it:
RadWindowManager1.RadAlert("some text", 330, 100, "some header text", "alertCallBackFn");

aspx code:
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="false" 
                 Skin="Telerik">
        </telerik:RadWindowManager>

tried changing to different skins and back to default skin. No change.
Just downloaded to the latest asp.net ajax also.

Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
61 views
I have a problem with IE.  When you click in my application the pop up window is completly off....


so that you can see it..  http://gc.jazzros.com/PopupTest.aspx

open up the URL.

Right cllick on any subject in the calendar.
then click the link in RED.  Show Speical Instructions

I can't see to figure out how to fix that.. 

thank you...


Marin Bratanov
Telerik team
 answered on 14 Apr 2011
4 answers
226 views
When using following client side code

convert: function() {
        var cb = function(arg) {
            if (arg) {
                __doPostBack('', '');
            }
        }
        originalRadConfirm("Question",
                cb, 200,
                200, null,
                "Headline");
},

the PostBack does not get triggered in Firefox after first selecting cancel and then reopining the window and calling confirm
IE and Opera are OK.

Any ideas?
Thanks
Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
56 views
Hello,

I have a problem with the radwindow control.
It is not opening in IE9 browser.
I'm using the 2009.3.1314.45 version. 
I'm interested in upgrading, but within the next two months. But for now I'm facing problems with my clients due to this problem.

Please, I need a solution.
It is very emergency.

Regards,
Bader
Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
79 views
Hi,

I'm facing an issue from an upgrade as mentioned.

I have a scenario as such, where I have a RadWindow which returns values via arguments thru OnClientClose, and I write this using javascript to two ASP textboxes, however, the moment I upgraded the component to the latest version, the value gets written to the textboxes but no text is displayed on ctl1. If I do an alert based on the ctl1 value, I can get the value, but the textbox text is still empty. ctl2 works fine.

Any Ideas?

function OnClientClose(radWindow)
{                 
  var oArg = radWindow.Argument;
  if (oArg!=null) {
    if (oArg.type == 'task')
    {
      var ctl1 = document.getElementById(oArg.key1);
      var ctl2= document.getElementById(oArg.key2);
      ctl1.style.color="blue";
      ctl1.value = oArg.value1;
      ctl2.value = oArg.value2;
    }
  }
}
Marin Bratanov
Telerik team
 answered on 14 Apr 2011
1 answer
93 views
Hello Telerik,

I have a question regarding how to access controls inside the slidingpane.

I have a FormView with a slidingpane in it (with all the structure. Slidingzone and all of that)
I have a radiobuttonlist I would like to access in order to make one of its items hidden. Since I don't see server side events (correct me if I 'm wrong) I'm trying to use a script to find all the radiobuttons and make the first item hidden. The question is how do I get the elements in order to reach my radiobuttons? can you direct me to the right direction? 

Thanks in advance

PS
This is what I've tried without success cause it falls into a loop
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="FVInitialView" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>   

function OnClientExpanded(sender, args) {
$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();
 }

<formView id="FVInitialView"....>
 <itemTemplate....>
   ....
   <telerik:RadSlidingPane ID="Radslidingpane4" Title="Page 1" runat="server" Height="550px" OnClientExpanded="OnClientExpanded">
Dobromir
Telerik team
 answered on 14 Apr 2011
2 answers
573 views
Hi I am trying to make sure that a column can not be edited but when you insert a new one the textbox is available to create a new row.  I found out how to disable the textbox that is being edited but it also disables the textbox for the insert as well and I dont want that.  Is there a way to only allow for the edit text box to be disabled and not the insert text box?
Jeremy
Top achievements
Rank 1
 answered on 14 Apr 2011
5 answers
137 views
Hi,

I ,m new bee for telerik charting. i want to display stacked chart from xml/database. i have attached chart pic to design by using xml file. Can you guys suggest how to implement the thing.

XML File Data:

<?xml version="1.0" encoding="utf-8" ?>
<LaborHours>
  <LaborHour>
    <EmployeeID>100018</EmployeeID>
    <EmployeeName>Andrew Anderson</EmployeeName>
    <InTime>5/24/10 7:57 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:48</OnClock>
    <WTDTotal>29.30</WTDTotal>
    <WTDOvertime>1.50</WTDOvertime>
    <Total>42.68</Total>
    <Overtime>4.17</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100004</EmployeeID>
    <EmployeeName>Bob Barley</EmployeeName>
    <InTime>5/24/10 7:59 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:46</OnClock>
    <WTDTotal>42.60</WTDTotal>
    <WTDOvertime>4.60</WTDOvertime>
    <Total>46.50</Total>
    <Overtime>8.83</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100006</EmployeeID>
    <EmployeeName>Cathey Cantrell</EmployeeName>
    <InTime>5/24/10 7:57 AM</InTime>
    <OutTime></OutTime>
    <OnClock>3:46</OnClock>
    <WTDTotal>27.87</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>32.10</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100009</EmployeeID>
    <EmployeeName>David Dyson</EmployeeName>
    <InTime>5/24/10 11:59 AM</InTime>
    <OutTime>5/24/10 8:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>31.50</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>39.75</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100015</EmployeeID>
    <EmployeeName>Eddie Edwords</EmployeeName>
    <InTime>5/24/10 12:01 AM</InTime>
    <OutTime>5/24/10 8:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>31.50</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>39.50</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100024</EmployeeID>
    <EmployeeName>Fiona Finegate</EmployeeName>
    <InTime>5/23/10 3:58 PM</InTime>
    <OutTime>5/24/10 12:01 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>32.00</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>32.00</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100061</EmployeeID>
    <EmployeeName>George Gilespy</EmployeeName>
    <InTime>5/23/10 4:00 PM</InTime>
    <OutTime>5/24/10 12:02 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>41.50</WTDTotal>
    <WTDOvertime>1.50</WTDOvertime>
    <Total>41.50</Total>
    <Overtime>1.50</Overtime>
  </LaborHour>
  <LaborHour>
    <EmployeeID>100088</EmployeeID>
    <EmployeeName>Haana Henderson</EmployeeName>
    <InTime>5/23/10 4:01 PM</InTime>
    <OutTime>5/24/10 12:01 AM</OutTime>
    <OnClock></OnClock>
    <WTDTotal>32.40</WTDTotal>
    <WTDOvertime>0.00</WTDOvertime>
    <Total>40.00</Total>
    <Overtime>0.00</Overtime>
  </LaborHour>
</LaborHours>




Thanks
Ravi
Missing User
 answered on 14 Apr 2011
3 answers
148 views

Hello programmers, i hope now you can help me.
I have a grid that each item has its table of detail, yet each detail table is different, because they may have a different number of columns.
I modify the structure from the code, however, when I expand the detail table shows the previous structure and expand a second time, shows the correct structure.
Is there any way to display the existing economic structure right the first time?

Annex code and images.

-- ASPX ========================================================================

<Telerik:RadGrid ID="radGriOrdComDetalles" runat="server" Width="980" AutoGenerateColumns="false"
                             AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">
                                <MasterTableView DataKeyNames="Id, prodSkucode" CommandItemDisplay="None"
                                 EditMode="InPlace" NoDetailRecordsText =" " NoMasterRecordsText="">
                                    <Columns>
                                        <Telerik:GridBoundColumn UniqueName="colIdOrdCompra" HeaderText="Id orden de compra" DataField="Id" HeaderStyle-Width="130px"/>
                                        <Telerik:GridBoundColumn UniqueName="colSku" HeaderText="SKU" DataField="prodSkucode" HeaderStyle-Width="160px"/>
                                        <Telerik:GridBoundColumn UniqueName="colDescripcion" HeaderText="Descripcion" DataField="prodDescripcion" HeaderStyle-Width="300px"/>                               
                                        <Telerik:GridBoundColumn UniqueName="colDepartamento" HeaderText="Departamento" DataField="depaDescripcion" HeaderStyle-Width="180px"/>                     
                                    </Columns>
                                    <DetailTables>
                                        <Telerik:GridTableView Name="gridProductoDetalles" DataKeyNames="Id, prodSkucode" EditMode="InPlace" NoDetailRecordsText="" NoMasterRecordsText=""
                                          GridLines="Vertical">
                                        </Telerik:GridTableView>
                                    </DetailTables>
                                </MasterTableView>
                            </Telerik:RadGrid>

-- CODE BEHIND =======================================================================
void radGriOrdComDetalles_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            try
            {
                if (e.DetailTableView.Name == "gridProductoDetalles")
                {
                    Telerik.Web.UI.GridDataItem parentItem = e.DetailTableView.ParentItem;
                    strSkucode = parentItem.Cells[3].Text;
                    strIdOrdCompra = parentItem.Cells[2].Text;
  
                    DataTable datTabDatosDetalle = new DataTable();
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        datTabDatosDetalle = CCSMovimientoProductos.BuscarProdDetOrdenCompra_CEDIS(strIdOrdCompra, strSkucode).Tables[0];
                    else
                        datTabDatosDetalle = (DataTable)ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode];
                        //e.DetailTableView.DataSource = datTabDatosDetalle;
  
  
  
                    // SE AGREGAN LAS COLUMNAS CORRESPONDIENTES.
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Clear();
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Rebind();
  
                    Telerik.Web.UI.GridBoundColumn campo;
                    foreach (DataColumn dc in datTabDatosDetalle.Columns)
                    {
                        campo = new Telerik.Web.UI.GridBoundColumn();
                        radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campo);
  
                        campo.UniqueName = "col" + dc.ColumnName;
                        campo.HeaderText = "[ " + dc.ColumnName + " ]";
                        campo.HeaderStyle.Font.Bold = true;
                        campo.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
                        campo.DataField = dc.ColumnName;
  
                        if (dc.ColumnName == "Talla")
                            campo.ReadOnly = true;
                    }
  
                    Telerik.Web.UI.GridEditCommandColumn campoEdit = new Telerik.Web.UI.GridEditCommandColumn();
                    campoEdit.UniqueName = "colEdit";
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns.Add(campoEdit);
                    campoEdit.UniqueName = "colEdit";
                    campoEdit.ButtonType = Telerik.Web.UI.GridButtonColumnType.LinkButton;
                    campoEdit.EditText = "Editar";
                    campoEdit.UpdateText = "Actualizar";
                    campoEdit.CancelText = "Cancelar";
    
                    // SE AGREGA EN EL VIEWSTATE LA REGLETA CORRESPONDIENTE AL PRODUCTO
                    if (ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] == null)
                        ViewState.Add("OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode, datTabDatosDetalle);
                    else
                        ViewState["OrdCompraProdDetallesSub" + strIdOrdCompra + strSkucode] = datTabDatosDetalle;
  
                    // SE AGREGAN LOS DATOS FINALES AL SOURCE DEL GRID.
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].DataSource = datTabDatosDetalle;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[0].Visible = false;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].Columns[1].Visible = false;
  
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].CommandItemDisplay = Telerik.Web.UI.GridCommandItemDisplay.Top;
                    radGriOrdComDetalles.MasterTableView.DetailTables[0].EditMode = Telerik.Web.UI.GridEditMode.InPlace;
                    radGriOrdComDetalles.Rebind();
                }
            }
            catch (Exception ex)
            {
            }
        }

-- CODE BEHIND =======================================================================
Carlos Rodriguez
Top achievements
Rank 1
 answered on 14 Apr 2011
1 answer
34 views
Hello,

I have a bar chart with one series. PSA image there are 4 Bars with differenr severity level. I want to apply different colors to each severity i.e. each bar need to be of different color. Is it possible to do so ?

Thanks,
Prayag
Evgenia
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?