Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
132 views
Hi Friends,

Can anyone help me y the images in the toolbar is not displayed in editor sometimes.
this problem is not occuring regularly but it happens some time in both IE & FireFox.

Please review the attached image file....


Thanks
K²
kiran
Top achievements
Rank 1
 answered on 26 Feb 2010
3 answers
328 views
hi

i am using rad editor (version  Q1) . i want to set cursor position to the last character. when the page post back it goes on the top .

Regards

Rahul


sculver
Top achievements
Rank 1
 answered on 25 Feb 2010
5 answers
437 views
Hi -

I would like to use an image as a boolean indicator (e.g. "off.gif" and "on.gif") instead of using something the GridCheckBoxColumn.  Is there a solution that somebody has already done for this?  I couldn't find one searching this forum and I would think its not a unique usage of a boolean flag.

I know one solution can be a template column with an <asp:Image> and we can swap out the image source in the proper code event, but we have a lot of places to use this pattern in multiple grids/pages and would like to figure out some way to encapsulate it.

Thanks!
Rich
Grey
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
130 views
Hi, I have a tree with templated nodes.  Each node contains a few text boxes.  When a text box is selected and the spacebar is hit, the root node is immediately selected (no matter where I am working on the tree), and no space is put into the text box that has focus.  This happens once, when the node I'm working with is first selected, and each time I select a subsequent node to work with it.  I have tried capturing the OnClientKeyPressing event to prevent this, but the event is not even firing the first time I hit the spacebar.  When I hit the spacebar after that, it seems to work fine, and the OnClientKeyPressing event fires.  That is until I click on another node and try to type a space in the text box in that node--then the cycle repeats itself. 

Is there a way to totally disable key selection for the entire tree?

EDIT
I've done some further investigation.  When I edit a node, I am swapping out the innerHTML for an HTML block with text fields.  When that happens, I unselect() the node because I don't want the background to change color, but that leaves no selected nodes in the tree.  If I click any other node *before* I type a space into the textbox, everything works fine.  So I'm guessing the tree needs to have at least one selected node if a keydown event occurs within it, otherwise it will automatically select the root node--is this correct?
Nicholas Cloud
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
137 views
Hello everyone,

I am trying to write a javscript function that opens a rad window if the user selects a certain value from a rad combo box.
The event fires fine when the user changes a value in the combo box. The problem is that the javascript IF statement seems to be ignored.

 

 

 

 

 

The  radwindow opens even when the selected value is not 4...which I checked with document.write.

Im sure this is a school boy error - but I just cant see what the problem is...

function OnClientSelectedIndexChanged(sender, args)  
{  
   var item = args.get_item();  
   var selectedvalue = item.get_value();  
   //document.write("value is:" + selectedvalue);  
   if (selectedvalue="4")  
   {  
   window.radopen("csat.aspx","UserListDialog1");  
   return false;  
   }  
}  
 
 
 
des white
Top achievements
Rank 1
 answered on 25 Feb 2010
4 answers
144 views
I am having a problem setting the height of the scheduler control in FireFox (FF). IE displays correctly though.

As you can see in the screenshot the scroll button does not appear. I have read in other post that the scheduler height may need to be hard-coded...so I tried that and I couldn't get that to work.

If I perform an action on the scheduler; such as change the month; the scroll bars will appear correctly.


Notes:
The scheduler is in an asp:panel with the visible property set to false. When I check a checkbox I display the scheduler by setting the asp:panel to true

                            <tr class="fieldRow" id="rowRecurringDetails3" style="height:260px"> 
                                <td colspan="3" style="height:260px"> 
                                    <telerik:RadScheduler runat="server" ID="scheduler"  Skin="Myskin" EnableEmbeddedSkins="false" 
                                         SelectedDate="2010-02-16" DayStartTime="08:00:00" DayEndTime="18:00:00" Width="480px"  Height="260px"  OverflowBehavior=Scroll 
                                         TimeZoneOffset="03:00:00" SelectedView="MonthView" ShowHeader="true" ShowViewTabs="false" 
                                         ShowNavigationPane="true" ShowFooter="true" EnableRecurrenceSupport="true" EnableAdvancedForm=true DataRecurrenceField="4" DataRecurrenceParentKeyField="6"  
                                         OnAppointmentDelete="scheduler_AppointmentDelete" OnAppointmentInsert="scheduler_AppointmentInsert" OnAppointmentUpdate="scheduler_AppointmentUpdate" OnRecurrenceExceptionCreated="scheduler_RecurrenceExceptionCreated" 
                                         AllowInsert="false"> 
                                        <AdvancedForm Modal="true"   /> 
                                    </telerik:RadScheduler> 
                                </td> 
                                 
 
                                 
                                <td></td> 
                                <td></td> 
                                 
                                <!-- Example Column --> 
                                <td class="exampleColumn" > 
                                    <div class="exampleColumnContent"> 
                                        <div class="exampleColumnTextBox"> 
                                            Example 
                                        </div> 
                                    </div> 
                                </td> 
                                 
                            </tr> 

Any ideas on how to get the scroll bar to appear in FireFox?


Felipe

Felipe Saldana
Top achievements
Rank 1
 answered on 25 Feb 2010
2 answers
175 views
Hi,

I would like to bind Radcombo boxes in the grid from code-behind, because of the flexibility. 
I want the combo to be related to another combo in the grid, but first i have problems with setting the selected value of the combo. 

Here's a snippet of the grid columns:
                              <telerik:GridTemplateColumn UniqueName="CustomersTemplate" HeaderText="Kunde"> 
                                    <ItemTemplate> 
                                       <%#DataBinder.Eval(Container.DataItem, "CustID")%> 
                                    </ItemTemplate> 
                                    <EditItemTemplate> 
                                        <telerik:RadComboBox AutoPostBack="true" Width="200px" ID="CustomersDropDown" runat="server" 
                                                DataTextField="Company" DataValueField="CustID"  
                                                AppendDataBoundItems="True" Skin="GiveNH3_default" 
                                                ChangeTextOnKeyBoardNavigation="true" EnableLoadOnDemand="true" MarkFirstMatch="true" EnableEmbeddedSkins="false" 
                                                > 
                                                <Items> 
                                                    <telerik:RadComboBoxItem runat="server" Text=""  
                                                        Value="0" /> 
                                                </Items> 
                                        </telerik:RadComboBox> 
                                    </EditItemTemplate> 
                                </telerik:GridTemplateColumn> 

And of the code-behind:
Protected Sub Grid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles Grid.ItemDataBound 
  If (TypeOf e.Item Is GridEditableItem AndAlso CType(e.Item, GridEditableItem).IsInEditMode) Then 
Using C As RadComboBox = CType(item.FindControl("CustomersDropDown"), RadComboBox) 
                Dim dt As New DataTable 
        Dim _CustTypeID = 1 'This could be different for each combo, and would be set from another combo in the grid 
                Using cmd As New SqlCommand("SELECT * FROM Customers WHERE CustTypeID = " & _CustTypeID  & "", GetSQLConnection) 
                    Using dr = cmd.ExecuteReader 
                        dt.Load(dr) 
                    End Using 
                End Using 
                C.DataSource = dt 
                C.DataBind() 
                Dim editItem = CType(e.Item, GridEditableItem) 
 
                'This doesn't return the corret value from saved value in the database - instead it returns the first value of the datasource 
                Dim s = DataBinder.Eval(editItem.DataItem, "CustID").ToString 
                C.SelectedValue = s 
 
            End Using 
End if 
End sub 


Can you point me in the right direction? 

Any help appreciated!


( I use v. 2009.3.1314.35 of the web.ui)

KorsG
Top achievements
Rank 1
 answered on 25 Feb 2010
1 answer
165 views
Hi,
As long as I put my Web User Control into my page, RadToolBar on my page will not fire its ButtonClick event. Otherwise, it's working. Any idea?

Thanks,
Enoch

Enoch Kuang
Top achievements
Rank 1
 answered on 25 Feb 2010
4 answers
215 views
I am attempting to implement filtering for the first time using the RadGrid and have run into a problem/question/ignorance and I hope that someone can guide me in the correct direction.  Here is the scenario:

I have a page that loads a grid with filtering by column disabled (set to false).  The grid is using a LinqDataSource on the page and the DataSourceID is set.  The grid works fine for sorting, paging, etc.

The user may click on a button that turns on the filtering for the grid.  At this point the filtering is working great, including adding filters to multiple columns.  However, once a user chooses a non-filtering action that causes a postback, such as a sort or changing the page size, the filter disappears from the data.  The filter textboxes still show the values entered by the user, they are just not applied.

I have found that the FilterExpression on the MasterTableView object is an empty string, but the individual columns are retaining their CurrentFilterValue as the text entered into the filter textbox.

Do I need to manually "migrate" the filters from the columns up to the table level?  If so, at what point in the page/control's life cycle would be appropriate?

Thanks for any help and guidance that you can offer.

Adam


Mike Dennis
Top achievements
Rank 1
 answered on 25 Feb 2010
2 answers
144 views
Using your example for Performance with Web Services.  My app returns 8000+ items from the service and loads in < 10 seconds.  Yet the RCB appears empty after loading.  What am I mssing?

    function RequestingLoadofCombo(sender, eventArgs)  
    {  
        eventArgs.get_context()["DivID"] = RowDivID;  
        eventArgs.get_context()["Type"] = ContactType;  
    }  
    function Loaded()  
    {  
        alert("Loaded");  
    }  
 
 
                <telerik:RadComboBox ID="NonMembersComboBox" runat="server"   
                         Height="100px" Width="220px" ShowMoreResultsBox="true" MarkFirstMatch="true" 
                         EnableLoadOnDemand="True" OnClientItemsRequesting="RequestingLoadofCombo" 
                         OnClientItemsRequested="Loaded">  
                <WebServiceSettings Method="LoadCombo" Path="Admin.aspx" /> 
                 </telerik:RadComboBox> 
 
public class ComboBoxItemData  
{  
    private string text;  
 
        public string Text  
        {  
            get { return text; }  
            set { text = value; }  
        }  
    }  
 
    public static RadComboBoxData LoadCombo(RadComboBoxContext context)  
    {  
        int divID = (int)(context["DivID"]);  
        string typeString = (string)(context["Type"]);  
        char type = Convert.ToChar(typeString);  
        RadComboBoxData result = new RadComboBoxData();  
        List<RadComboBoxItemData> items = new List<RadComboBoxItemData>();  
        List<string> list = new List<string>();  
        Contacts c = new Contacts();  
        list = c.GetNonContacts(divID, type);  
        foreach (string id in list)  
        {  
            RadComboBoxItemData itemData = new RadComboBoxItemData();  
            itemData.Text = id;  
            items.Add(itemData);  
        }  
 
        result.Items = items.ToArray();  
        result.EndOfItems = true;  
 
        return result;  
    }  
 
 
 
 
 
Joel Brom
Top achievements
Rank 1
 answered on 25 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?