Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
235 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
75 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
84 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
119 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
590 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
150 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
160 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
50 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
1 answer
118 views
Hello everyone,

I have a site with multiple instances of the RadEditor. All of them display correctly except this one. I have searched for a solution, but found nothing that makes sense to me (it should be pointed out that I am a designer and not a developer, so most of what I have read here doesn't make sense to me). 

I've attached the code and picture of what is happening. Any ideas what is happening?

Thanks in advance for your help.

Josh

<div id="blog_header_editor">
        Header:
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadEditor ID="HeaderEditor1" runat="server" ImageManager-DeletePaths="/UserFiles/Images"
                ImageManager-UploadPaths="/UserFiles/Images" ImageManager-ViewPaths="/UserFiles/Images"
                ImageManager-EnableImageEditor="true" DocumentManager-DeletePaths="/UserFiles/Documents"
                DocumentManager-UploadPaths="/UserFiles/Documents" DocumentManager-ViewPaths="/UserFiles/Documents"
                Skin="Windows7" Width="720" Height="440">
                <Tools>
                    <telerik:EditorToolGroup Tag="MainToolbar">
                        <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                        <telerik:EditorTool Name="AjaxSpellCheck" />
                        <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                        <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                        <telerik:EditorTool Name="Cut" />
                        <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                        <telerik:EditorTool Name="PasteStrip" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="InsertToolbar">
                        <telerik:EditorTool Name="ImageManager" ShortCut="CTRL+G" />
                        <telerik:EditorTool Name="DocumentManager" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                        <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="Superscript" />
                        <telerik:EditorTool Name="Subscript" />
                        <telerik:EditorTool Name="InsertParagraph" />
                        <telerik:EditorTool Name="InsertGroupbox" />
                        <telerik:EditorTool Name="InsertHorizontalRule" />
                        <telerik:EditorTool Name="InsertDate" />
                        <telerik:EditorTool Name="InsertTime" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="FormatCodeBlock" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="FormatBlock" />
                        <telerik:EditorTool Name="FontName" ShortCut="CTRL+SHIFT+F" />
                        <telerik:EditorTool Name="RealFontSize" ShortCut="CTRL+SHIFT+P" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="AbsolutePosition" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                        <telerik:EditorTool Name="StrikeThrough" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="JustifyLeft" />
                        <telerik:EditorTool Name="JustifyCenter" />
                        <telerik:EditorTool Name="JustifyRight" />
                        <telerik:EditorTool Name="JustifyFull" />
                        <telerik:EditorTool Name="JustifyNone" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Indent" />
                        <telerik:EditorTool Name="Outdent" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="InsertOrderedList" />
                        <telerik:EditorTool Name="InsertUnorderedList" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ToggleTableBorder" />
                        <telerik:EditorTool Name="XhtmlValidator" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="ForeColor" />
                        <telerik:EditorTool Name="BackColor" />
                        <telerik:EditorTool Name="ApplyClass" />
                        <telerik:EditorTool Name="FormatStripper" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup Tag="DropdownToolbar">
                        <telerik:EditorTool Name="InsertSymbol" />
                        <telerik:EditorTool Name="InsertTable" />
                        <telerik:EditorTool Name="InsertSnippet" />
                        <telerik:EditorTool Name="ImageMapDialog" />
                        <telerik:EditorTool Name="InsertCustomLink" ShortCut="CTRL+ALT+K" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="ConvertToLower" />
                        <telerik:EditorTool Name="ConvertToUpper" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Zoom" />
                        <telerik:EditorTool Name="ModuleManager" />
                        <telerik:EditorTool Name="ToggleScreenMode" ShortCut="F11" />
                        <telerik:EditorTool Name="AboutDialog" />
                    </telerik:EditorToolGroup>
                </Tools>
                <Content>
         
                </Content>
                <ImageManager ViewPaths="/UserFiles/Images" UploadPaths="/UserFiles/Images" DeletePaths="/UserFiles/Images"
                    MaxUploadFileSize="2048000"></ImageManager>
                <DocumentManager ViewPaths="/UserFiles/Documents" UploadPaths="/UserFiles/Documents"
                    DeletePaths="/UserFiles/Documents" MaxUploadFileSize="2048000"></DocumentManager>
            </telerik:RadEditor>
    </div>
    <div class="clear"></div>
    <div id="buttons">
        <div id="cmdSave" class="page_property_button">
            <asp:ImageButton runat="server" ID="ibtnSave" OnClick="cmdSave_Click" src="/LookAndFeel/Images/icon_save.png"
                class="page_property_icon" />
            <div class="page_property_text">
                Save<br />
                This Blog
            </div>
            <div class="clear"></div>
        </div>
Rumen
Telerik team
 answered on 14 Apr 2011
1 answer
67 views
Hi there,

Is that a way I can update the editor's content without changing the scroll bar?

Thanks,
Reza
Rumen
Telerik team
 answered on 14 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?