Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
147 views
Hello,

I am creating a web page in which i am using a rad ajax manager, in the page i have one tag defined for another web user controller file(.ascx file) which has its own rad ajax manager. Now i am getting this error for 2 rad ajax managers. I need both rad ajax managers, Please suggest me any solutions for the problem.

Thank you.
Shinu
Top achievements
Rank 2
 answered on 01 Jun 2011
2 answers
147 views

I'm trying to find a way to change the background colour of a row/cell.

Currently, our asset booking system looks like late-current.gif - whereas the red highlighted booking indicates that that resource it is overdue and hasn't been returned. What is required is for the whole row of the timeline to turn red if the asset is overdue, as indicated in late-required.gif.

The appointments change colour using the following code:

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
     {
        DateTime now = DateTime.Now;
        if (e.Appointment.Resources.GetResource("Status", 1) != null)
           e.Appointment.CssClass = "rsCategoryOrange";

And I was trying to do something similar to change the entire row background.

Note: all the resources are populated from the database and are not hardcoded.

Any ideas anyone?
MfE_Developer
Top achievements
Rank 1
 answered on 01 Jun 2011
2 answers
63 views
when i use RadUpload,  i did using RadProgressArea
File Uploading worked well but.. RadProgress Area is not working.(don't update ProgressArea)

Environment :

  Windows 2008 R2
  Telerik (Runtime Version : v4.0.30319, Version : 2011.1.413.40) Ajax
  IIS 7.5 (Pool : .NET 4.0, Identity : LocalSystem)

i tried  following
0. Default Web.Config(Telerik Template Project)
1. Replection Permission added to Web.Config
2. Telerik.Web.UI assembly added to GAC(.NET 4.0)

all not working.

i attached image file of Symptom
SangHyuk
Top achievements
Rank 1
 answered on 01 Jun 2011
1 answer
71 views
I am trying a test with the RadComboBox client side stuff and I can't get it to work. It should be a very simple thing to display the selected item text in an alert. The code is below. What I am doing wrong?

<script language="javascript" type="text/javascript">
      function OnClientSelectedIndexChangedHandler(item)
        {
            alert(item.Text);
        }
 </script>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
    <telerik:RadComboBox ID="DocumentsTypeRadComboBox" runat="server" Filter="StartsWith" DataTextField="Name" DataValueField="ObjectUID" OnClientSelectedIndexChanged="OnClientSelectedIndexChangedHandler">
        <Items>
            <telerik:RadComboBoxItem Text="Item1" Value="1" />
            <telerik:RadComboBoxItem Text="Item2" Value="2" />
        </Items>
    </telerik:RadComboBox>
    </div>
Jennifer
Top achievements
Rank 1
 answered on 01 Jun 2011
2 answers
156 views
As I can catch the event to filter a column of the grid?
Carlos Rodriguez
Top achievements
Rank 1
 answered on 31 May 2011
2 answers
102 views
Project background:
C# ASP.NET project using a custom class to completely define the RadGrid definition. I am using advanced databinding and ajax.

So far everything I have implemented is working fine. One of the requirements I have is that the user upon entry to the form will select an item from dropdownlist control and then click a button to fetch the datasource based on their selection. This is done because the available selections do not return the same data elements. After the retrieval of the data I am not able to get the grid to display the data. I have  added to following to the onClick event of the button. I am using mock data at this time so __getData = true; signifies I want to return data rather than an empty grid. The .Rebind Method is executing NeedDataSource and the DataTable returned from PolicyAPI.GetPolicyData(__getData) has data but the grid does not seem to reload. I have checked all of the samples but have not found any direction. I appreciate any assistance.

protected void Page_Init(object source, EventArgs e)
{
    this.__policyRadGrid = PolicyRadGrid.GridDefinition();
    this.PlaceHolder1.Controls.Add(this.__policyRadGrid);
}

protected void Page_Load(object sender, EventArgs e)
{
    this.__policyRadGrid.NeedDataSource += new GridNeedDataSourceEventHandler(PolicyRadGrid_NeedDataSource);
}

protected void btnRetrieveData_OnClick(object sender, EventArgs e)
{
    __getData = true;
  this.__policyRadGrid.Rebind();
}
  
protected void PolicyRadGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
  this.__policyRadGrid.DataSource = PolicyAPI.GetPolicyData(__getData);
}
Tim
Top achievements
Rank 2
 answered on 31 May 2011
5 answers
217 views
Hi,

I have a Telerik RadGrid and when I change page size from 10 to 20 next 10 rows are not formated (see attachment - grid-result-page.jpg, grid-page.jpg). I use client-side databinding. Where I do mistake?
Thanks for answer.

My grid code
<telerik:RadGrid ID="grdResult" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" GridLines="None"
            PageSize="20" Width="100%" BorderStyle="None" EnableEmbeddedSkins="False"
            EnableViewState="true" Culture="de-DE" ShowFooter="True" ShowGroupPanel="True">
            <ClientSettings AllowDragToGroup="True" EnableRowHoverStyle="true" DataBinding-CountPropertyName="CountProduct" DataBinding-DataPropertyName="DataProduct">
                <Selecting AllowRowSelect="true" />
                <DataBinding Location="WebServiceProduct.asmx" SelectMethod="GetDataAndCount" EnableCaching="false"/>
                <ClientEvents OnDataBinding="grdResult_DataBinding" OnDataBound="grdResult_DataBound"/>
            </ClientSettings>
            <HeaderStyle Wrap="False" />
            <MasterTableView GroupLoadMode="Client">
                <GroupByExpressions>
                    <telerik:GridGroupByExpression>
                        <SelectFields>
                            <telerik:GridGroupByField FieldAlias="USER_Profile" FieldName="USER_Profile"></telerik:GridGroupByField>
                        </SelectFields>
                        <GroupByFields>
                            <telerik:GridGroupByField FieldName="USER_Profile"></telerik:GridGroupByField>
                        </GroupByFields>
                    </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <telerik:GridBoundColumn DataField="GroupIcon" HeaderText="Group" UniqueName="colResultGroup" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Text1" HeaderText="Typ Caption" UniqueName="colResultText1" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
             <telerik:GridBoundColumn DataField="USER_Profile" HeaderText="USER_Profile" UniqueName="USER_Profile" ItemStyle-CssClass="grid_td_line"></telerik:GridBoundColumn>
                    ...
                </Columns>
          </MasterTableView>
          <PagerStyle Mode="NextPrevAndNumeric" PageButtonCount="10" />
          <GroupingSettings ShowUnGroupButton="true" />
</telerik:RadGrid>



Best regards
Roman
Roman Krsko
Top achievements
Rank 1
 answered on 31 May 2011
3 answers
91 views
I am trying to generate Excel ML Export file but no cell is getting created. It is generating file with empty rows. Any ideas ?
Daniel
Telerik team
 answered on 31 May 2011
1 answer
214 views
Hi guys, hope you can help me with this, I have a radcombobox wich i want to fill with data using linq to entities, I 've been trying with this code in the method I use to fill the combo box and set a breakpoint in that, when I run my program the results in the breakpoint appears correctly but when my combo box never gets filled.
Here's the query I implement to fill the combobox
 
private void llenacomboedificio()
       {
           var bdinstedificio = new BD_INSTEntities();
           var query = from edi in bdinstedificio.Inmuebles
                       select edi.nom_inm;
           rdCmbEdificio.DataSource = query.ToList();
       }

Hope your help.
Cristian
Top achievements
Rank 1
 answered on 31 May 2011
1 answer
275 views
I set up the AJAX RAD Grid with the black theme, but when I did the demo for management, there was a complaint that there was not enough color separation between the rows. I can change the value for either one in the grid properties, but I have a table nested within a Template Column. The <td> receives the colors from the CSS (.RadGrid_Black .rgAltRow td) so the borders of the table don't match the new property settings of the grid. If I edit the <td> inside the Template Column, it doesn't take into account the Alternate rows and sets the colors across all rows.

What is the best/preferred way for me to match these colors? Edit the CSS? (How does that get into my project?) Create my own CSS? (Do I need a separate class for the .rgAltRow?)

Gimmik
Top achievements
Rank 1
 answered on 31 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?