Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
79 views
I have a grid with a detail table. When I do a multiple sort on that sub grid I would like the UI changed to reflect in which order the sorting is in. I have attached two screen shots representing what I want. I would prefer the header option. The problem is that the user can not tell which sort is the prominent one.

How would I achieve this using your grids? I can not find out how to put a header on the GridTableView or inside the detail table.

Any help would be appreciated
Thanks
Mira
Telerik team
 answered on 16 Jan 2012
1 answer
90 views
Is there a way to populate radgrid filters with values from a database table instead of the default conditions(contains, equalsto, etc)?

Thanks,
arnie
Richard
Top achievements
Rank 1
 answered on 16 Jan 2012
4 answers
67 views
OK It is really off topic. Can someone just point me in the right direction how Telerik accomplishes this?
http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/a4cf3d1e-55a5-4a01-a68e-e8e7505443cc

Thank You
JB
Ramjet
Top achievements
Rank 1
 answered on 16 Jan 2012
7 answers
429 views
Hello,

I want to change the color of the file TextBox server side.
From the helpfiles I know that the appearance of the text box is set with the .ruFakeInput class

When I put this piece of code in my aspx page it overloads the default values of the .ruFakeInput and the TextBox becomes red on page load.

<style type="text/css"> 
div.RadUpload_Skin1 .ruFakeInput
    {
        border-color:#93070a;
        /* background-image:url('Input/sprite.gif') 100% -148px no-repeat; */
        color:#ff9000;
        background-color: #9C362A;
        color: #FFF;
    }
</style>

But this puts it directly on page load in red. I want to put it red after a condition is true after a postback via a button (for example no file selected).

How can this be done? It seems that the textbox itself, inside the RadUpload, can't be accessed server side, only the RadUpload control?

Thanks.
shinu rag
Top achievements
Rank 1
 answered on 16 Jan 2012
3 answers
145 views
I'm sure there is a simple answer to this, but when I modify the height of the RadListBoxItem the text isn't centered. How can I fix this?


<telerik:RadListBox runat="server" Height="50px" Width="100px">
    <Items>
        <telerik:RadListBoxItem CssClass="RadListBoxItemClass" Height="10px" Font-Size="10px" Text="Just" />
        <telerik:RadListBoxItem CssClass="RadListBoxItemClass" Font-Size="10px" Text="Say" />
        <telerik:RadListBoxItem CssClass="RadListBoxItemClass" Font-Size="10px" Text="No" />
        <telerik:RadListBoxItem CssClass="RadListBoxItemClass" Font-Size="10px" Text="Drugs" />
    </Items>
</telerik:RadListBox>


Princy
Top achievements
Rank 2
 answered on 16 Jan 2012
6 answers
164 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
206 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
221 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
153 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
199 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?