Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
171 views
I am trying to set a RadDateInput (time) value from a string but keep getting the error
"Text property cannot be set. String was not recognized as a valid DateTime."

I use 

datValue.Text =

value

 

where datValue is my RadDateInput and value is a string containing "09:30"
datValue.DateFormat and DisplayFormat are "HH:mm"

I am missing something obvious?

Thanks

Eric

PS: I use 2009 Q1
Eric
Top achievements
Rank 1
 answered on 28 May 2009
0 answers
125 views
Hi,
In RadToolBar is it possible to create nested RadToolBarDropdown like nested menus?

rtaak
rizwan
Top achievements
Rank 1
 asked on 28 May 2009
1 answer
173 views
Hi

A message defined in EmptyMessage property doesn't show if the list is not empty.

How can I define a "Please select ..." type of message ?

I don't want to enable LoadOnDemand.

I also tried to add a "Please select ..." text with an emtpy string key within the OnDataBound event handler to the list,
but the problem with this was that the RequiredFieldValidator control did not handle this properly.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 28 May 2009
1 answer
77 views
Hi All, 
            Iam dynamically binding the grid in the code behind. I have one Grid, inside that i have Tabcontorl with tabs and multipage view.  I am adding a gridview to the pageview.  I can not see the rendered gridview on the screen, however if I view the source from the browser I am able to see that the gridview was writted to the browser.  How can I fix this so I will be able to view the gridView?




 <telerik:RadGrid ID="RadGrid1" runat="server" Width="95%" ShowStatusBar="true" 
            AutoGenerateColumns="true" PageSize="7" AllowSorting="True" AllowMultiRowSelection="False" 
            AllowPaging="True"  OnItemCreated="RadGrid1_ItemCreated">  
             
            <MasterTableView Width="100%" DataKeyNames="CustomerID" AllowMultiColumnSorting="True" AutoGenerateColumns="true" > 
                <NestedViewTemplate> 
                    <asp:Panel runat="server" ID="InnerContainer" CssClass="" Visible="true">  
                        <telerik:RadTabStrip runat="server" ID="TabStip1"   
                            SelectedIndex="0" OnLoad="TabStip_OnLoad" MultiPageID="Multipage1" > 
                          <Tabs> 
                                <telerik:RadTab runat="server" Text="Sales" PageViewID="PageView1">  
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Contact Information" PageViewID="PageView2">  
                                </telerik:RadTab> 
                                <telerik:RadTab runat="server" Text="Statistics Chart" PageViewID="PageView3">  
                                </telerik:RadTab> 
                           </Tabs> 
                        </telerik:RadTabStrip> 
                          
                          
                         <telerik:RadMultiPage runat="server" ID="Multipage1"  RenderSelectedPageOnly="false" SelectedIndex="0">  
                              
                        <telerik:RadPageView runat="server" ID="PageView1">  
                           
                                 <telerik:RadGrid runat="server" ID="OrdersGrid" AutoGenerateColumns="false" 
                                    ShowFooter="true" AllowSorting="true" EnableLinqExpressions="false">  
                                    <MasterTableView ShowHeader="true" AutoGenerateColumns="false" AllowPaging="true" 
                                        PageSize="7" DataKeyNames="EmployeeID">  
                                        <Columns> 
                                        <telerik:GridBoundColumn  DataField="OrderId" UniqueName="OrderID" HeaderText="OrderID"></telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn  DataField="EmployeeID" UniqueName="EmployeeID" HeaderText="EmployeeID"></telerik:GridBoundColumn> 
                                              
                                        </Columns> 
                          </MasterTableView> 
                          </telerik:RadGrid> 
                           
          </telerik:RadPageView> 
           
          </telerik:RadMultiPage> 
       </asp:Panel> 
      </NestedViewTemplate> 
    </MasterTableView> 
  </telerik:RadGrid> 

Yavor
Telerik team
 answered on 28 May 2009
1 answer
74 views
http://www.telerik.com/help/aspnet-ajax/menu_dataobjectdatasources.html

I have tried this example and it does not seem to work. It just makes every item a root item.

I've also tried it by following this example with the same results.
http://demos.telerik.com/aspnet-ajax/menu/examples/programming/hierarchicalbinding/defaultcs.aspx

The version that i'm running is Telerik.Web.UI (v 2008.01.0619.35)
Atanas Korchev
Telerik team
 answered on 28 May 2009
4 answers
323 views
Hi!

I was reading all articles, like this:
Deleting records
Automatic DataSource operations
Insert/Update/Delete
Client-side delete

but it doesn't help me.

I found the reason, but i don't know how to solve it. On my site, i am using RadGrid for administrate news, and there i am using RadEditor in RadGrid

example:
//---------------------------
 <telerik:GridTemplateColumn UniqueName="RadEditorColumn1" CurrentFilterFunction="NoFilter"
                            FilterListOptions="VaryByDataType" ForceExtractValue="None">
                            <EditItemTemplate>
                                <telerik:RadEditor ID="RadEditor1" OnClientLoad="OnClientLoad" runat="server" Skin="Default2006" Content='<%# Bind("previewtext") %>'
                                     Height="300px" Width="800px" FlashManager-UploadPaths="~/Admin/uploads_files/flash" FlashManager-ViewPaths="~/Admin/uploads_files" FlashManager-DeletePaths="~/Admin/uploads_files/flash" ImageManager-DeletePaths="~/Admin/uploads_files/images" ImageManager-UploadPaths="~/Admin/uploads_files/images" ImageManager-ViewPaths="~/Admin/uploads_files" MediaManager-DeletePaths="~/Admin/uploads_files/files" MediaManager-UploadPaths="~/Admin/uploads_files/images" MediaManager-ViewPaths="~/Admin/uploads_files/files" DocumentManager-DeletePaths="~/Admin/uploads_files/doc" DocumentManager-UploadPaths="~/Admin/uploads_files/doc" DocumentManager-ViewPaths="~/Admin/uploads_files" />
                            <script type="text/javascript">
                                function OnClientLoad(editor, args) {
                                    var style = editor.get_contentArea().style;
                                    style.backgroundImage = "none";
                                    style.backgroundColor = "white";
                                }
                            </script>
                            </EditItemTemplate>
                        </telerik:GridTemplateColumn>
//--------------------------

And when i want to delete some record it gives me an error "Object reference not set to an instance of an object.", but if i dont use RadEditor in RadGrid, delete works fine.

How can i delete records, using RadEditor in RadGrid?

Insert, Update, Edit, Refresh, Add new record - work fine.


Yavor
Telerik team
 answered on 28 May 2009
2 answers
396 views
I have a radGrid, which contains a list of rows, each row contains a panel and and a radcombox. When user selects a new value in radcombox, i want to update the panel in that row. I am having problem in getting the row index. Apparently, here's my method:

 

protected void rcbContent_OnSelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)

 

{
          int intIndex = //how do i get the current row index?

 

          Panel pnlPreview = rptZones.Items[intIndex].FindControl("pnlPreview") as Panel;

 

 

 

 

Alec
Top achievements
Rank 1
 answered on 28 May 2009
9 answers
553 views
I have code:
<trk:RadCalendar ID="rdCalendar" runat="server" DayNameFormat="FirstLetter" EnableMultiSelect="false" AutoPostBack="false"
            <ClientEvents OnDateSelected="changeSchedulerView"/> 
            </trk:RadCalendar> 
and
function changeSchedulerView(calendarInstance, eventArgs) 
    __doPostBack('<%= rdCalendar.ClientID %>',eventArgs); 

rdCalendar.SelectionChanged += new Telerik.Web.UI.Calendar.SelectedDatesEventHandler(rdCalendar_SelectionChanged); 

I want to do "PostBack", when the date is selected. After "PostBack" I want to execute method: "rdCalendar_SelectionChanged". How can I do it??
Princy
Top achievements
Rank 2
 answered on 28 May 2009
2 answers
101 views
Hi,

I have Three dots in the place of Browse text in the browse button.

Here is my Code:
 <telerik:RadUpload ID="RadUpload1" runat="server" ControlObjectsVisibility="None" 
  InputSize="34" Width="200px" ReadOnlyFileInputs="true">  
<Localization Select="..." /> 
    </telerik:RadUpload>     

And i need the width of the Button to be reduced.

How can i achieve this?

Help me.
Genady Sergeev
Telerik team
 answered on 28 May 2009
1 answer
97 views
I would like to add a "New Record" link button in the grid header and handle everything myself through the RadGrid_ItemCommandEvent based on the CommandArgument.

Looking at the various Grid demos, I can't find any instance of the text "Add new record" in the ASPX or c# code.
Is there a declarative way to do this or do I need to create the link button on the fly myself?


Many Thanks


Eric
Shinu
Top achievements
Rank 2
 answered on 28 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?