Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
177 views
Hello Everyone,

I have searched on line but have found no way of doing this. We have a form with multiple pages users can go to and from with and I need to be able to have the files the user selects to stay in the input files if the user moves back a page or a post back happens on the page with the upload. Is there a way to do this with the telerik control?

-Chris
chris
Top achievements
Rank 1
 answered on 16 Jan 2012
1 answer
216 views
hi all,
i am D.Srnivasa,
                  in my project i have a RadOrgChart to display a employees profiles from SharePoint List. in my sharepoint list the following are the columns to display in RadOrgChart displayed in attached file.(list.jpg)
the following is the code to display a nodes from sharepoint list to RadOrgChart

SPSite mySite = SPContext.Current.Site;
            SPWeb web = mySite.OpenWeb();
            SPList lststudent = web.Lists["Registration|Form"];
            var students  = from SPListItem student in lststudent.Items
                           where student["Reference ID"].ToString() == RadTextBox1.Text || student["EID"].ToString() == RadTextBox1.Text
                           select new
                           {
                               FullName = student["Reference Name"].ToString(),
                               ReportsTo = student["Reference ID"].ToString(),
                               EmployeeID = student["EID"].ToString()
                           };
            
            RadOrgChart1.DataSource = students;
            RadOrgChart1.DataBind();

 and my RadOrgChart Properties are :
<telerik:RadOrgChart runat="server" ID="RadOrgChart1"  DataFieldID="EmployeeID" DataFieldParentID="ReportsTo" DataTextField="FullName"></telerik:RadOrgChart>
but it doesn't display the data from the SharePoint list.
Please Help me how can i bind the the in the following picture(Display.png)

thanks
D.Srinivasa.


          
Kalina
Telerik team
 answered on 16 Jan 2012
1 answer
234 views
Hi All;

<script type="text/javascript">
 
        function ItemsRequesting(sender, args) {
            var context = args.get_context();
            context["FilterString"] = args.get_text();
            debugger;
        }
 
</script>

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js">
            </asp:ScriptReference>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js">
            </asp:ScriptReference>
        </Scripts>
    </telerik:RadScriptManager>
    <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px" EnableLoadOnDemand="true"
        ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..."
        OnClientItemsRequesting="ItemsRequesting">
        <WebServiceSettings Path="WcfDataService1.svc" Method="LoadData" />
</telerik:RadComboBox>

[ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class WcfDataService1
    {
        [OperationContract]
        public RadComboBoxData LoadData(RadComboBoxContext context)
        {
           // Where is my context :-)
        }
    }





My problem isRadComboBoxContext context in the WebService is always null.
Does anyone know the reason?
Kalina
Telerik team
 answered on 16 Jan 2012
2 answers
163 views
I have a UserControl that eventually is placed within a page that uses a MasterPage.  The master page has a RadScriptManager.  In the preRender of my UserControl I am getting a reference to the scriptManager and calling: RegisterHiddenField.

When the page loads I see a client side script error in firebug.
The error is: data is undefined and appears to occur in an embedded asp.net ajax javascript file within a function with the signature of:
Function.createDelegate(this, this._scriptLoad...

I really need to get this working.  Any help you can provide will be greatly appreciated.

I am using ASP.NET AJAX RadControls version: 2010.1.519.35
Troy
Top achievements
Rank 1
 answered on 16 Jan 2012
3 answers
209 views
Hello!

Let me cut to the chase. My scenario is as follows: I have custom added fields to filter the RadGrid and filtering works perfectly. The problem comes when I want to edit record using EditForm inside RadGrid. It used to work fine, but then I had some problems with selecting the right row (I was always getting the wrong row selected) so this is what I did to fix it.

So, my RadGrid with filters looks like the one on the screenshot.

What I did is to use the Session which will help us to determine later if the filtered RadGrid DataSource was initiated or it was the default one.

protected void btnSearch_Click(object sender, EventArgs e)
    {
        Session["SearchKontakti"] = "1";
    }

After that I had to set PreRender with if loop to check for previously mentioned Session.

protected void gvKontakti_PreRender(object sender, EventArgs e)
    {
        int idKontakt = Convert.ToInt32(Request.QueryString["idk"]);
 
        if (Session["SearchKontakti"] == "1")
        {
            var kontakti = from k in db.Kontakt
                           select k;
 
            int idTipUsera = Convert.ToInt32(rcbTipUsera.SelectedValue);
            int idTvrtka = Convert.ToInt32(rcbTvrtka.SelectedValue);
 
            if (rcbTvrtka.SelectedValue != "0")
            {
                kontakti = kontakti.Where(k => k.idFirma == idTvrtka);
            }
 
            if (rcbTipUsera.SelectedValue != "0")
            {
                kontakti = kontakti.Where(k => k.idOvlasti == idTipUsera);
            }
 
            if (chkAktivan.Checked == true)
            {
                kontakti = kontakti.Where(k => k.Aktivan == true);
            }
            else
            {
                kontakti = kontakti.Where(k => k.Aktivan == false);
            }
 
            int idAuthKontakt = Convert.ToInt32(Session["authenticatedUI"]);
 
            if (idKontakt > 0 && idAuthKontakt == idKontakt)
            {
                gvKontakti.DataSource = from k in kontakti
                                        where k.idKontakt == idKontakt
                                        orderby k.Prezime, k.Ime
                                        select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password };
            }
            else if (idKontakt > 0 && idAuthKontakt != idKontakt)
            {
                gvKontakti.DataSource = from k in kontakti
                                        where k.idKontakt == idKontakt
                                        orderby k.Prezime, k.Ime
                                        select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password };
            }
            else
            {
                gvKontakti.DataSource = from k in kontakti
                                        orderby k.Prezime, k.Ime
                                        select new { Tvrtka = k.Firma.Naziv, k.idKontakt, Naziv = k.Ime + " " + k.Prezime, Funkcija = k.Funkcija, k.Ime, k.Prezime, k.Tel1, k.Tel2, k.Mob1, k.Mob2, k.Email1, k.Email2, k.Fax, k.Adresa1, k.Adresa2, k.Adresa3, k.Grad, k.PostanskiBroj, k.Drzava, k.Biljeske, k.Aktivan, k.Username, k.Password };
            }
 
            gvKontakti.DataBind();
        }
    }

So, this fixed my primary problem, but gave me another one. Some of my UserControls contain UpdatePanel and for each UserControl that has it whenever I try to clik Edit button from the RadGrid I receive the following message: "Cannot unregister UpdatePanel with ID 'UpdatePanel4' since it was not registered with the ScriptManager. This might occur if the UpdatePanel was removed from the control tree and later added again, which is not supported.

Parameter name: updatePanel"


What I'd like to know is how to fix it.

Regards,

Hrvoje
Mira
Telerik team
 answered on 16 Jan 2012
3 answers
114 views

RadEditor Styles issue:

I am using RadEditorSharePoint (5.8.11.0) in my SharePoint2010 environment. I am facing this weird issue with RadEditor styles.

1. Type some text in RadEditor while SharePoint page is in edit mode.
2. Before applying RadEditor styles to the text I see following styles:

Attachment 1

a.         a. Notice the class applied to the DIV:  reContentArea, reContentAreaToggle.
        b. Also, notice overflow:auto property.

3. Now, select the text in the RadEditor and change the style using RadEditor menu.

4. After changing the styles, following is observed:
Attachment 2

a.       Notice now the class applied to DIV. It is “ms-rteStyle-Caption”.

b.      Also, overflow:auto property is missing.

5. After this particular operation, if we type extended text in the RadEditor, it overlaps of the other content of the page. (Because overflow property no more exists in styles)

Need your inputs on this issue.

Rumen
Telerik team
 answered on 16 Jan 2012
7 answers
123 views
Hi there

I am having problems with the tabstrip and wondered if anyone can help.

Basically the problem is when the tabstrip loads it displays all of the pages content - I have 4 pageviews - rather than just the selected tab.

When I have clicked all of the of the 4 tabs then the pages display properly.

I believe the issue is related to themes as we are using masterpages. When I try the same code on a non-master page aspx then it works fine,

It is a strange one as we have a couple of other sites that use exactly them same mechanism and they all work spot on. We have made substantail use of the tabstrip before and have never encountered this.

Can anybody point me a where the issue may lay as I have tried just about everything I can. As a said I think it is a setup issue rather than coding but cannot get to the bottom of it.

Any help greatly appreciated.
Kate
Telerik team
 answered on 16 Jan 2012
1 answer
129 views

Hi

I have used the following code for a while but after updating to 2011.3 from 2011.2.Sp1
The combox is not displaying the dropdown when clicked. Have reproduces the issue in a simple standalone webform and it seems as if the child controls (asp:DropDownList) is causing the issue somehow?

Any ideas about how I can fix this?

Thanks in advance
Johan

EDIT:
Updating to 2011 Q3 SP1 solved it. Dont know what caused it but it works after the service pack

<telerik:RadComboBox ID="rcbxChartSerie" runat="server" DropDownWidth="240px" Height="200px"
    SkinID="radComboBox" Width="150px" CollapseDelay="1000">
    <Items>
        <telerik:RadComboBoxItem runat="server" Text="Serie X" Value="_header" />
    </Items>
    <CollapseAnimation Duration="1500" Type="OutQuint"></CollapseAnimation>
    <ExpandAnimation Duration="350" Type="OutQuint"></ExpandAnimation>
    <ItemTemplate>
        <div onclick="event.cancelBubble=true" style="padding: 8px 3px 3px 8px;">
            <div>
                <asp:Label ID="lblEnabled" runat="server" Text="Enabled" />
            </div>
            <div>
                <asp:DropDownList ID="ddlEnabled" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblColumn" runat="server" Text="Column" />
            </div>
            <div>
                <asp:DropDownList ID="ddlColumn" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblType" runat="server" Text="Type" /></div>
            <div>
                <asp:DropDownList ID="ddlType" runat="server" Width="200px" Enabled="false" />
            </div>
            <div style="margin-top: 8px;">
                <asp:Label ID="lblYAxis" runat="server" Text="Y Axis" />
            </div>
            <div>
                <asp:DropDownList ID="ddlAxis" runat="server" Width="200px" Enabled="false" />
            </div>
        </div>
    </ItemTemplate>
</telerik:RadComboBox>        
Helen
Telerik team
 answered on 16 Jan 2012
1 answer
61 views
Hi i have this page for my college project...
tour.timemites.com
user id-admin
password-123

transaction->new booking
when we click on grids add hotel...its takes way too long to load...i have other forms too..but this page is the only one with 4 grids

& the add & edit forms are usercontrol forms

Any idea..wat cud be the issue??

Regards
Asma


Princy
Top achievements
Rank 2
 answered on 16 Jan 2012
3 answers
106 views
I'm specifically talking about the editor used hwere in these forums.

If you set a target for the hyperlink, it is not saved.

This Jing video will demonstate what I mean.

--
Stuart
Rumen
Telerik team
 answered on 16 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?