Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
123 views

Hi,

I am running moss2007 with Norwegian language. I wanted to set the Language to Norwegian "Norsk (Bokmal)" in the Version 5.4.0.0. Therefore I added to the Config.xml and the ListConfigFile.xml the following statements.

  <property name="Language">nb-NO</property>
  <property name="SpellDictionaryLanguage">nb-NO</property>

I have also added the following lines to ListToolsFile.xml and ToolsFile.xml

<languages>
    <language code="nb-NO" title="Norsk (Bokmal)" />
    <language code="nn-NO" title="Norsk (Nynorsk)" />
    <language code="de-DE" title="Tysk" />
    <language code="en-US" title="Engelsk (US)" />
    <language code="fr-FR" title="Fransk" />
  </languages>

I have added following resource files to the App_GlobalResources folder in Resources and 80 folder.

RadEditor.Dialogs.nb-NO
RadEditor.Main.nb-NO
RadEditor.Modules.nb-NO
RadEditor.Tools.nb-NO

The RadEditor field control show the correct Norwegian language,but when I add RadEditor Web Part the tool buttons and tool tips are in English language but the other webpart setting options are in Norwegian langauge.

Can you please tell me  to change the Language for the RadEditor webpart to Norwegian.

Regards

Stanimir
Telerik team
 answered on 17 Jun 2011
1 answer
93 views

I try to show detail of item using user control in radgrid template column
I just see first record detail, the other seems empty
what can be the reason for that?

My code look like

ASPX


 

 

<

 

telerik:GridTemplateColumn DataField="transactionID" HeaderText="" CurrentFilterFunction="StartsWith"

 

 

 

 

 

 

 

UniqueName="transactionID" Groupable="False" AllowFiltering="false">

 

 

 

 

 

 

 

<ItemTemplate>

 

 

 

 

 

 

<%

--<a id="transactionAnchor" title="Click to edit transaction" target="_parent" style="color: #3399ff;"

 

 

class="link" href='<%#"../Transaction/editTransaction.aspx?tid=" + Eval("transactionID") + "&id=" + Eval("transaction.type.category.categoryID") %>'>

 

<%# Eval("transactionID")%></a>--

 

%>

 

 

 

<uc1:ucModalPopup ID="modalPopup1" runat="server" />

 

 

 

<asp:ImageButton runat="server" ID="btnDETAILTRANSACTION" ToolTip="Click to show transaction detail."

 

 

 

 

 

 

 

ImageUrl="../images/details.png" CommandName="DetailTransaction" />

 

 

 

 

 

 

 

</ItemTemplate>

 

 

 

 

 

 

 

</telerik:GridTemplateColumn>

 

 

 

 


ASPX.CS

 

 

protected

 

void transactionApprovalerRadGrid_ItemCommand(object source, GridCommandEventArgs e)

 

 

{

 

 

if ((e.CommandName == "Filter"))

 

 

{

 

 

foreach (GridColumn column in e.Item.OwnerTableView.Columns)

 

 

{

 

column.CurrentFilterValue =

string.Empty;

 

 

column.CurrentFilterFunction =

GridKnownFunction.NoFilter;

 

 

}

 

}

 

 

else if (e.CommandName == "DetailTransaction")

 

 

{

 

 

ReportViewer rv = new ReportViewer();

 

 

rv.Width = 820;

 

rv.Height = 400;

 

rv.ShowToolBar =

false;

 

 

 

Hashtable paramaters = new Hashtable();

 

 

paramaters.Add(

"transactionID", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["transactionID"].ToString());

 

 

lib.

CommonFunctions.BuildReport(rv, "HAREKETDETAY", paramaters);

 

 

((Comman.

modalPopup)e.Item.FindControl("modalPopup1")).customPanel.Controls.Add(rv);

 

 

((Comman.

modalPopup)e.Item.FindControl("modalPopup1")).Notification.Show();

 

 

}

 

}

 

 


ASCX

 

 

<%

@ Control Language="C#" AutoEventWireup="true" CodeBehind="modalPopup.ascx.cs" Inherits="deva.ITracker.Comman.modalPopup" %>

 

 

<%

@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

 

 

 

 

 

 

 

Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

 

 

<%

@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 

 

 

 

 

<

 

asp:LinkButton ID="hiddenLinkButton1" Style="display: none" runat="server" OnClientClick="return false"></asp:LinkButton>

 

 

 

 

 

 

 

<div id="popup1" style="border: medium outset #C0C0C0; display: none; max-width: 900px; min-width: 700px; background-color: #f0f0f0;">

 

 

 

 

 

 

 

<table border="0" cellpadding="0" cellspacing="0" style="width: 100%">

 

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

 

<td align="left" style="padding-bottom: 2px">

 

 

 

 

 

 

 

<asp:Image ID="imgExclamation1" runat="server" ImageUrl="~/images/exclamation.png" />

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

<td align="right">

 

 

 

 

 

 

 

<asp:ImageButton ID="LoginCancelButton1" runat="server" ImageUrl="~/images/cancel.png"

 

 

 

 

 

 

 

AlternateText="Kapat" ToolTip="Kapat" />

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

<div id="popupContainer1">

 

 

 

 

 

 

 

<table border="0" cellpadding="0" cellspacing="0">

 

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

 

<td align="left">

 

 

 

 

 

 

 

<asp:Label ID="masterPopupLabel1" runat="server" Text=""></asp:Label>

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

<tr>

 

 

 

 

 

 

 

<td align="left">

 

 

 

 

 

 

 

<asp:Panel ID="customPopupPanel1" runat="server">

 

 

 

 

 

 

 

 

 

</asp:Panel>

 

 

 

 

 

 

 

</td>

 

 

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

</table>

 

 

 

 

 

 

 

</div>

 

 

 

 

 

 

 

</div>

 

 

 

 

 

 

 

<cc1:ModalPopupExtender ID="ModalPopupExtenderNotification1"

 

 

 

runat="server" CancelControlID="LoginCancelButton1" RepositionMode="RepositionOnWindowResize"

 

 

 

 

 

 

 

PopupControlID="popup1" TargetControlID="hiddenLinkButton1"

 

 

 

 

 

 

 

BackgroundCssClass="modalBackground" DropShadow="false">

 

 

 

 

 

 

 

</cc1:ModalPopupExtender>

 

 

<

 

asp:HiddenField ID="HiddenField1" runat="server" />

 

 

 

 

ASCX.CS

 

 

namespace

 

deva.ITracker.Comman

 

 

{

 

 

public partial class modalPopup : System.Web.UI.UserControl

 

 

 

 

 

 

{

 

 

protected string tid;

 

 

 

public ModalPopupExtender Notification

 

 

{

 

 

get { return ModalPopupExtenderNotification1; }

 

 

 

set { ModalPopupExtenderNotification1 = value; }

 

 

}

 

 

public Panel customPanel

 

 

{

 

 

get { return customPopupPanel1; }

 

 

 

set { customPopupPanel1 = value; }

 

 

}

 

 

public HiddenField Hidden

 

 

{

 

 

get { return HiddenField1; }

 

 

 

set { HiddenField1 = value; }

 

 

}

 

 

public String TransID

 

 

{

 

 

get { return tid; }

 

 

 

set { tid = value; }

 

 

}

 

 

public void ShowMessage(string popupText,Control control, string css)

 

 

{

 

masterPopupLabel1.CssClass = css;

 

masterPopupLabel1.Text = popupText;

 

 

if (control != null)

 

 

{

 

control.Visible =

true;

 

 

customPopupPanel1.Controls.Add(control);

 

}

 

ModalPopupExtenderNotification1.Show();

 

}

 

 

public void HideMessage()

 

 

{

 

ModalPopupExtenderNotification1.Hide();

 

}

 

 

protected void Page_Load(object sender, EventArgs e)

 

 

{

 

 

 

}

 

}

 

}

 

 

Marin
Telerik team
 answered on 17 Jun 2011
5 answers
302 views
HI Telerik,

How to hide the RadFileExplorer upload info panel.Once i click on upload Upload window will dispaly.
I want to hide the below path while clicking the upload button.
----------------------------------------------------------------------------
Max file size allowed:
25.00 MB
File extensions allowed:
*.au, *.css, *.doc, *.docm, *.docx, *.dotm, *.dotx, *.flv, *.gif, *.htm, *.html, *.jar, *.jpe, *.jpeg, *.jpg, *.js, *.mov, *.mp2, *.mp3, *.mpa, *.mpv2, *.pdf, *.png, *.potm, *.potx, *.ppam, *.ppsm, *.ppsx, *.ppt, *.pptx, *.pptm, *.pptx, *.swf, *.txt, *.vsd, *.vss, *.xhtml, *.xlam, *.xls, *.xlsx, *.xlsb, *.xlsm, *.xlsx, *.xltm, *.xltx, *.xsd, *.zip
---------------------------------------------------------------------------------------------
Is there any posibility ..please reply me as soon as posible.

Thanks
Bhavani
Rumen
Telerik team
 answered on 17 Jun 2011
1 answer
118 views
Hi,
I am using RadCalendar, in that i am displaying 3 values in the calendar cell.(Using Rad Window to enter 3 values and click on ok it should display in the Calendar cell.) While Click on the submit button i need to get all those 3 values and the particular  date. Could you pelase tell me how to do that.

Thanks in advance.
Maria Ilieva
Telerik team
 answered on 17 Jun 2011
1 answer
60 views
I'm having an issues refercing my resources through the scheduler control. It seems that in all of the examples the 'resourceID' is located directly on the appointment table with a foreign key(lets say to rooms or people). Our datamodel is a little more normalized in that we have a 'ApptResources' href table that serves as a one-to-many for each appointment and then in turn has a foreign key reference to our 'Users' table. Is it possible to have the resources datasource point explicitly at our 'ApptResources' table as opposed to the appointments table? BTW...our 'ApptResources' table also has a foreign key to the appoinments table.

Thanks
Kyle
Veronica
Telerik team
 answered on 17 Jun 2011
1 answer
130 views
I'm attempting to export a radgrid to pdf with an HTML table header at the beginning of the pdf.  I have the header & the grid exporting, but the HTML table header only renders on 1 line, ignoring table rows.  I need help getting the header to render as a formated table.

"<table width=""100px""><colgroup><col /></colgroup><tr><td>row 1</td></tr><tr><td>row 2</td></tr></table>"

Thanks.
Princy
Top achievements
Rank 2
 answered on 17 Jun 2011
1 answer
272 views
Hello

I'm having a formatting problem with a RadDock when the height is set explicitly using css - there is no vertical scrollbar when the content overflows the dock and the bottom border is cut off (see attached picture).  Relevant dock code is:

<telerik:RadDockLayout ID="RadDockLayout1" runat="server">
     
    <telerik:RadDockZone ID="dockzoneMain" runat="server" BorderColor="Transparent" Orientation="Horizontal">
     
        <telerik:RadDock ID="dockContent" runat="server" Skin="Sunset"
            Title="Network Access" EnableRoundedCorners="true" DefaultCommands="None" EnableDrag="false"
             CssClass="dockTopLeft" >
         
        <ContentTemplate>
            <div class="text_style">
                blah blah blah
            </div>

The css is:

.dockTopLeft
{
    width:385px !important;
    Height:350px !important;
  overflow:hidden;
}

.text_style
{
    font-family:calibri;
    font-size:12pt;
    padding-top:5px;
    
    width:100%;
    overflow:hidden;
}

I believe the expected behaviour is to see a vertical scrollbar when all of the content does not fit in the dock - that is what I would like to achieve...When I remove overflow:hidden; from the css the bottom border is extended, which I don't want either...This happens in both IE8 and Chrome by the way.


Question 2:
Can I control RadDock properties such as EnableDrag and Skin from css or a centralized file? For instance if I wanted to set EnableDrag="false" for all of the RadDocks in my application?

Thanks a lot,

Brian
Pero
Telerik team
 answered on 17 Jun 2011
1 answer
91 views
I am using the telerik version 2010.1.519.40 .Iam trying to set the text of radcombobox through javascript .But this code is not supported on this version.On low version it is working.


My javascript function is

function onCheckBoxClick(chk) {
               var combo = document.getElementById("RadComboBox1");
                combo.set_text("CustomText");
             
              
            }

what is the keyword to set and get text of radcombobox in this version of telerik.
Princy
Top achievements
Rank 2
 answered on 17 Jun 2011
1 answer
40 views
hello, for business reasons the field  mapped as DataRecurrenceField is nullable type. Since I made ​​this change if I drag Drag & Drop me an error javscript is raised. I use a user control with a AppointmentTemplate in, the field DataRecurrenceField I do not need, but if I remove him from the property generates error that tells me that is required how do I?

Veronica
Telerik team
 answered on 17 Jun 2011
11 answers
176 views
Hello,

Actually I am creating RadDocks dynamically with links in it. But when I click on the link its not working and while the page is post back its throwing an error.
Please find the code below.

    protected void Page_Load(object sender, EventArgs e)
    {
        PageLayout();
    }
    protected void LinkButton2_Click(object sender, EventArgs e)
    {
        Label4.Text = "Click";
    }

    private void PageLayout()
    {
        RadDockZone Zone1 = new RadDockZone();
        RadDockZone Zone2 = new RadDockZone();
        Zone1.BackColor = System.Drawing.Color.White;
        Zone1.MinHeight = new Unit("10px");
        Zone1.Width = new Unit("200px");
        Zone1.BorderStyle = BorderStyle.None;
        Zone1.Style.Add(HtmlTextWriterStyle.Position, "absolute");
        Zone1.Style.Add(HtmlTextWriterStyle.Left, "5px");
        Zone2.BackColor = System.Drawing.Color.White;
        Zone2.MinHeight = new Unit("10px");
        Zone2.Width = new Unit("200px");
        Zone2.BorderStyle = BorderStyle.None;
        Zone2.Style.Add(HtmlTextWriterStyle.Position, "absolute");
        Zone2.Style.Add(HtmlTextWriterStyle.Left, "210px");

        Layout2TableAdapter Layout2Adapter = new Layout2TableAdapter();
        int Dock_Count = Layout2Adapter.GetSubGroup(1, "UB").Rows.Count;

        RadDock[] Docks = new RadDock[Dock_Count];

        for (int i = 0; i < Dock_Count; i++)
        {
            Docks[i] = new RadDock();
            Docks[i].Width = new Unit("485px");
            Docks[i].Skin = "Telerik";
            Docks[i].DefaultCommands = Telerik.Web.UI.Dock.DefaultCommands.ExpandCollapse;
            Docks[i].DockMode = DockMode.Docked;
            Docks[i].Title = Layout2Adapter.GetSubGroup(1, "UB").Rows[i][0].ToString();
            Dock_Layout(Docks[i], "UB");
            if (i % 2 == 0) Zone1.Controls.Add(Docks[i]);
            else Zone2.Controls.Add(Docks[i]);
        }

        Global.DockLayout.Controls.Add(Zone1);
        Global.DockLayout.Controls.Add(Zone2);
        Panel1.Controls.Add(Global.DockLayout);
    }

    private void Dock_Layout(RadDock Dock, string PageViewID)
    {
        Layout3TableAdapter Layout3Adapter = new Layout3TableAdapter();
        ReportTableAdapter ReportAdapter = new ReportTableAdapter();
        QueriesTableAdapter QueryAdapter = new QueriesTableAdapter();
        int Report_Count = Convert.ToInt32(QueryAdapter.ReportCount(1, "UB", Dock.Title));

        if (Report_Count > 0)
        {
            Label[] Labels = new Label[Report_Count];

            int RID = 0;
            string Dock_Height = "";
            string Link_Top = "";
            string Label_Top = "";

            for (int j = 0; j < Report_Count; j++)
            {
                RID = Convert.ToInt32(Layout3Adapter.GetReport(1, "UB", Dock.Title).Rows[j][0]);
                Dock_Height = (j * 60 + 90) + "px";
                Link_Top = (j * 55 + 10) + "px";
                Label_Top = (j * 55 + 25) + "px";

                Dock.Height = new Unit(Dock_Height);

                Global.newLink.ID = "NewLink";
                Global.newLink.Font.Underline = false;
                Global.newLink.Click += new EventHandler(LinkButton2_Click);
                Global.newLink.Style.Add(HtmlTextWriterStyle.Position, "absolute");
                Global.newLink.Style.Add(HtmlTextWriterStyle.Left, "5px");
                Global.newLink.Text = (j + 1) + ". " + ReportAdapter.GetDataByRID(RID).Rows[0][1].ToString();
                Global.newLink.Style.Add(HtmlTextWriterStyle.Top, Link_Top);
                Dock.ContentContainer.Controls.Add(Global.newLink);

                Labels[j] = new Label();
                Labels[j].Text = ReportAdapter.GetDataByRID(RID).Rows[0][2].ToString();
                Labels[j].Font.Italic = true;
                Labels[j].Style.Add(HtmlTextWriterStyle.Position, "absolute");
                Labels[j].Style.Add(HtmlTextWriterStyle.Left, "20px");
                Labels[j].Style.Add(HtmlTextWriterStyle.Top, Label_Top);
                Dock.ContentContainer.Controls.Add(Labels[j]);
            }
        }
    }

And I have declared the link and RadDockLayout globally.
    public static LinkButton newLink = new LinkButton();
    public static RadDockLayout DockLayout = new RadDockLayout();

And please find the error below.

Server Error in '/MyWeb' Application.

Script controls may not be registered after PreRender.

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.InvalidOperationException: Script controls may not be registered after PreRender.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[InvalidOperationException: Script controls may not be registered after PreRender.]   System.Web.UI.ScriptControlManager.RegisterScriptControl(TScriptControl scriptControl) +155059   System.Web.UI.ScriptManager.RegisterScriptControl(TScriptControl scriptControl) +66   Telerik.Web.UI.RadWebControl.RegisterScriptControl() +29   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +22   Telerik.Web.UI.RadDockZone.OnPreRender(EventArgs e) +185   System.Web.UI.Control.PreRenderRecursiveInternal() +80   System.Web.UI.Control.AddedControl(Control control, Int32 index) +8681381   System.Web.UI.ControlCollection.Add(Control child) +80   _Default.PageLayout() +1043   _Default.Page_Load(Object sender, EventArgs e) +166   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35   System.Web.UI.Control.OnLoad(EventArgs e) +99   System.Web.UI.Control.LoadRecursive() +50   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


I am working on this error for more than a month now. I would be greatful if you could tell me some solution for this.
Thanks in advance.

Regards,
Sandeep Devagiri
Atanas Korchev
Telerik team
 answered on 17 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
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
Iron
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?