Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
227 views
Let's say I have the following Grid.

<telerik:RadGrid runat="server" ID="MyGrid">
  <MasterTableView>
    <Columns>
      <telerik:GridTemplateColumn UniqueName="DDLCol" HeaderText="PSO Standard Setting">
        <ItemTemplate>
          <asp:DropDownList runat="server" AutoPostBack="True" ID="DDL" OnSelectedIndexChanged="DDL_SelectedIndexChanged" />
        </ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

with the following Handler.

Protected Sub DDL_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)
    'Do Some stuff here.
End Sub

Execution never reaches this event handler.  What am I missing, or how could I better solve this problem?

I've also tried attaching the handler in the ItemDataBound event, but this also has not worked.

Private Sub MyGrid_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles MyGrid.ItemDataBound
            If TypeOf (e.Item) Is GridDataItem Then
                Dim item As GridDataItem = CType(e.Item, GridDataItem)
 
                Dim DDL As DropDownList = item.FindControl("DDL")
               'databind the drop down list (this works fine of course)
 
                AddHandler DDL.SelectedIndexChanged, AddressOf DDL_SelectedIndexChanged
            End If
        End Sub
Matthew
Top achievements
Rank 1
 answered on 21 Jun 2013
5 answers
183 views

Dear Telerik,

We have a problem with exporting numbers from GridHyperLinkColumn to Excel (Biff). They do get transferred to Excel but are stored as Text.
How can I make sure the values are converted to numbers (column.DataType is Int32)?

Thanks,
Elena.

Elena
Top achievements
Rank 1
 answered on 21 Jun 2013
4 answers
248 views
I have a RadGrid that is bound to an ObjectDataSource.  The grid has automatic insert, update and delete set to "true".  How can I get the grid to cancel out of edit mode when I click Insert?  I would also like to know how to cancel out of insert mode when I click to edit a row.

Thanks.
Duy
Top achievements
Rank 1
 answered on 21 Jun 2013
1 answer
116 views
Is RadTileList supported?

I'd like to save the layout after a user drags/drops tiles.
Vessy
Telerik team
 answered on 21 Jun 2013
3 answers
95 views
I don't know what I am doing wrong but I basically display a RadCalendar for a range selection:

<telerik:RadCalendar runat="server" ID="RadCalendar1" RangeSelectionMode="ConsecutiveClicks"
                EnableViewSelector="True" EnableKeyboardNavigation="True" SelectedDate="" Skin="Metro">
                <ClientEvents OnDateClick="onDateClick"></ClientEvents>
                <WeekendDayStyle CssClass="rcWeekend" />
                <CalendarTableStyle CssClass="rcMainTable" />
                <OtherMonthDayStyle CssClass="rcOtherMonth" />
                <OutOfRangeDayStyle CssClass="rcOutOfRange" />
                <DisabledDayStyle CssClass="rcDisabled" />
                <SelectedDayStyle CssClass="rcSelected" />
                <DayOverStyle CssClass="rcHover" />
                <FastNavigationStyle CssClass="RadCalendarMonthView RadCalendarMonthView_Metro" />
                <ViewSelectorStyle CssClass="rcViewSel" />
 </telerik:RadCalendar>

the following code executes when onDateClick handler executes

var rangeText = $("#RangeText");
var rc = $find("RadCalendar1");
var startDate = rc.get_rangeSelectionStartDate();
var datepattern = 'MM/dd/yyyy';
rangeText[0].value = rc.DateTimeFormatInfo.FormatDate(startDate, datepattern);


The problem is that the value of the textbox is set to: "0undefined/0undefined/undefined" (returned by the FormatDate() method).
If I take a look at the startDate value in the watch window it says: "Thu Jun 13 00:00:00 EDT 2013"
However when I expand the startDate instance there's a [prototype] child with a value of "Invalid Date"
Is this normal behavior? Why isn't the formatting working?

Thank you.
Vasil
Telerik team
 answered on 21 Jun 2013
1 answer
127 views
I don't understand what setting or property of the menu or menuitems will cause ALL the dropdown menus to left-align.

My dropdowns always align under the top-level item.

I was able to acheive left alignment by doing this CSS hack. But this cant be the right way of doing this. My page is here:

http://kw.my.etghost.net

.Item1 .rmSlide
   {
       left: 0px !important;
   }   
.Item2 .rmSlide
   {
       left: -170px !important;
   }   
.Item3 .rmSlide
   {
       left: -340px !important;
   }
Kate
Telerik team
 answered on 21 Jun 2013
3 answers
154 views
I have a radgrid I am creating dynmically including an editcolumn but when I click on the edit Column button I get the following error?

"An error has occurred because a control with id 'dgCompGrid$ctl00$ctl04$EditButton' could not be located or a different control is assigned to the same ID after postback. If the ID is not assigned, explicitly set the ID property of controls that raise postback events to avoid this error."

I have changed the grids viewstate = True but still get the same error?

        With dgCompGrid
            .Columns.Clear()
            .DataSource = Nothing
            .EnableViewState = True
            .DataSource = ippService.Select(ID)
        End With

        Dim oEditColumn As New GridEditCommandColumn
        With oEditColumn
            .ButtonType = GridButtonColumnType.ImageButton
            .UniqueName = "EditColumn"
            .CancelImageUrl = "~/Images/small/x_out.gif"
            .EditImageUrl = "~/Images/small/pencil.gif"
            .UpdateImageUrl = "~/Images/small/save_blue.gif"
            .ItemStyle.Wrap = False
        End With

        dgCompGrid.MasterTableView.Columns.Add(oEditColumn)


If I comment out the buttontype were the column shows EDIT instead of an image button it have no problems?

I use the Needdatasource to call a sub that loads the data.

Thanks in Advance.
Stefan
Top achievements
Rank 2
 answered on 21 Jun 2013
1 answer
110 views
Hi,
is there a way to check which RadTreeviewContextMenu was selected. (Server Side)
I have 3 contextmenus
Kate
Telerik team
 answered on 21 Jun 2013
2 answers
255 views

I am using the RadNotification control to notify the user of their session timeout due to inactivity.  I am basically following the example from the demo on the site.  But notification keeps showing even if there was ajax calls that keeps the session alive. I couldn't find any documentation on handling sliding session timeouts with radnotification control.
Marin Bratanov
Telerik team
 answered on 21 Jun 2013
4 answers
204 views
I have a radcombobox control on a pop rad window on a web server that will not open to display the items.
It does work on my laptop though
What is the work around?
Marin Bratanov
Telerik team
 answered on 21 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?