Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
36 views
Sir,
    I have an aspx page with asp scriptmanager,asp updatepanel and radajaxmanager. I am getting an error 'A control is already associated with this element'. When I remove the update panel it's working fine. But I need update panel. Pls help me ASAP.

Thanks in advance
Anju S Chandran
Maria Ilieva
Telerik team
 answered on 20 Jan 2011
2 answers
191 views
Hi

I have a problem, I need to enabled or disabled RadAsyncUpload control in edit mode, but, if the user clicked over the control in disabled mode this show the window to select a file. How I enable or disabled the control?
This is my code:

<telerik:GridDropDownColumn DataField="fuente_cap" DataSourceID="xml_fuente_cap"
     HeaderText="Fuente" UniqueName="fuente_cap" ListTextField="value"
     ListValueField="ID"  FilterControlAltText="Filter fuente_cap column">
   <ItemStyle Width="100px" Font-Size="Small" />
   <HeaderStyle Width="100px" Font-Size="X-Small" Font-Bold="True" />
</telerik:GridDropDownColumn>
<telerik:GridBoundColumn DataField="ruta_cap" HeaderText="Ruta" UniqueName="ruta_cap"
     FilterControlAltText="Filter ruta_cap column" FilterControlWidth="180px">
   <ItemStyle Width="200px" Font-Size="Small" />
   <HeaderStyle Width="200px" Font-Size="X-Small" Font-Bold="True" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn DataField="ruta_cap" HeaderText="ShapeFile" UniqueName="rutaShp"
      Visible="False" FilterControlAltText="Filter rutaShp column">
   <EditItemTemplate>
     <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server" MaxFileInputsCount="4"
          TargetFolder="/mapas" AllowedFileExtensions="dbf,shp,prj,shx" Skin="Office2007">
        <Localization Remove="Eliminar" Select="Buscar" />
     </telerik:RadAsyncUpload>
   </EditItemTemplate>
</telerik:GridTemplateColumn>

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
   if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
   {
      GridEditFormItem editItem = (GridEditFormItem)e.Item;
      RadComboBox listFuente = (RadComboBox)editItem["fuente_cap"].Controls[0];
      listFuente.PreRender += new EventHandler(listFuente_PreRender);
      listFuente.AutoPostBack = true;
   }
}
 
void listFuente_PreRender(object sender, EventArgs e)
{
   RadComboBox list = (RadComboBox)sender;
   GridEditFormItem editItem = (GridEditFormItem)list.NamingContainer;
   if (list.SelectedValue.Equals("SHP"))
   {
      editItem["ruta_cap"].Enabled = false;
      editItem["rutaShp"].Enabled = true;
   }
   else
   {
      editItem["ruta_cap"].Enabled = true;
      editItem["rutaShp"].Enabled = false;
   }
}
Marcelo
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
56 views
Hi,

I am having an issue with the group by functionality. I have a default grouping at startup. I am grouping by 2 columns at startup. But now i cannot group by more than 2 columns at a time . But if i have remove the startup grouping, I am able to use Grouping functionality in normal fashion.

Regards,
Niraj Khose.
Pavlina
Telerik team
 answered on 20 Jan 2011
1 answer
89 views
Hi
     In my application i have a radmenu in my master page...
the problem is when i try to pop up a radwindow in my application , the radmenu is still displayed in front of the radwindow...
please give me a solution to make the radmenu displayed only for the masterpage....
Peter
Telerik team
 answered on 20 Jan 2011
3 answers
74 views
How i can change the tooltip of behaviors buttons?
Svetlina Anati
Telerik team
 answered on 20 Jan 2011
2 answers
140 views
I am trying to add default item 'All' to my RadComboBox. It is adding at the end and also it doesn't select this default item. What could be the problem? Are there any other ways to do it? 

function OnClientItemsRequested(sender, eventArgs) {  
     
var combo = $find("<%= RadComboBox1.ClientID %>");  
     
var intextput = "All";  
     
var comboItem = new Telerik.Web.UI.RadComboBoxItem();  
      comboItem
.set_text(intextput);  
      comboItem
.set_value("");  
      combo
.trackChanges();  
 
      combo
.get_items().add(comboItem);  
      comboItem
.select();  
      combo
.commitChanges();  
      comboItem
.scrollIntoView();  
   
}  
 
 
<telerik:RadComboBox runat="server" ID="RadComboBox1"   
     
EnableLoadOnDemand="true"   
     
OnClientItemsRequested="OnClientItemsRequested">  
     
<WebServiceSettings Method="GetMyData" Path="http://localhost:1606/Service1.svc" />  
   
</telerik:RadComboBox> 
 
I also tried with the following option. It adds the 'All' but it doesn't append the values from the database.


 <telerik:RadComboBox runat="server" ID="RadComboBox1"   
     
EnableLoadOnDemand="true"
   
      AppendDataBoundItems="true"
>
 
     
<WebServiceSettings Method="GetMyData" Path="http://localhost:1606/Service1.svc" />
 
       <Items>
             <telerik:RadComboBoxItem runat="server" Text="All" Value=""/>
       </Items> 
   
</telerik:RadComboBox>
 
nav100
Top achievements
Rank 1
 answered on 20 Jan 2011
4 answers
149 views
Hello!
When I try to export grid to pdf, on some page it throws the following exception:
System.SystemException: At least one of minimum, optimum, or maximum IPD must be specified on table.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.Table.SetIPD(Boolean bHasProportionalUnits, Int32 maxAllocIPD)
  at Telerik.Web.Apoc.Fo.Flow.Table.CalcFixedColumnWidths(Int32 maxAllocationWidth)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)
Andy
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
87 views
Hi,
I am using Recurrence Control,Having problem with Recurrence Rule.
Description :
Here I am trying to Schedule an Appointment having Start Date 08-02-2011 10:14 PM(dd/mm/yyyy) and End Date 09-02-2011 10:14 PM.
Please check Recurrence Details in attached file.
Following Recurrence rule is generated :

DTSTART:20110208T221400Z
DTEND:20000102T000000Z
RRULE:FREQ=MONTHLY;COUNT=3;INTERVAL=1;BYMONTHDAY=08

Which is not correct.It always takes DTEND as "20000102T000000Z". I think it should be "20110209T221400Z "

Also facing problem with visibility of Recurrence Control on Recurrence check box click sometime it works fine sometime not.

Can you help?

Please reply as soon as possible it's urgent.


Thanks,
Rahul.
Peter
Telerik team
 answered on 20 Jan 2011
1 answer
83 views
Hi,

I'm having a caching issue where a removed file from a folder re-appears in a newly created folder with the same name as the old folder

Steps to reproduce:
1. Create folder with name A
2. Add a file file.txt to folder A
3. I right click on folder A and choose Delete. Folder A is deleted (folder and file deleted in backend)
4. Create a _new_ folder with name A
5. file.txt now appears in the grid in the newly created folder A.

In step 3, the file and folder is physically removed, and I have checked that I'm not mistakenly re-adding it in my custom ContentProvider.

6. Do a hard refresh (ctrl + F5), now file.txt disappears from A.

I'm using version 2010.3. I'm not using client side databinding.

Any suggestions on how to solve this would be much appreciated. I guess it has to do with caching? Is there a way to invalidate the cache for the deleted folder?

Best regards,
Andreas
Dobromir
Telerik team
 answered on 20 Jan 2011
10 answers
758 views
Hi,

I trying to load data to a dropdown column from the code behind. I was using GridDropDownListColumnEditor which was working fine in telerick version of 2009 and the same is not working in 2010 version. Where as i am getting data which is binded in the grid instead of getting
binded from the datatable. The below i have given my code

ASPX :

<telerik:GridDropDownColumn DataField="user_type" DataType="System.Int32" HeaderText="User Type"
SortExpression="user_type" UniqueName="user_type" ListTextField="user_type_name" ListDataMember ="user_profile"
ListValueField="user_type" >
</telerik:GridDropDownColumn>

C#

protected
void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
    if ((e.Item is GridEditFormInsertItem && e.Item.OwnerTableView.IsItemInserted) || (e.Item is GridEditableItem && e.Item.IsInEditMode))
    {
        GridEditableItem item = e.Item as GridEditableItem
        GridEditManager editMan = item.EditManager;
        GridDropDownListColumnEditor usertype = editMan.GetColumnEditor("user_type") as GridDropDownListColumnEditor;
        usertype.DataSource = datatable("user_type");
        usertype.DataBind();
    }
}

 

 

The Datatable will return 3 rows like superadmin,admin and users. It should dispaly 3 rows instead it is displaying 10 dupilcate rows where as i have 10 users in user_profile which is listed in the GRID.

 


Need ur help in this regards.

Thanks & Regards
Kannan

 

 

 

Elliott
Top achievements
Rank 2
 answered on 20 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?