Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
123 views

The default behavior of combox with on demand feature is when user selects an item for list, and it saves into database. Then when the page reloads or redisplays, it displays as 1 of 1 record. Without remove the item, the other items won’t display. We would like the combox to behavior more like regular list box which selects the item and also list the other records. Without remove the selection, user should able to use on demand feature to fetch more items. Can this be done?

Veselin Vasilev
Telerik team
 answered on 10 Dec 2009
2 answers
800 views
I have a gridtemplate column, like so:

<telerik:GridTemplateColumn UniqueName="colClockInToShow" HeaderStyle-Width="45px"> 
    <HeaderTemplate> 
        <asp:Label ID="lblClockInHeader">Clock In</asp:Label> 
    </HeaderTemplate> 
    <ItemTemplate> 
        <asp:Label ID="lblClockInData" Text="temp" /> 
    </ItemTemplate> 
</telerik:GridTemplateColumn> 
 

During the course of my radGridTimeCard_ItemDataBound sub, I have logic that will select the proper value to be displayed in the label (which is now displaying "temp").  But I just can't seem to figure out how to access that label's text property programatically. 

Help??
Denise Duggan
Top achievements
Rank 1
 answered on 10 Dec 2009
2 answers
199 views
Hi there,

I've got a gridtemplatecolumn which gives the following error when I try to use the filter.
ERROR: "is neither a DataColumn nor a DataRelation for table DefaultView. "

The column I am trying to filter is:
                    <telerik:GridTemplateColumn HeaderText="Description" EditFormColumnIndex="1" SortExpression="Description" 
                        UniqueName="Description"> 
                        <ItemTemplate> 
                            <%#Eval("Description") %> 
                        </ItemTemplate> 
                    </telerik:GridTemplateColumn> 

Thanks,
Darren
Top achievements
Rank 2
 answered on 10 Dec 2009
2 answers
148 views
there's no option for developing a skin for the datepicker within the visual style builder. Instead, I tried using the calendar skin maker. I'm unsure how to use the calendar skin then for the calendar portion of the radDatePicker. anyone have an example of how to properly use it in my situation? thanks.
Paul J
Top achievements
Rank 1
 answered on 10 Dec 2009
1 answer
159 views

Hi,

 

I am relatively new to RadEditor Customization. My requirement is as follows.

 

We will have multiple chevrons (i.e. <<>>) placed within the content area. When the user keeps his cursor within the chevron (i.e. “<<Cursor placed Here>>”) a modal dialog should be popped up which contains the text within the chevron (i.e. Cursor placed Here). This text will be displayed within a text box in the modal dialog. Now if the user modifies the text and clicks on insert in the modal dialog then the same text should be replaced within the chevron <<Changed Text>>.

 

Approach followed:

  1. Used the following code to get the bookmark

   var oSel = document.selection.createRange();                                                                                                   

var bookmark = oSel.getBookmark();

  1. I need to get the current cursor position now. Currently I have used

var index = bookmark.charCodeAt(2) - 13;

But I am not sure if this is a currect approach and this is not working properly if the text is formatted. I am not sure why we need to do -13 to get the index but its returning me the current index in case of non formatted text.

Because of this particular approach I have come across the following scenarios

 

Scenario 1: If the content is completely plain then no matter where the chevron is, I am able to get the index Ex. <<Rad>>  ---> in this case if I keep cursor next to R the the I am getting the index as 3

Scenario 2: If there are multiple formatting present in the document then I am unable to find the index properly.  Ex: <<Rad>>  ---> in this case if I keep cursor next to R then I am unable to get the index as 3 and I am getting index as 5. This is because the text is formatted in this case (i.e. the text R is both bold and italics).

 

I need a solution for the same which will work on different browsers. Also the text area can contain formatted text (example: text pasted from word) so I need a help in finding out the current cursor location.

Dobromir
Telerik team
 answered on 10 Dec 2009
2 answers
145 views
Hi,

I need to find a radcombo and update its collection using javascript.

Please check with the coding given below, it showing error message, 'null object' for Radcombo2,

function

 

clientselectedindexchanged(sender,e) // Radcombo1 selected index change

 

 

 {

 

var item = e.get_item();

 

 

 

var comboItem = sender.get_text();

 

 

 

if(comboItem == 'Cancel Episodes')

 

 

 {

 

var combo= $find('<%= Radcombo2.ClientID %>');

 

 

 

 

var

 

comboItem1 = new Telerik.Web.UI.RadComboBoxItem();

 

 

 

 comboItem1.set_text(

'welcome');

 

 

 combo.get_items().add(comboItem1);

comboItem1.select();

 

combo.trackChanges();

 

 

 combo.commitChanges();

 

 

}
}

Please give any suggestion.

Thanks in advance.

Regards,
Utchimahali.N

utchi
Top achievements
Rank 1
 answered on 10 Dec 2009
2 answers
127 views

Hi All,

We have a scheduler,where we place appointments on each of the calender days using drag and drop features from the grid. on click of each appointment ,we show up a customized AdvanceEditForm with controls like combobox and gridview.In this gird view i have a button column ,when ever i click this button an item should get added to the listbox with the edit form still open ... and if i click the update or the submit button the data should be saved and the edit form should close.

I got stucked in adding the item to the listbox when ever i click a button in the gird view and also the click event is getting fired only once it should not be. I am using OnAppointmentCommand,OnFormCreating events...to retirve the values....

This is a crucial requirement. Appreciate any help in this regard.

chaitanya elluri
Top achievements
Rank 1
 answered on 10 Dec 2009
0 answers
167 views
There is a problem with RadScheduler in version 2009.3.1208 (Q3 SP1 2009) if it is bound to Web Service or WCF Service. The problem manifests when you switch the Views. It is already fixed in our latest internal builds (starting from version 2009.3.1210). If you do not want to use the internal bits - please add the following javascript code after the scheduler's declaration:

// Workaround for the view switching bug in RadScheduler (Web Service binding).  
// Should be removed after upgrading to version 2009.3.1210 or later.  
Telerik.Web.UI.RadScheduler.prototype._onWebServiceAppointmentsReceived = function ()  
{  
 this.get_appointments()._clear();  
  
 if (this._newActiveModel)  
 {  
  this._activeModel = this._newActiveModel;  
  this._newActiveModel = null;  
 }  
  
 if (!this._activeModel._getRenderer)  
  return;  
  
 var renderer = this._activeModel._getRenderer();  
 if (renderer)  
 {  
  renderer.refreshView();  
  this._updateScrollAreas();  
 }  
};  

We apologize for the caused inconvenience.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 10 Dec 2009
5 answers
160 views
I have a panelbar on a usercontrol that fill it's items from an xml file, it has the ExpandMode="SingleExpandedItem".
when I implement the onitemclick server side event with "navpanelBar_ItemClick" event handler the panel stopped expanding ..

Is there a reason for that .

below is the code of this

 

 

<telerik:RadPanelBar ID="navpanelBar" Runat="server"   
    ExpandMode="SingleExpandedItem" Width="100%"   
    OnClientItemClicking="panelclicking" onitemclick="navpanelBar_ItemClick" > 
</telerik:RadPanelBar> 
   
 <script type="text/jscript" language="javascript">  
    function panelclicking(sender, e)  
    {  
        var itemval = e.get_item().get_value();  
        if (!itemval)  
        {e.set_cancel(true);    }  
        else   
        {e.set_cancel(false);}  
    }  
</script> 

Thanks in advance

Waleed Seada
Top achievements
Rank 2
 answered on 10 Dec 2009
1 answer
139 views
By default the column fitlers work in an AND logic.
How can I have the column filters work in an OR logic?
Princy
Top achievements
Rank 2
 answered on 10 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?