Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
70 views
Hi,

1.
Can I know how configure the related combobox "Country" don't auto open for every times I select "Continent"
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

2.
Can I know why I try add Empty Message for Multi-column Combobox , but didn't show out.
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multicolumncombo/defaultcs.aspx


Thanks.

aw
aw
Top achievements
Rank 1
 asked on 28 Sep 2010
1 answer
172 views

Hi,
i am using Radgrid and here is the column ...

 <telerik:GridHyperLinkColumn DataTextField="CostCentre" HeaderText="Cost Centre" SortExpression="CostCentre"
                            FooterStyle-Font-Bold ="true"
                            FooterStyle-HorizontalAlign ="Right"
                            UniqueName="CostCentre"
                            DataNavigateUrlFields="Id"
                            DataNavigateUrlFormatString="~/Allotment/Allotment.aspx?allotmentId={0}&ViewMode=ReadOnly"
                            Target="_blank"
                            HeaderStyle-HorizontalAlign="Right"
                            ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="80px"
                            />

but when i am trying to access the text of this field i am getting error.

public static void PrintRadGrid(ref StringBuilder content, RadGrid radgrid, ArrayList fieldsList, string gridTitle)
    {

        //print rows
        foreach (GridDataItem item in radgrid.Items)
        {
            ArrayList newArray = new ArrayList();

            for (int i = 0; i < fieldsList.Count; i++)
            {   
                Type type = radgrid.Columns[i].GetType();

                if (type.Name == "GridHyperLinkColumn")
                {
                   newArray.Add(((HyperLink)item[fieldsList[i].ToString()].Controls[i]).Text);
                }
                else if (type.Name == "GridBoundColumn")
                {
                   newArray.Add(item[fieldsList[i].ToString()].Text);
                }
            }

            content.Append("<tr>");
            foreach (string value in newArray)
            {
                content.Append("<td>" + value + "</td>");
            }
            content.Append("</tr>");
        }


        content.Append("</table>");
        content.Append("<br />");

    }

and it is working fine for GridBoundColumn.


please help.
Shinu
Top achievements
Rank 2
 answered on 28 Sep 2010
2 answers
113 views
Hi there,


All Im wanting to do is get the value from the combo box when i do a post back so that I know what item was selected. This isnt in the manual but it must be a failry common task.

Please help.


Cheers,

Trent
trent
Top achievements
Rank 1
 answered on 28 Sep 2010
2 answers
116 views
Hi there, I am encountering a couple of problems using the scheduler and am wondering if anyone can help.
The first one is that I cannot seem to get appointments to show up under their appropriate resources. Without resources, the scheduler displays the appointments fine. Here is the code, see if you can see what I'm doing wrong:

Initializing resources:
ResourceType resType = new ResourceType("Vehicle");
resType.ForeignKeyField = "VehicleID";
tripScheduler.ResourceTypes.Add(resType);
 
Vehicle[] vehicles = Vehicle.GetVehiclesForDate(DateTime.Parse(txtDate.Text));
foreach (Vehicle vehicle in vehicles)
   tripScheduler.Resources.Add(new Resource("Vehicle", vehicle.ID, vehicle.SummaryTextLong));

Initializing appointments:
Trip[] clientTrips_scheduled = Trip.GetTripsForDate(date, true);
DataTable scheduledTripsTable = new DataTable();
scheduledTripsTable.Columns.Add("ID");
scheduledTripsTable.Columns.Add("Title");
scheduledTripsTable.Columns.Add("Start");
scheduledTripsTable.Columns.Add("End");
scheduledTripsTable.Columns.Add("VehicleID");
DataRow row;
 
foreach (Trip trip in clientTrips_scheduled)
{
    row = scheduledTripsTable.NewRow();
    row["ID"] = trip.ID;
    row["Title"] = trip.Summary;
    row["Start"] = trip.Start;
    row["End"] = trip.End;
    row["VehicleID"] = trip.VehicleID;
 
    scheduledTripsTable.Rows.Add(row);
}
 
tripScheduler.DataSource = scheduledTripsTable;
tripScheduler.DataBind();

The scheduler markup (although I am doing all of the work in code-behind, here's the markup so you can see what I'm doing):
<telerik:RadScheduler ID="tripScheduler" runat="server" DataKeyField="ID" DataSubjectField="Title" DataStartField="Start" DataEndField="End" DisplayDeleteConfirmation="true" onappointmentcreated="tripScheduler_AppointmentCreated" CustomAttributeNames="VehicleID">
    <TimelineView UserSelectable="false" />
    <WeekView UserSelectable="false" />
    <MonthView UserSelectable="false" />
    <DayView UserSelectable="false" />
</telerik:RadScheduler>

Now I don't know what I'm doing wrong, I thought the foreign key field of "VehicleID" should allow appointments to be auto-assigned to their appropriate resources based on their "VehicleID" column value? Or do I need to do more than this?

Any help is greatly appreciated, sorry if I've missed something really obvious :)

The other problem is a very simple one - is it possible to assign separate start and end availability times for each resource? ie each Vehicle on my scheduler will have a shift start/end time, and I want this to be reflected on the scheduler.
Ryan
Top achievements
Rank 1
 answered on 28 Sep 2010
2 answers
605 views
Hi. I'm trying to enable or disable the datepicker control from the client with the datepicker.enable() and datepicker.disable() but it doesn't seem to work. The browser throws an "object doesn't support this property or method". It works okay on a radtextbox control. Am I using the correct method? Thanks.

function ShowHideRefreshItems() {
                    var dp = $find("<%= rdpRefresh.ClientID %>");
                    //var textbox = $find("<%= rntSupportRef.ClientID %>");
                    if (dp.get_enabled())
                        dp.disable();
                    else
                        dp.enable();
                }

<asp:CheckBox ID="cbRefresh" runat="server" Text="Request a refresh of environment" ValidationGroup="vgEnvironmentUpdate" onclick="ShowHideRefreshItems()" />
<telerik:RadDatePicker ID="rdpRefresh" Skin="Default" runat="server" DateInput-ValidationGroup="vgEnvironmentUpdate"
                                    Enabled="false">
                                    <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                    </Calendar>
                                    <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                    <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" ValidationGroup="vgEnvironmentUpdate">
                                    </DateInput>
                                </telerik:RadDatePicker>
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 28 Sep 2010
2 answers
218 views
Hi,
i have a big problem with radtextbox when the field content the character < and send a Insert procedure.
Example:
When the user enters the notes produced by other software in the database (sqlserver 2008 type field varchar(2000), it needs' to include this description:

Note product:
This product in very good,
the steeel is: OC2<HO3

and the software save it ok. (the software is a desktop application).

The select reads the data correctly and displays in a  RadTextBox correctly in a aspnet application. But when I do insert the orders, I get the error:

Errore di run-time di Microsoft JScript: Sys.WebForms.PageRequestManagerServerErrorException: Errore sconosciuto durante l'elaborazione della richiesta sul server. Codice di stato restituito dal server: 500
 
File: Telerik.Web.UI.WebResource_6.axd

it happens before the event:
protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
 

Dizionario - Visualizza dizionario dettagliato

  1. congiunzione
    1. but
    2. yet
    3. however
    4. still

The problem is when the "<" character is inserted between two letters without a space.
The problem not persist when the character is insert with space, example: OC2 < HO3
 

Dizionario - Visualizza dizionario dettagliato

  1. sostantivo
    1. la
  2. abbreviazione
    1. A
  3. pronome
    1. it
    2. her
    3. you
  4. articolo
    1. the
    2. a
    3. an

It 's a problem of the radtextbox ?  or you can not enter the character < without spaces between two letters?

Tnks
Aurelio
Aurelio Righetti
Top achievements
Rank 1
 answered on 27 Sep 2010
2 answers
104 views
Hi there , 

I am not sure if its a feature or an issue, but it appears as though I cannot uncheck a checked item in the radlistbox when the radlisbox is disabled 

e.g. 

var list = $find('<%=RadListBoxRisk1.CLientID %>')
alert(list.get_enabled() ) // displays false
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays true
}

if I change the code to this .. it works 

var list = $find('<%=RadListBoxRiskEffects.CLientID %>')
list.set_enabled(true)
alert(list.get_enabled() ) // displays true
var checkeditems = list.get_checkedItems()
for (x =0; x <checkeditems.length ;x ++  )
{
 checkeditems[x].uncheck()
  alert(checkeditems[x].get_checked());  // displays false
}
list.set_enabled(false)

thanks 

Mark
mark
Top achievements
Rank 1
 answered on 27 Sep 2010
1 answer
69 views
Hi,

Is it possible to change the background colour of the whole grid row?

Thx a lot.

MG 
Daniel
Telerik team
 answered on 27 Sep 2010
1 answer
52 views
I want to make the first auto generated column in my grid not editable when in edit/insert mode but 
AutoGeneratedColumns[0].IsEditable is read only.  I've tried removing the table row that contain the form controls during the item created event but that causes a casting error further down the event chain.  Can I do what I want here and if so what's the easiest way to do it?  Thanks.
Daniel
Telerik team
 answered on 27 Sep 2010
1 answer
132 views
Hello,

I have RadPanelBar with 3 RadPanelItems.  Each RadPanelItem hosts a Silverlight app (RadGridViews mostly)  that have some number of database records displayed and an interface to input query parameters (searching for records, filtering, etc.).  Every Silverlight app differs in height based on the number of records returned for any given request, thus making their height variable.  Is there a way to resize the RadPanel size in response to every change in the size of the Silverlight app's content?

Also, if I have the Silverlight apps inside of SharePoint Web Parts (which, in turn, are placed inside RadPanelItems), how much would it complicate things?

Thank you!
-VK. 
Vassili King
Top achievements
Rank 1
 answered on 27 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?