Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
Hi,
I have a RadGrid  it was created in design time and also this grid have a detail. But the problem is when I want to see the detail, the HeaderText of the master table is not visible.

How can I fix it?
 private void GenerarGrilla() 
    { 
        List<string> dataKeyNamesList = new List<string>(); 
        radgridResultados.AutoGenerateColumns = false; 
        radgridResultados.Visible = true; 
        foreach (ConfiguracionUI.Campo campo in form.Grilla.Campos) 
        { 
            GridBoundColumn boundColumn; 
            boundColumn = new GridBoundColumn(); 
            boundColumn.DataField = campo.Key; 
            boundColumn.HeaderText = campo.Name; 
            boundColumn.Visible = campo.Visible; 
            radgridResultados.MasterTableView.Columns.Add(boundColumn); 
            if (campo.IsdataKey == true)              
                dataKeyNamesList.Add(campo.Key); 
        } 
 
        string[] dataKeyNames = new string[dataKeyNamesList.Count]; 
        dataKeyNamesList.CopyTo(dataKeyNames); 
        radgridResultados.MasterTableView.DataKeyNames = dataKeyNames; 
        radgridResultados.AllowSorting = false; 
        radgridResultados.AutoGenerateColumns = false; 
 
    } 
 
private void GenerarDetalle(GridTableView tableViewOrders) 
    {   
        radgridResultados.MasterTableView.DetailTables.Add(tableViewOrders); 
 
        foreach (ConfiguracionUI.Campo campoDetalle in form.Grilla.Detalle) 
        { 
            GridBoundColumn boundColumn; 
            GridHyperLinkColumn linkImagen; 
            if (campoDetalle.ColumnType != null) 
            { 
                linkImagen = new GridHyperLinkColumn(); 
                //linkImagen.DataNavigateUrlFields = campoDetalle.Key; 
                linkImagen.HeaderText = campoDetalle.Name; 
                linkImagen.Text = "Ver Imagen"; 
                linkImagen.NavigateUrl = "javascript:ShowMessage('imagen.aspx?&amp;C={0}&amp;R={1}&amp;P={2}&amp;I=True')";         
                tableViewOrders.Columns.Add(linkImagen); 
            } 
            else 
            { 
                boundColumn = new GridBoundColumn(); 
                boundColumn.DataField = campoDetalle.Key; 
                boundColumn.HeaderText = campoDetalle.Name; 
                tableViewOrders.Columns.Add(boundColumn); 
            } 
        } 
 
    } 

Veli
Telerik team
 answered on 30 Oct 2009
2 answers
124 views
Hi,

this is probably an easy one but I can't figure it out.

When dragging a node from a Tree, the node's text is shown next to the cursor the whole dragging duration (when dragging a node called 'ABC', a text reading 'ABC' shows next to the cursor).
This causes me a problem under certain circumstances where the cursor actually gets over the text (when dragging fast), thus calling an undesired onmouseout event on any element it was hovering before.

I wanted to change the style and text of that tooltip anyway so I just made another that I can fully control. Now I want to remove the default text, but I can't figure how.

Any insight?

Thanks
Nicolas
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
101 views
Hi!

I am using 2009.2.701.35 version of the Tools.

When I paste from Word, I am losing my font info even though I have  StripFormattingOnPaste="MSWord"  defined.

The issue is the Font tag is getting stripped even though the doc says "MSWord: strips Word-specific tags on Paste, preserving fonts and text sizes. "

When I paste, the resulting HTML is:
<p class="MsoNormal" style="margin: 0in 0in 10pt;"><span style="font-size: 12pt; line-height: 115%;">Book Antiqua 12</span></p>

I am expecting that the font is preserved from the un-cleaned original:
<span style="font-size: 12pt; line-height: 115%; font-family: 'book antiqua','serif'; mso-bidi-font-family: 'times new roman'; mso-fareast-font-family: calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: en-us; mso-fareast-language: en-us; mso-bidi-language: ar-sa;">Book Antiqua 12</span>

Please Notice that the font-family attribute is missing from the MSWord cleaned paste.

I can reproduce this on the Telerik web site in the editor demo area.

Is there a fix for this?  My customers expect that their fonts are preserved. 

Thanks for your help! :-)
Rich

Rumen
Telerik team
 answered on 30 Oct 2009
1 answer
164 views
I haven't been able to get this to work.

I have a webpage, that when loading, I would like to display the progress monitor for.

The guts of the page load are:

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            RadProgressArea.Localization.UploadedFiles = "Directories Processed: ";
            RadProgressArea.Localization.CurrentFileName = "Current Directory: ";
            RadProgressArea.Localization.TotalFiles = "Directories Found: ";
            RadProgressArea.Localization.TransferSpeed = "Files Processes: ";

            if (Request["websiteMasterID"] == string.Empty)
                Response.Redirect("~/SessionTimeOut.aspx", true);
            else
            {
                try
                {
                    _websiteMasterID = int.Parse(Request["websiteMasterID"]);
                    CrawlWebsite(_websiteMasterID);
                }
                catch (Exception _ex)
                {
                    Response.Redirect("~/SessionTimeOut.aspx", true);
                }
            }
        }
    }
    private void CrawlWebsite(int _websiteMasterID)
    {
            //stuff
    }


Basically, when the page is called it grabs the webisite ID from the query string and then processes the files for that website.  While this is going on, I would like the progress information to be displayed.

I have this working if I click on a link on the page, and it does the post back.  Then I can see the progress information, so the progress bar is working.

However, when i try to do it on the page_load, then the previous screen stayes in the browser;  You see that the page is doing something because of the disc activity; then it loads the rest of the page information.  It doesn't show the progress.

Any suggestions?

Vesko
Top achievements
Rank 2
 answered on 30 Oct 2009
1 answer
130 views
Hello everybody,
I am using a radchart with the overflow of the legend configured
as Telerik.Charting.Styles.Overflow.Manual because I need a customized legend.

Everything is working fine but I would like to give each item the right size.
Is there a way to calculate the width of a text with the radchart (like MeasureString)?

Many thanks in advance
Dino
Vladimir Milev
Telerik team
 answered on 30 Oct 2009
1 answer
149 views
Hello, is it possible to change the week numbers from starting at 1 on January 1, to someone's fiscal week numbers.  So maybe starting week 1 around March for example.

When looking at the online help, I saw that you can change the RowHeaderText.  However, this value gets set the same for each week.  I would need to count up from whatever week I decide. 

is this possible, or have I misread something?

Thank you,
Chris
Sebastian
Telerik team
 answered on 30 Oct 2009
2 answers
431 views
Hi,

May I know how to set the (Modal = true and AutoReszie=true) in javascript OpenWindow()?

<script type="text/javascript">  
 
  function OpenWindow()  
  {  
     var wnd = window.radopen("http://www.google.com", null);            
     wnd.setSize(400,400);  
     return false;  
  }  
 
</script> 
 
<button onclick="return OpenWindow()" id="button2">Open with radopen</button> 
 

Thanks.

Regards,
Jessie
Jessie
Top achievements
Rank 1
 answered on 30 Oct 2009
1 answer
111 views
Is anyone else having a problem with RADAjaxManager causing full postbacks in Internet Explorer (6, 7 and 8)?  I have a page with 4 dropdowns and two labels (among other things).  The first dropdown (states) populates the second dropdown (counties), the second dropdown populates the third dropdown (cities), the third dropdown populates the fourth dropdown (newspapers), and, finally, the fourth dropdown sets the text and visibility of the two labels.  This works like a champ in FireFox, but not in any of the IE versions.  Instead of updating the subsequent dropdowns via AJAX, it does full postbacks each time.  I've tried using both the RADScriptManager and the ASPScriptManager (just in case) and that made no difference.  My code is below.

Any ideas?

Here is the AjaxManager:
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"  
              EnablePageHeadUpdate="False" EnableViewState="False"> 
              <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="ddState"> 
                  <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddCounty" /> 
                  </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddCounty"> 
                  <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddCity" /> 
                  </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddCity"> 
                  <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddNewspaper" /> 
                  </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="ddNewspaper"> 
                  <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblPublishesOn1" /> 
                    <telerik:AjaxUpdatedControl ControlID="lblPublishesOn2" /> 
                  </UpdatedControls> 
                </telerik:AjaxSetting> 
              </AjaxSettings> 
            </telerik:RadAjaxManager> 
 

Here is one of the DropDowns (the others are all similar):
                  <telerik:RadComboBox ID="ddState" runat="server" AutoPostBack="True" DataSourceID="sdsState" 
                    DataTextField="STATENAME" DataValueField="STATEID" AppendDataBoundItems="True" 
                    CausesValidation="False" Skin="Web20" TabIndex="3" CollapseDelay="10"  
                    ExpandDelay="10"> 
                    <Items> 
                      <telerik:RadComboBoxItem runat="server" Text="-- Select a State --" Value="0" /> 
                    </Items> 
                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
                  </telerik:RadComboBox> 
 


Here is the code that is triggered by the ajax events:
    Protected Sub ddState_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddState.SelectedIndexChanged 
        ddCounty.ClearSelection() 
        ddCounty.Items.Clear() 
        ddCounty.Items.Add(New RadComboBoxItem("-- Select a County --", 0)) 
        ddCounty.Enabled = True 
        lblPublishesOn1.Visible = False 
        lblPublishesOn2.Visible = False 
        ddCounty.Focus() 
    End Sub 
 
    Protected Sub ddCounty_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddCounty.SelectedIndexChanged 
        ddCity.ClearSelection() 
        ddCity.Items.Clear() 
        ddCity.Items.Add(New RadComboBoxItem("-- Select a City --", 0)) 
        ddCity.Enabled = True 
        lblPublishesOn1.Visible = False 
        lblPublishesOn2.Visible = False 
        ddCity.Focus() 
    End Sub 
 
    Protected Sub ddCity_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddCity.SelectedIndexChanged 
        ddNewspaper.ClearSelection() 
        ddNewspaper.Items.Clear() 
        ddNewspaper.Items.Add(New RadComboBoxItem("-- Select a Newspaper --", 0)) 
        ddNewspaper.Enabled = True 
        lblPublishesOn1.Visible = False 
        lblPublishesOn2.Visible = False 
        ddNewspaper.Focus() 
    End Sub 
 
    Protected Sub ddNewspaper_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) 
        
        . . .  
        
        lblPublishesOn1.Text = pubMon & pubTue & pubWed & pubThu & pubFri & pubSat & pubSun 
        lblPublishesOn2.Text = "Deadline: " & deadLine & " days prior at " & deadTime & " (" & deadTimZon & ")" 
 
 
        lblPublishesOn1.Visible = True 
        lblPublishesOn2.Visible = True 
        rdpRun1.Focus() 
    End Sub 
 

Veli
Telerik team
 answered on 30 Oct 2009
3 answers
139 views
I'm trying to do something similar to the edit on double click example with a radgrid whose columns are not defined on the aspx page.  In the codebehind I'm binding it to a datatable and hiding a couple of columns that are used as database keys.

I have the javascript codeblock on my page and it gets called when I try to doubleclick  -but that produces a javascript error.

When I look at the line in the page source where the error is being reported it's happening here -

function RowDblClick(sender, eventArgs) {
                editedRow = eventArgs.get_itemIndexHierarchical();
                $find("").editItem(editedRow);
            }

Specifically it fails at the last step.  The error is:  'null' is null or not an object.

For what it's worth this page has a master page and the RadScriptManager control is on that master page.  I'm thinking that's the cause.  I've no idea how to work around this.
Veli
Telerik team
 answered on 30 Oct 2009
1 answer
138 views
I've deployed the RadEditorMOSS 4.5.6 solution into my WSS 3.0 environment successfully and the control appears to operate properly in every respect with one very notable exception. It does not replace the default rich-text editor for list items.

I have retracted, deleted and redeployed the solution and of course performed an IIS reset after deployment and before activating the feature of the site. The RadEditor webpart becomes available and appears fully funtional. I can imbed the RadEditor into a webpart and it operates as expected. It does not however replace the rich-text editor.

What am I missing. I have also installed the RadControls for ASP.NET AJAX 2009 2 826 Trial as well on the same server and these controls appear to render and operate according to the docs (I have of course not tested every one).

I then in desperation built a MOSS environment and deployed the RadEditor there. Same results. Fully functional with the excetion that the default rich-text editor is not replaced...

What am I missing? It's honestly the reason that I went seeking the Telerik controls, The SharePoint editor is sadly very lacking and I need it replaced. Any direction at all in this regard would be greatly appreciated.

Regards,

Christian Brown
Stanimir
Telerik team
 answered on 30 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?