Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
567 views
Hi

i am using radcombobox in my page. the load on demand is working fine. 
when i click or place my cursor on the combobox it list out the items. but i want to list my items after typing 2 or 3 letters on the combobox.
how can i do this?

thanks.
geetha.
improwise
Top achievements
Rank 1
Iron
Iron
 answered on 09 Feb 2011
1 answer
83 views
hi all
I have a list view and RadDataPager . Inside the RadDataPager , I have a dropdownlist control, I would like get the value of the dropdownlist control. I try ctype(RadDataPager.findcontrol("dropdownlist"), dropdownlist).selectedvalue but failed. 

how can I get the find the control inside the RadDataPager. Thanks

Regards,
Tam
Princy
Top achievements
Rank 2
 answered on 09 Feb 2011
7 answers
121 views
Hello

How do i insert "Select One" in radcombo that have multiple column
something like http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx

When i add radcombo item than it doesnt display in the drop downlist. It display "Blank item". when i select that blank item it display select one in the combo box.

Ideally i want user to see "select one" in rad combo when loaded for the first time.

Regards
Mac
Kalina
Telerik team
 answered on 09 Feb 2011
0 answers
69 views
Hi all,

I'm trying to select some text in a combobox filled with the loadondemand property set to true. For example, if I got a combo with employees and I select an employee, for example "Peter Griffin", I'm trying to select "Peter" clicking in the combobox filter to do another query only with the string "Peter", but everytime I click the combobox filter it selects the whole filter.

As I saw in this demo (http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx) I'm thinking that this is a current feature.

Can it be disabled easily?

Kind Regards,
Francisco
Top achievements
Rank 1
 asked on 09 Feb 2011
1 answer
73 views

Hi, 

I need to get the value of column, and was trying to get it as in the following thread:

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-fetch-column-value-from-detailtables.aspx

protected void RG_SearchResult_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
{
...
             if (e.CommandName == "History")
             {
                  if (e.Item.OwnerTableView.Name == "Level2")   //check with name of DetailTableView <br>                
                  {
                              GridDataItem item = (GridDataItem)e.Item;
                              foreach (GridDataItem childItem in item.ChildItem.NestedTableViews[0].Items) 
                              {
                                      string value= childItem["PropCode"].Text;
                             }
                
...

But I here - item.ChildItem.NestedTableViews[0].Items get error - Object reference not set to an instance of an object.

What I am doing wrong ?

Kanat
Top achievements
Rank 1
 answered on 09 Feb 2011
0 answers
121 views
hi, i can't delete appointments.. in debug mode i never enter the function
here's the RadScheduler code in aspx
<telerik:RadScheduler runat="server"
ID="RadScheduler1"
 Width="1000px"
    SelectedDate="01-01-2011"
     TimeZoneOffset="03:00:00"
     DayStartTime="08:00:00"
     DayEndTime="18:00:00"
    StartEditingInAdvancedForm="false"
     DataKeyField="ID"
      DataSubjectField="Subject"
    DataStartField="Start"
     DataEndField="End"
      DataRecurrenceField="RecurrenceRule"                  
     OnFormCreating="RadScheduler1_FormCreating"
    DataRecurrenceParentKeyField="RecurrenceParentID"
    Skin="WebBlue" Culture="it-IT" FirstDayOfWeek="Monday"
    LastDayOfWeek="Friday" SelectedView="WeekView" 
    OnAppointmentDelete="RadScheduler1_OnAppointmentDelete" 
    AppointmentStyleMode="Simple" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" AllowDelete="true" OnClientAppointmentDeleting="onAppointmentDeleting"
  >

and the function
protected void RadScheduler1_OnAppointmentDelete(object sender, SchedulerCancelEventArgs e)
 
{
 
    // I never go in this function
 
}

i also set proprietyAllowDelete="true"
i cant' understand why the event don't run.

thanks
Ale

Alessandro
Top achievements
Rank 1
 asked on 09 Feb 2011
1 answer
95 views
I'm working on an ASP.NET custom control that uses RadTreeView inside RadComboBox (largely following the example on the demo site). It's entirely client side and does not postback on its own, so all event handling is done using clientside JavaScript.

The control will be used in several places on a page and I would like to simplify the JavaScript that needs to be deployed to the client (since there's quite a bit). Right now, though, the "control" is just an ASP.NET WebForm.

In general, I am able to do a lot of DOM walking in order to find objects by their relative position, but this is falling apart when I try to locate the ComboBox from a TreeNode.

For instance, I'd like to do this (not working):
function GetRadComboBoxFromRadTreeViewElement(treeViewElement) {
    var htmlRoot = $(treeViewElement).closest('div.MyCustomControl'); // walk up to control container
    var comboBoxDiv = $(htmlRoot).find('div.SearchableTreeCombo'); // find ComboBox container
    return $find($(comboBoxDiv).attr('id')); // look up ComboBox object from containing div id
}

The idea is that I pass some element from a TreeNode event handler to this function and it traverses the DOM and returns the RadComboBox client object.

This is failing for me because the HTML generated looks like this (severely trimmed down):

<html>
  <body>
    <form>
      <div class="rcbSlide">
        <div id="RadComboBox1_DropDown" class="RadComboBoxDropDown" ></div>
      </div>
 
      <div class="MyCustomControl">
        <label for="RadComboBox1" id="treeListLabel">Field Label: </label>
        <div id="RadComboBox1" class="RadComboBox RadComboBox_Default SearchableTreeCombo">
          <input id="RadComboBox1_ClientState" name="RadComboBox1_ClientState" type="hidden">
        </div>
      </div>
    </form>
  </body>
</html>

The actual TreeView contents are rendered in the 'rcbSlide' div, which is added as the first element on the form. The remainder of my control logic resides inside the 'MyCustomControl' div. That makes DOM walking impossible (or does it?) when I have multiple instances of the control on one form. I don't have access to ASP.NET IDs (e.g. <%= RadComboBox1.ClientID => because the controls are generated dynamically and not statically declared in any markup).

I'm hoping there is actually a way I can find the TreeView from the ComboBox and vice versa using JavaScript that is generic and reusable. If I can't, I think the only method I can follow is to add a copy of all of the JavaScript for each control on the form, and customize each block of script for each instance of a control.

That's not particularly disastrous, but it means that a LOT of redundant JavaScript is being sent to a client. Right now my JS (unminified, mind you) is 26KB to support one instance of the control. Some users will have up to 10 of these on a form and I hate to add so much bloat to my pages when the differences between the script blocks is so minimal.


Can anyone suggest anything? Thanks!
Stefan
Top achievements
Rank 1
 answered on 09 Feb 2011
2 answers
87 views
Hi,

What i need to do is to change radconfirm buttons text so I addes sommething like that in my aspx:
<ConfirmTemplate>
    <div class="rwDialogPopup radconfirm">
        <div class="rwDialogText">
            {1}
        </div>
        <div>
            <a onclick="$find('{0}').close(true);" class="rwPopupButton" href="javascript:void(0);">
                <span class="rwOuterSpan"><span class="rwInnerSpan">EWKA</span></span></a>
            <a onclick="$find('{0}').close(false);" class="rwPopupButton" href="javascript:void(0);">
                <span class="rwOuterSpan"><span class="rwInnerSpan">RECZNY</span></span></a>
        </div>
    </div>
</ConfirmTemplate>
And I call my window from code behind like this:
ScriptManager.RegisterClientScriptBlock(Page, Me.GetType(), "NOSOURCE""radconfirm('text for user?',confirmCallBackFnGoToHandMode)"True)
Now the problem is that I need two different confirms on the same page one with 'EWKA' and 'RECZNY' and one with 'OK' and 'CANCEL' buttons
Any idea how I can achive that??

Thanks
margan
Top achievements
Rank 1
 answered on 09 Feb 2011
1 answer
213 views
Hi,
Is there any client-side method to set imageurl property of the control at javascript?
Thanks,
Mira
Telerik team
 answered on 09 Feb 2011
1 answer
54 views
My grid is posting back with every click. I am using it inside a Visual web part in SharePoint 2010. SP2010 automatically has an ASP.NET script manager on the page so I am a little confused as to why it isn't acting all AJAXy?
Pavlina
Telerik team
 answered on 09 Feb 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?