Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
222 views

I have the format set to be M/d/yyyy, and it works when selecting a date but if there is any postback on the page it changes for format to use the dashes like M-dd-yyyy.  Any ideas how to fix this?

 

 

<telerik:RadDatePicker ID="radGridDate1" Runat="server" SelectedDate='<%# DateTime.Parse( Eval("Date", "{0:M/dd/yyyy}")) %>' Width="100px" Skin="Bootstrap" >
                                                 <Calendar EnableWeekends="True"  ShowRowHeaders="false" Skin="Bootstrap" > </Calendar>
                                                 <DateInput DateFormat="M/d/yyyy" DisplayDateFormat="M/d/yyyy" LabelWidth="40%">
                                                     <EmptyMessageStyle Resize="None" />
                                                     <ReadOnlyStyle Resize="None" />
                                                     <FocusedStyle Resize="None" />
                                                     <DisabledStyle Resize="None" />
                                                     <InvalidStyle Resize="None" />
                                                     <HoveredStyle Resize="None" />
                                                     <EnabledStyle Resize="None" />
                                                 </DateInput>
                                                 <DatePopupButton HoverImageUrl="" ImageUrl="" />
                                            </telerik:RadDatePicker>

Thanks
Vasil
Telerik team
 answered on 09 Jun 2016
1 answer
490 views

Trying to use an ODataDataSource with a RadSearchBox.  When I try to use it, I get the following error:

The query specified in the URI is not valid. The value for OData query '$orderby' cannot be empty.

Is there a way to set an orderby that I can pass?  I don't see an option (or maybe I'm going nuts - could be) and it appears as though the ODataDataSource is just passing a blank $orderby= in the query string. 

Thanks,

Richard

Bozhidar
Telerik team
 answered on 09 Jun 2016
1 answer
146 views

I bound the radListview control by client side. I want access control (make it visible true/false) in the OnTemplateDataBoundevent of the RadLitsView.

The event is firing but I don't know how to access the controls in the ListView.

Also I want to set the command Names and fire Item Command event and in the command event want make the RadLitsView rows visible true/false.

Please help me to achieve the above functionality.

Eyup
Telerik team
 answered on 09 Jun 2016
3 answers
126 views

Hi!

   I have a checkbox column within my TreeList, when Click [Add], I could get almost all of the fields within the <telerik:RadTreeList> except the checkbox field.

I have tried, if I changed the InUse Column to  <telerik:TreeListBoundColumn>, it will be included in the ExtractValues Hashtable.  But, when I changed it back to checkbox field(code as below), then it is not included in the hashtable.  How could I get the value of the checkbox?

Thanks in advance!

SH

 

    <telerik:TreeListTemplateColumn DataField="InUse" UniqueName="InUse" HeaderText="Enabled" EditFormHeaderTextFormat="Enabled: ">
                                        <HeaderStyle Width="30px"></HeaderStyle>
                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' Enabled="false" />
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:CheckBox ID="chkInUse" runat="server" Checked='<%# Eval("InUse").ToString()=="Y"?true:false %>' />
                                        </EditItemTemplate>
                                        <InsertItemTemplate>

                                            <asp:CheckBox ID="chkInUse" runat="server" />
                                        </InsertItemTemplate>
                                    </telerik:TreeListTemplateColumn>

.aspx.cs

protected void radTreeList_InsertCommand(object sender, TreeListCommandEventArgs e)

{
                Hashtable hashPCRelation = new Hashtable();
                TreeListEditableItem editItem = e.Item as TreeListEditableItem;
                TreeListEditFormItem oEditFormItem = editItem as TreeListEditFormItem;
                editItem.ExtractValues(hashPCRelation);

                ...

}

sharon
Top achievements
Rank 1
 answered on 09 Jun 2016
28 answers
873 views
I am having two problems with the popup right now.  My first issue is when
I set EditMode="Popup" and try to edit a row the grid columns expand slightly like
EditMode="InPlace" and textboxes were showing, however, there is nothing.
I cancel the edit and the grid column widths shrink back down slightly and
everything is back to normal.  When I go to add a row, the popup pops up
and all fields are waiting to be entered.  I can't figure out why one pops up
and the other doesn't.  My second issue is when I set
PopupSettings-Modal="True", the whole screen greys out including the popup.
Any ideas?

My RadGrid Details:
Located in <Div> that centers grid on page.
Custom CommandItemDisplay that houses the "Edit Selected" / "Add" / etc.
Grouping enabled.

Let me know if any further details are needed.  Thanks in advace for all replys.

Joshua
Maria Ilieva
Telerik team
 answered on 08 Jun 2016
1 answer
100 views

Hi there

Is there a way to move the DataLabelFields and Title down?

The reason why i ask this. Is, i have line chart that goes into the Negative and my Labels show up on the 0 line and not at the bottom of the chart.

how can this be fixed?

i have attached a picture.

regards

Jeremy

Danail Vasilev
Telerik team
 answered on 08 Jun 2016
1 answer
86 views

Hello,

I would like to hyperlink the group footer in my GRID. I've tried several approaches on this forum and none of them are working for me. I would like to pass an ID as the hyperlink in each group footer and navigate to an internal page that will show information related to grouped items.

Any help from you guys would be highly appreciated.

Thank you.

Konstantin Dikov
Telerik team
 answered on 08 Jun 2016
1 answer
327 views

1) Is there something similar to GridView’s CommandField in Telerik Radgrid? I need to edit fields row by row.

This is how it is done in GridView:

<asp:CommandField ShowDeleteButton="True" />
<asp:CommandField ShowEditButton="True" />

2) I also need to add a custom button for each row in RadGrid. How can this be done?

 

Thanks!

Viktor Tachev
Telerik team
 answered on 08 Jun 2016
1 answer
49 views

Can anyone advise: we need to have 2 slots which visually behave like the current 'All Day' slot - the other being an 'Any Time' slot. This means the job can be carried out any time throughout the day, whether a 10 minute or 2 hour job. Can we customise the scheduler so two slots appear and behave this way?  

Alternatively, could we utilise the 1am slot for example (as none of our users would use this), rename it and then customise the view so the 1am/Any Time slot appears under All Day, and then skips 2 - 6am, followed directly by 7am which is by default the first hour of the working day view. 

The reason we are hesitant to use/rename the 6am slot is that our users may need to use it.

Any help/advice massively appreciated.

Veselin Tsvetanov
Telerik team
 answered on 08 Jun 2016
1 answer
586 views

Hi,

I am using a RadGrid to show data (obviously).  Within a specific cell I have a literal that is called "DocumentName".  The user has an option to rename that generic name to something custom.  What I do is have a button that they click and an asp:TextBox control becomes visible with a save button.  When I enter text into that textbox and hit the save button I want to get that new value from the textbox.  However, I am getting an empty string every time. I have tried multiple ways  Here is my code.

foreach (GridDataItem g in EventsDocsRadGV.Items)
{

// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");

// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;

// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");

}

I also tried the same only wrapped in this loop
foreach (GridDataItem g in EventsDocsRadGV.MasterTableView.Items)
{

// First way - returns an empty string
TextBox RenameDocumentName = (TextBox)g.FindControl("RenameDocumentName");

// Second way - returns an empty string
string txt = (g["EventTypeDesc"].FindControl("RenameDocumentName") as TextBox).Text;
// Third way - returns an empty string
GridDataItem item = (GridDataItem)g;
TextBox RenameDocumentName2 = (TextBox)item["EventTypeDesc"].FindControl("RenameDocumentName");

}

I can access the other properties and cells that were bound onitemdatabound but not this textbox.  Ideas?

Thanks!

Viktor Tachev
Telerik team
 answered on 08 Jun 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?