Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 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
140 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
74 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
73 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
726 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
4 answers
93 views
I have a RADEditor setup to allow the usual text formatting.  Ive set a header (H1) andf a hyperlink, yet when I save the contents, just the normal text is being saved.  Ive checked the HTML and it does have the H1 tag along with the ,a. tag for the link, yet when I check this

this.RadEditor1.Content;

Content has no tags in it, just the normal text, subsequently this is not being saved.  How can I solve this problem ?
mww
Top achievements
Rank 1
 answered on 20 Jan 2011
1 answer
73 views
Hi, 
 I would like to know if it is possible to have a RadPanelBar in a SharePoint Master Page use a Sharepoint List or BDC as a datasource?

I got the following example http://www.telerik.com/help/aspnet-ajax/replace-sharepoint-quick-launch-menu-with-radpanelbar.html to work but we would like the RadPanelBar to read off a SharePoint List or BDC.  

Is this possible and if so, can someone point the way that I should start with?

Thanks in Advance

We're using SharePoint 2010.

B
Kalina
Telerik team
 answered on 20 Jan 2011
2 answers
94 views
I have a custom appointment template utilizing custom attributes for my scheduler which works fine in Day/Week/Month views, but when I switch to Timeline view I would like to change the the appointment template and reorganize the attributes.

Any suggestions or examples?
Art Kedzierski
Top achievements
Rank 2
 answered on 20 Jan 2011
6 answers
359 views
We recently upgraded our Telerik suite from 2008.X to 2010.X. We have a custom filter defined which was working before, but is now throwing a javascript error: "Uncaught TypeError: Cannot read property 'Filter' of undefined" on the line:
"TableAlignFixFilter.registerClass('TableAlignFixFilter', Telerik.Web.UI.Editor.Filter); "

When examining the code in IE's development tools, I notice that Editor is not a member of Telerik.Web.UI. The only members are __namespace, __typeName, Animations, Calendar, DateParsing, Input, RadWindowController, and RadWindowUtils.

Could someone please explain this?

Thanks,
Boris Zakharin

Boris
Top achievements
Rank 1
 answered on 20 Jan 2011
3 answers
114 views
Hi all,
i was wondering if in a heirarchy grid you can have a different skin for each grid level.  EG. Vista skin for the MasterGrid and Windows7 for the Detail grid and so on.

is this possible?  i know you can use the styles properties to individually change the details grids, but was wondering how to do it more fully with skins.

By the way, what is SkinID used for?

thanks
Jordan
Vasil
Telerik team
 answered on 20 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?