Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
2.6K+ views

Hi,
i am using radcombobox and one scenrio i want that combobox having value from other sources which is working but i want that value to be shown as selected when page load not the user has to click the dropdown to see the value.

how to set the default value selected in dropdown. please help.

 <telerik:RadComboBox ID="cboTaskPersonSelector" runat="server" Width="195px" Height="150px"
                                    style="z-index: 107; left: 470px; position: absolute; top: 45px;"
                                    EnableLoadOnDemand="True" ShowMoreResultsBox="true"
                                    EnableVirtualScrolling="true" OnItemsRequested="cboTaskPersonSelector_ItemsRequested"
                                    Skin="Web20" AllowCustomText="false" EnableTextSelection="true" IsCaseSensitive="false"
                                    LoadingMessage="Loading..." DropDownWidth="500px" EnableScreenBoundaryDetection="true"
                                    Font-Names="Tahoma" Font-Size="12px" Enabled="false"
                                    OnClientDropDownClosed="OnClientBlur" ShowDropDownOnTextboxClick="false"
                                    AutoPostBack="true"
                                    OnSelectedIndexChanged="cboTaskPersonSelector_SelectedIndexChanged" SelectedValue='<%# Bind("TaskPersonId") %>'
                                    >

                                </telerik:RadComboBox>

protected void cboTaskPersonSelector_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    { 
            if (e.Text.Length > 0)
            {
                t = TaskInfoCollection.SearchPossibleTasksForAllotmentByTitleOrNumber(e.Text);

                for (int i = itemOffset; i < endOffset; i++)
                {
                    ctl.Items.Add(new RadComboBoxItem(t[i].Number.ToString(), t[i].Id.ToString()));
                }
               
            }
            else if (Request.QueryString["popup"] != null)
            {
                               
                t = TaskInfoCollection.SearchPossibleTasksForAllotmentByTitleOrNumber(Request.QueryString["taskno"]);

                     for (int i = itemOffset; i < endOffset; i++)
                {
                    ctl.Items.Add(new RadComboBoxItem(t[i].Number.ToString(), t[i].Id.ToString()));
                }              
               
            }
        }    
    }

here the value is fill into combo box by  ctl.Items.Add() but it is not showing as selected value.
so when page load it look likes the dropdown is empty while when user click on dropdown it is there.

please help.
Cat Cheshire
Top achievements
Rank 1
 answered on 19 Nov 2012
8 answers
190 views
Hi,

I have created a simple uploader that I am using to upload and process files.
I am using a ProgressArea for custom use, to show the progress of the file processing and not the file uploading.

On my develment server it is working fine, but after publish to my webserver it is not working.
The area shows, but the bars stay empty and the information shown is not updated in any way.

You can test my Progress Area using the following link: http://diesel.persies.nl
Just get this file, and upload it in te site above. and you will see what happens (or doesn't).

What could be wrong?

P.S. i am using a trial version at the moment, but I do not beleive that has anything to do with the problem.
Peter Filipov
Telerik team
 answered on 19 Nov 2012
0 answers
75 views

I am using Telerik RadGrid. It's search functionality work great whilst you are using English. When you have some Arabic text its search won't work

I have resolved the issue. It was not specfic with RAD Grid. Sorry
ABC
Top achievements
Rank 1
 asked on 19 Nov 2012
1 answer
117 views
Hi telerik,

I want to edit a row in my RadGrid on simply clicking the row. I don't want to use AutoGeneratedEditColumn or edit command column.
Please help ASAP..

Regards...
Princy
Top achievements
Rank 2
 answered on 19 Nov 2012
1 answer
82 views
Hi telerik,

My RadGrid has paging and sorting enabled. I am using add new record button to insert in my RadGrid. I am also using automatic crud operations. But my inserted rows are showing in the last row of the RadGrid. I want to show it in the current page itself. Please help me to achieve this scenario.

Thanks in advance.........
Shinu
Top achievements
Rank 2
 answered on 19 Nov 2012
2 answers
176 views
hi, kindly help me ,i have 2 datepickers and set min date and max date ,it works fine ,
now when one of them make error ex. out of range then the date input take the error style ,that's great 
but when clear the the dates by clicking a clear button  the error style still appear ,
if i removed it by jquery ,it's appear again on mouse over event ,
how to clear date picker event it takes error style ?
i used the following function and it's work fine but with IE the popup calender still appear .why ?????
 //clear Add Holding Event Inputs
                function fnClearHoldingEventInputs(sender, args) {
                    
                    rdpEventStartDate.set_maxDate(maxDate);
                    rdpEventEndDate.set_minDate(minDate);
                    rdpEventStartDate.clear();
                    rdpEventStartDate.get_dateInput().clear();
                    rdpEventEndDate.clear();
                    rdpEventEndDate.get_dateInput().clear();
                    $('.riTextBox').val('');
                    //to remove error class from raddatepicker UI bug
                    $('.riError').removeClass('riError');
                    rdpEventStartDate.set_showPopupOnFocus(false);
                    rdpEventEndDate.set_showPopupOnFocus(false);
                    rdpEventStartDate.get_dateInput().focus();
                    rdpEventEndDate.get_dateInput().focus();
                    rdpEventStartDate.hidePopup();
                    rdpEventEndDate.hidePopup();
                    rdpEventStartDate.set_showPopupOnFocus(true);
                    rdpEventEndDate.set_showPopupOnFocus(true);
}
Ashraf
Top achievements
Rank 2
 answered on 19 Nov 2012
1 answer
80 views
Hi,

how can I use RadToolBar to perform custom Commands in RadGrid. I would like to use RadToolBar to edit delete and add records. Can anybody please suggest a way to achieve this.

Thanks in advance.
Shinu
Top achievements
Rank 2
 answered on 19 Nov 2012
1 answer
37 views
The problem that I have is the following.
I have created a skin for RadDatePickers similar to this
<telerik:RadDatePicker runat="server" DateInput-DateFormat="dd/MM/yyyy" >
<Calendar>
    <FooterTemplate>
       <div style=" text-align: center">
         <a  href="#" onclick="SelectToday(this)" >Today</a>
        </div>
    </FooterTemplate>
</Calendar>
</telerik:RadDatePicker> 

Basically, it is just adding a footer with a link in it to the calendar used by the RadDatePicker. This skin works well in all of the pages of my application whenever I use a RadDatePicker. The problem is that the RadDatePickers used in the filtering section of RadGrids do not seem to apply this skin defintion. I have tried to apply it programatically in the RadGrid ItemCreated event with no luck.
Why is that? And what could I do to be able to apply my skin in the RadDatePickers within the filtering section of RadGrids?
Eyup
Telerik team
 answered on 19 Nov 2012
9 answers
174 views
Hi,

I want to use the custom data binding approach for the rad time picker as mentioned here:

http://demos.telerik.com/aspnet-ajax/calendar/examples/datetimepicker/customcollection/defaultcs.aspx

However, even in the demos ( I am accessing the site from INDIA), if I select some time say 9:30 am, it shows up on the time picker as 7pm. 7pm is the local time (IST) when I accessed this. 

Ideally this should show up as 9:30 am only and the selected date of the time picker should be today's 9:30 am. 

Please let me know how to proceed with it. 

Steps to repro:
  1. Just access the link from any other time zone apart from the time zone of the server.

Regards,
Vishesh
Radoslav
Telerik team
 answered on 19 Nov 2012
1 answer
78 views
Hi,
I am using SelfHierarchy within my RadGrid and would like to use Export functionality.
My CommandItemSettings are;
<CommandItemSettings ShowExportToExcelButton="true" ShowExportToWordButton="true"
 ShowExportToPdfButton="true" ShowRefreshButton="false" ShowAddNewRecordButton="false">
</CommandItemSettings>
Commands on MasterTableView are shown as expected but on details tables are not. Even ShowRefreshButton="false" ShowAddNewRecordButton="false", details table shows those buttons and hides "ExportTo...." buttons. I would like to hide all CommandButtons (or Command row) on details tables. Please refer to attached screen-shot for the unexpected behavior.

Any help would be greatly appreciated.
Radoslav
Telerik team
 answered on 19 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?