Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
In Raddatatime picker if i did't set min date, and entered date as 00/00/00 and click tab, it is automatically changing to 12/31/1998
how to avoid this please help on this.
Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
1 answer
172 views
I'm starting out with the radgrid and I'm having trouble setting up a master/detail relationship with the radgrid. I have the basic setup working, but when i select a master record in the grid, the child record says "no child rows found". I'm not sure how the grid determines how to pass the "GoalId" select parameter to the detailsview. I notice some samples use a base select parameter field and others use a session parameter field. How is this setup and determined? I have the following code. The e.selectparameters is always showing up as null in the code when i break into it.

Any advice?

onselecting event for datasource:

 

protected void ActivitiesData_Selecting(object sender, LinqDataSourceSelectEventArgs e)

 

{

 

DevelopmentPlanRepository dvp = new DevelopmentPlanRepository(Conn);

 

e.Result = dvp.GetActivitiesForGoal(

Convert.ToInt32(e.SelectParameters["GoalId"]));

 

}




<

 

telerik:RadGrid ID="DevelopmentGoalGrid" runat="server" AllowPaging="True"

 

 

AllowSorting="True" DataSourceID="GoalsData" GridLines="None">

 

<

 

MasterTableView DataKeyNames="GoalId" DataSourceID="GoalsData">

 

 

<DetailTables>

 

 

<telerik:GridTableView DataKeyNames="ActivityID" DataSourceID="ActivitiesData" Width="100%"

 

 

runat="server" AutoGenerateColumns="true">

 

 

<ParentTableRelation>

 

 

<telerik:GridRelationFields DetailKeyField="GoalId" MasterKeyField="GoalId" />

 

 

</ParentTableRelation>

 

 

<RowIndicatorColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</RowIndicatorColumn>

 

 

<ExpandCollapseColumn>

 

 

<HeaderStyle Width="20px" />

 

 

</ExpandCollapseColumn>

 

 

</telerik:GridTableView>

 

 

</DetailTables>

 

<

 

RowIndicatorColumn>

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

RowIndicatorColumn>

 

<

 

ExpandCollapseColumn Visible="True">

 

<

 

HeaderStyle Width="20px"></HeaderStyle>

 

</

 

ExpandCollapseColumn>

 

</

 

MasterTableView>

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True" />

 

 

</ClientSettings>

 

</

 

telerik:RadGrid>

 

<

 

p>

 

 

&nbsp;</p>

 

<

 

p>

 

 

&nbsp;</p>

 

<

 

asp:LinqDataSource ID="GoalsData" runat="server"

 

 

onselecting="GoalsData_Selecting">

 

</

 

asp:LinqDataSource>

 

<

 

asp:LinqDataSource ID="ActivitiesData" runat="server"

 

 

onselecting="ActivitiesData_Selecting">

 

 

<SelectParameters>

 

 

<asp:Parameter Name="GoalId" Type="Int32" />

 

 

</SelectParameters>

 

 

</

 

asp:LinqDataSource>

 

Shinu
Top achievements
Rank 2
 answered on 17 Aug 2009
13 answers
588 views

I am trying to print the content from the radwindow on a full page.

I have tried an onload and print() on the page that opens in the rad window.  I have tried:

function

GetRadWindow()

{

var oWindow = null;

if (window.radWindow) oWindow = window.radWindow;

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

return oWindow;

}

function Print()

{

var oWnd = GetRadWindowManager().GetWindowByName("twPrint");

oWnd.GetContentFrame().contentWindow.print()

}

The problem is that no matter what way I try to print the content, It's like printing a screen shot of the parent window with the rad window content on top.  Any way to fix this?

Georgi Tunev
Telerik team
 answered on 17 Aug 2009
2 answers
118 views

Hello all.  I am currently having a problem getting the DataKeyValue from
my DetailTables data.  The MasterTableView works fine, however, the
same logic does not work with DetailTables.  I have searched the forum
and cannot fine any reference to this problem before.  Anyone have any
clues?  Code posted below.  Thanks in advance.

<telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server" Width="97%" AutoGenerateColumns="False"  AllowSorting="True"  ShowStatusBar="true" Skin="Office2007">  
<MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="EventID" AllowMultiColumnSorting="True" Width="100%" Name="EventTable" ClientDataKeyNames="EventID">  
<DetailTables> 
<telerik:GridTableView DataKeyNames="DataID" DataSourceID="SqlDataSource2" 
runat="server" Width="100%" TableLayout="Fixed" Name="DataTable" ClientDataKeyNames="DataID">  
<ParentTableRelation> 
<telerik:GridRelationFields DetailKeyField="EventID" MasterKeyField="EventID" /> 
</ParentTableRelation> 
<Columns> 
<telerik:GridBoundColumn HeaderText="Data ID" DataField="DataID" /> 
<telerik:GridBoundColumn HeaderText="Requirement" DataField="DataReqr" /> 
<telerik:GridBoundColumn HeaderText="Unit Sourced" DataField="DataUS" /> 
</Columns> 
</telerik:GridTableView> 
</DetailTables> 
<Columns> 
<telerik:GridBoundColumn HeaderText="Name" DataField="EventName" HeaderStyle-Width="200px" /> 
<telerik:GridBoundColumn HeaderText="Event AOR" DataField="EventAOR" HeaderStyle-Width="200px" />        
</Columns> 
<GroupByExpressions> 
<telerik:GridGroupByExpression> 
<SelectFields> 
<telerik:GridGroupByField FieldAlias="FY" FieldName="EventFY" /> 
</SelectFields> 
<GroupByFields> 
<telerik:GridGroupByField FieldName="EventFY" /> 
</GroupByFields> 
</telerik:GridGroupByExpression> 
</GroupByExpressions> 
</MasterTableView> 
<ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True">  
<ClientEvents OnRowClick="RowClicked" /> 
<Selecting AllowRowSelect="true" /> 
</ClientSettings> 
</telerik:RadGrid> 
<script type="text/javascript">  
    function RowClicked(sender, args) {  
        if(args.get_tableView().get_name() == "EventTable")  
           alert(args.getDataKeyValue("EventID"));  
       if (args.get_tableView().get_name() == "DataTable")  
           alert(args.getDataKeyValue("EventID"));  
         
    }  
</script> 

Joshua
Josh
Top achievements
Rank 1
 answered on 17 Aug 2009
1 answer
135 views
I have a webpage which contain a radgrid.

I have dragged the context menu into the page. What do I write to ensure that on right clicking the radgrid only, the context menu is displayed?

There is no forum section for contextmenu nor tutorials.

Also, why does this control take physical space on the designer when it is only going to be visible in a certain scenario anyway?

Keep up the good work :)
Veselin Vasilev
Telerik team
 answered on 17 Aug 2009
1 answer
516 views
I have 2 simple textboxes that I use a RadInputManager around.   I like the highlighted box and exclamation point (!) triangle that appears around the box when left blank which locks the page until the user fills out the information, but my issue is a user cannot click on a Telerik Menu link unless they fill in "something".   I don't want that behavior.  

The user can click whatever they want in the navagation menu and it should go there.  But it doesn't allow any click.

My code is below.  I just want the highlighted box triangle ! feature but only specific to the user clicking the event "submit" button.

Here is my code, the Validation set to TRUE makes it "isRequired", not sure how to use that.

 

<telerik:RadInputManager ID="radInputManager1" runat="server" Skin="Web20" >

 

 

<telerik:TextBoxSetting Validation-IsRequired="true">

 

 

<TargetControls>

 

 

<telerik:TargetInput ControlID="txtNewPassword" />

 

 

<telerik:TargetInput ControlID="txtRetypePassword" />

 

 

</TargetControls>

 

 

<Validation IsRequired="True" ValidateOnEvent="All"></Validation>

 

 

</telerik:TextBoxSetting>

 

 

 

</telerik:RadInputManager>

 

Iana Tsolova
Telerik team
 answered on 17 Aug 2009
1 answer
72 views
When I added <AdvancedForm Modal="true" /> to my page, the error message "Type 'Telerik.Web.UI.RadScheduler' does not have a public property named 'AdvancedForm'. " will display. 

 What is the reason?
Veselin Vasilev
Telerik team
 answered on 17 Aug 2009
5 answers
104 views
We have many ascx controls that are full of different radcontrols in each that are loaded into aspx pages. We have been experiencing some problems with IE8. We have two datepickers and an editor on the same ascx page which are flawlessly rendered in Firefox and Chrome but IE8 has serious problems.

If we place datepickers before the editor; the editor is not rendered correctly. The toolbars are not displayed in IE8. If we place datepickers after the editor, then, the calendar icon and the popup is not displayed correctly. 

This happens only in IE8 and we do not get any javascript errors at all. What can be the cause of this problem?

I took screen captures of this strange behavior...

IE8:
http://img21.imageshack.us/img21/6443/ie8k.jpg
Firefox:
http://img41.imageshack.us/img41/6981/80439196.jpg

Mehmet Ali Ozenci
Top achievements
Rank 1
 answered on 17 Aug 2009
0 answers
62 views

Hello sir
          I Have One problem with dock control . i have 6 dock on the page . in table there are 3 rows .each row contain 2 docks.
         i want to move  all  dock verically not horizantally. pls reply me 
nilesh
Top achievements
Rank 1
 asked on 17 Aug 2009
1 answer
121 views
in code behind i populate a radgrid with an objectdatasource based on a combobox selection. I enabled paging on the grid: AllowPaging="True"
PagerStyle-Mode="NextPrevAndNumeric"
 It all worked fine untill I clicked on page 2. once i clicked a page number the entire grid disappears. the text I specified in NoRecordsTemplate won't even show up. Please help....

Same symptom for Filtering and Ordering...
Vlad
Telerik team
 answered on 17 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?