Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
359 views
I am having an issue with the min date on the date time picker and setting the DbSelectedDate in code behind.

I have a form that the user can select a date and time for work to be done (start date/time). I set the min date in code behind to prevent them from selecting a data in the past. This all works great.

My problem is that when the user goes back to the form after the work has started the date displays the current date and time. It looks like a validation error is forcing the date to Now().

I am looking for some elegant solution or a clever hack. Basically I don't want the user to pick a date in the past but still display the date in the text box. i am hoping I can still use this control because it wokes perfectly for the UI.

Thanks,
Craig
Craig
Top achievements
Rank 1
 answered on 09 Apr 2010
4 answers
269 views

Hi there,

In order to define the window size when it is maximized I'm setting its style as follows:

div.radwindow_ModalWin.maximizedwindow

{
   height:80% !important;
   left:0pt !important;
   top:0pt !important;
   width:80% !important;
}

The problem is that the actual radwindow implementation overrides it with:

div.radwindow.maximizedwindow
{
   height:100% !important;
   width:100% !important;
}

The question is: is there any way to define window size when it is maximized?

Thanks,
Paulo
Petio Petkov
Telerik team
 answered on 09 Apr 2010
4 answers
344 views
Hi,

Is there a way i can make the controls (radtxtbox, radcombobox etc) invisible with javascript, what i have so far is

var cboTask = "<%= cboTask.ClientID %>";
var Task = document.getElementById(cboTask).value;

if(Task.style.visibility == "visible" || Task.style.visibility == "")
            {
                Task.style.visibility = "hidden";
                alert('hidden set');
            }
            else
            {
                Task.style.visibility = "visible";
                alert('visible set');
            }
        }

but i dont think task.style.visibility is the correct syntax as it comes back as undefined. Can anyone help me out?
Sphengle
Top achievements
Rank 1
 answered on 09 Apr 2010
8 answers
867 views
I have a RadMenu bound to a linq datasource... the datasource contains a URL field that is supplied when a person creates a new db record or page.

I then wanted to use a query string in the menu for the url....  I was wanting to do something like this but it will not work.

 

<telerik:RadMenu ID="RadMenu1" Runat="server" DataFieldID="MapID"

 

 

DataFieldParentID="ParentID" DataNavigateUrlField='<%# Eval("Url", "?Url={0}") %>'

 

 

DataSourceID="LinqDataSource1" DataTextField="Title"

 

 

Skin="Telerik" Width="100%" >

basicly I just want the menu to postback to the default.aspx page where I have a details view.

somehing like this" default.aspx?Url=PageName

Any ideas?

Thanks

 

Ronnie
Top achievements
Rank 1
 answered on 09 Apr 2010
6 answers
175 views
Hi there,

I have gone through hundreds of pages trying to solve what seems like a simple problem.

status:
I have successfully put a treeview in a combobox, clicking of node populates combobox etc...

now for the problem.
I need to set the  text value of the combobox from a data source, I am successfully able to find the node in the treeview and select the node. hoping that would set my text value , unfortunately it didnt.

in the codebehind page I have even attempted to call a client function to set the text of the combo box.... still failed !!!


Does anyone know how to set the text value of the combobox when  the selected node of the embeded treeview  is changed at serverside?

many thanks

Mark


Simon
Telerik team
 answered on 09 Apr 2010
1 answer
132 views
I would like to have the RadProgressArea visible on page load.  The RadProgressArea should just be visible and defaulted.  Upon uploading a file, I would like to update the RadProgressArea.

Can someone please assist?

Thanks!
Genady Sergeev
Telerik team
 answered on 09 Apr 2010
2 answers
109 views
I'm trying to use a RadGrid control with a manual datasource.  Tthat is, I do not have a DataSource control on the page, instead I use the NeedDataSource event to wire it up to a DataTable that is retrieved through some custom code.  The DataTable is is stashed in ViewState the first time and then retrieved on this event as needed.

Now, it's pretty straightforward to add a column to the RadGrid that adds an Edit link that puts the row into edit mode and that action column now has Update/Cancel links.  I can also see how easy it ease to add a AddNewRecords attribute to the CommandItemsSettings element.

And of course, wire up actions to the ItemCommand event or the individual UpdateCommand, DeleteCommand, etc. events.  So far so good.  What took quite a bit of digging into example code to find was the way to retrieve a reference to the row that was inserted/edited/deleted.  There seems to be a variety of ways, but the one I see most in example code is:

GridEditableItem eeditItem = e.Item as GridEditableItem;  
string str = editItem.OwnerTableView.DataKeyValues[editItem.ItemIndex]["EntityID"].ToString(); 

I have to tell you... I would never have figured this out w/out digging into existing code samples!  This does not seem intuitive at all, and so far, I haven't really come across any narratives or field notes or just plain english description about this.  Specifically,  I'm not sure I understand the OwnerTableView bit of it.

From the example above, why can't I just use the editItem.ItemIndex value to tell me which row in my datasource I'm on?  Then get that just index into it using something like 

DataTable dt = GridSource;  
GridEditableItem eeditItem = e.Item as GridEditableItem;  
DataRow myRow = dt.Rows[editItem.ItemIndex]; 

 I've also seen some sample code that does something like:

 
GridDataItem item = (GridDataItem)e.Item;    
string str = item["CompanyName"].Text;   

To me, both of the above examples are fairly easy to understand.

Any guidance (with some explanation) on what the various methods are would be appreciated.  Any info on the object chain that requires this OwnerTableView reference would also be greatly appreciated.  I realize I can just copy/paste the code and go on, but I'd really like to *understand* what I'm doing here!

Thanks.

Iana Tsolova
Telerik team
 answered on 09 Apr 2010
4 answers
74 views
hi,

I have a question but first a statement of concern.

There are claims that all feature of the RadGrid are WCAG 1.0 A compliant.  However, the first thing I would like to raise as there have been forum posts that caveat this by saying you can't have Static headers and enableScrolling = true.  Now admittedly, the forum post that caveats this is quite old but I suspect this is still the case.  I am concerned that the claim that all features are compliant is entirely misleading.  Now on to my question:

WCAG 1.0 Checkpoint 6.3 states "Ensure that pages are usable when scripts, applets, or other programmatic objects are turned off or not supported. If this is not possible, provide equivalent information on an alternative accessible page.".  My question is how is this supported by the RadGrid if paging is on?  what also needs to be set to ensure that javascript postbacks are not required?

Thanks
Dimo
Telerik team
 answered on 09 Apr 2010
1 answer
199 views
Hi ,
 I have a RAD grid. The calender exted is attached to a textbox. It forks fine in the non-inline edit mode. However it's display is jaggered in the inline edit. Any suggestions?
<EditItemTemplate> 
<asp:TextBox MaxLength="30" skin="Vista" Text='<%# Bind("Dt1")%>' ID="txtDate1" runat="server"></asp:TextBox> 
<asp:Image ID="imgCalendarDt2" runat="server" ImageUrl="~/images/Calendar_scheduleHS.png" 
onmouseover="this.style.cursor='hand'" ToolTip="Click to show calendar" /> 
<ajax:CalendarExtender  
ID="CalendarExtender2" runat="server" TargetControlID="txtDate1" PopupButtonID="imgCalendarDt2" 
PopupPosition="TopLeft" CssClass="yui"/> 
<asp:Label ID="lblDtFormat2" runat="server" Font-Italic="true" Font-Names="verdana" 
Font-Size="7" Text="Format: mm/dd/yyyy" /> 
</EditItemTemplate> 
All i am changeig is adding / commenting this code on the pageload

grd.MasterTableView.EditMode =

GridEditMode.InPlace;

 

Bruno
Top achievements
Rank 2
 answered on 09 Apr 2010
1 answer
101 views
Hi

Usually we include the dlls in bin directory of our application.But other than that how can we include the dll??

This method is needed for me to upload my files to the remote system as they dont take into account the 'bin' directory.

Thanks in advance,
kavin
Sebastian
Telerik team
 answered on 09 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?