Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
59 views
At the moment the text being dragged is bellow the cursor .
Is it possible to change that so it's displayed a bit to the right of the cursor , on the same line basically ?
Andrei Dragotoniu
Top achievements
Rank 1
 asked on 25 Sep 2009
4 answers
160 views

When I push the pagging button, I got this error message:

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.


What causes this problem ?
Luis
Top achievements
Rank 1
 answered on 25 Sep 2009
1 answer
56 views
Using related combo boxes Continent, Country, City as an example.  If I were to implement the related combo boxes inside a .NET repeater control, what is the best approach to do this?  Let's say, I have two rows in a repeater, each row has its own related combo boxes.  Do I need to create new javascript set for every row?  Any suggest is greatly appreciated.
Vesko
Top achievements
Rank 2
 answered on 25 Sep 2009
2 answers
105 views
Hi All,

I have just uploaded my site to DiscountAsp.Net, and get an error in my javascript, when trying to recognise a Server variable
(Works fine on my Dev Machine)

i.e.   Object reference not set to an instance of an object. and the stack trace lists  Telerik.WebControls.RadWindowManager.BuildTemplates()  as the last 2 in the stack.
Am Using Vers 2009.1 and ASP:scriptmanager
 

<

 

body topmargin=10 leftmargin=0 onload="CheckCloseRefresh()" scroll="no">

 

 

<form id="form1" runat="server" >

 

 

<asp:scriptmanager ID="Scriptmanager2" runat="server"></asp:scriptmanager>

 

 

<script language="javascript" type="text/javascript">

 



Source Error:

Line 48:            function CheckCloseRefresh()
Line 49:            {                 
Line 50: if (<%= Show %> == true)Line 51:                 {
Line 52:                    Login();

Source File: e:\web\equistarco1\htdocs\Main.aspx    Line: 50

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.WebControls.RadWindowManager.BuildTemplates() +952
   Telerik.WebControls.RadWindowManager.Render(HtmlTextWriter writer) +243
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

Any ideas or help please
Thanks
Neal
Neal
Top achievements
Rank 1
 answered on 25 Sep 2009
5 answers
101 views
I have a grid and a skin specified for that and it works fine.  However, on the contained GridDropDownColumn columns, when it shifts to edit mode, the combo box is created nicely, but does NOT inherit the skin of the grid as the text boxes do.  This results is a mixture of font sizes in the edit row (inline edit).

How can I tell the created ComboBox which skin to use?

Thanks!
Veselin Vasilev
Telerik team
 answered on 25 Sep 2009
2 answers
156 views
In all current examples on RadNumericTextBox with spinbuttons I see InvalidStyleDuration="100". Without this setting, my control with spinbuttons doesn't format properly. The help doesn't say anything.

What is the meaning of this property, how and when is it supposed to be used?
Eliyahu Goldin
Top achievements
Rank 1
 answered on 25 Sep 2009
0 answers
91 views
Hi,

I want to add an alert message to some nodes in my RadTreeView.
Following is my code.

int temp = 0;  
        foreach (RadTreeNode node in rdtreeTeamBrand.Nodes)  
        {  
            if (node.Nodes.Count > 0)  
            {  
                for (int i = 0; i < node.Nodes.Count; i++)  
                {  
                    RadTreeNode brandNode = node.Nodes[i];  
                    foreach (DataRow row in tblTeamBrandDetails.Rows)  
                    {  
                        if (node.Value == row["TeamID"].ToString() && brandNode.Value == row["BrandID"].ToString())  
                        {  
                            node.Checked = true;  
                            brandNode.Checked = true;  
                            temp = Convert.ToInt32(objconfig.CheckBrandSwotForPlanPeriod(Convert.ToInt32(node.Value), Convert.ToInt32(brandNode.Value), PlanningPeriodID));  
                            if (temp != 0)  
                            {   //this is where im adding the radalert at..  
                                brandNode.Attributes.Add("onclick",   
                                    string.Format(@"   
                                function _showAlert() {{Sys.Application.remove_load(_showAlert);      
                                radalert('{0}', null, 100, '{1}');}};      
                                Sys.Application.add_load(_showAlert);""Brand will be excluded from the PlanningPeriod.""Novartis iPlan"));  
 
                                brandNode.ForeColor = System.Drawing.Color.Navy;  
                            }  
                        }  
                    }  
                }  
            }  
        } 

This is how a part of the Treeview looks in html
<div class="rtTop">  
                                        <span class="rtSp"></span><input type="checkbox" class="rtChk" /><span class="rtIn">AFIN</span> 
                                    </div></li><li class="rtLI"><div class="rtMid">  
                                        <span class="rtSp"></span><input type="checkbox" class="rtChk" /><span class="rtIn">FEM</span> 
                                    </div></li><li class="rtLI"><div class="rtMid">  
                                        <span class="rtSp"></span><input type="checkbox" class="rtChk" checked="checked" /><span class="rtIn" onclick="     
                                function _showAlert() {Sys.Application.remove_load(_showAlert);        
                                radalert('Brand will be excluded from the PlanningPeriod.', null, 100, 'Novartis iPlan');};        
                                Sys.Application.add_load(_showAlert);" style="color:Navy;">PROLE</span> 
                                    </div> 

This is not working. I am getting a alert with null as text, onclick of these nodes.

Please help.
Sudhanva
Top achievements
Rank 1
 asked on 25 Sep 2009
7 answers
165 views
I'm painfully converting my solutions from Q2 2007 to Q1 2009 AJAX. One thing I'm having a problem with is the ToolsFile for RadEditor. In the past, I used an ASPX page to provide dynamic content to the control (especially the links). When I try to do this now, it doesn't work, I get an error. It appears as if the control is not executing the page, but is rather reading it as if it were a text file, which means the dynamic content will not be included, and an error will occur (as the page tag is incorrectly processed). Am I right about this? Is there any workaround?

Michael
Lini
Telerik team
 answered on 25 Sep 2009
1 answer
53 views

Hey Telerik team,

I am facing some weird problem. In my page, I have a Gridview and and an HTML table containing 2 Telerik Calandar controls. Table is hidden at page load. 

GridView:
<asp:GridView ID="uxtechgrid" runat="server" BorderStyle="None" ShowHeader="True"

 

 

 

Width="75%" AutoGenerateColumns="False" EmptyDataText="No records found" OnRowCommand="uxtechgrid_RowCommand"

 

 

 

OnRowEditing="uxtechgrid_RowEditing" OnRowCreated="uxtechgrid_RowCreated">

 

 

 

<Columns>

 

 

 

<asp:TemplateField ItemStyle-Width="30%" HeaderText="Review Step">

 

 

 

<ItemTemplate>

 

 

 

<asp:LinkButton runat="server" ID="action" Text='<%# Bind("WorkflowItemTemplateName") %>'

 

 

 

CausesValidation="false" CommandArgument='<%# Bind("WorkflowitemtemplateID") %>'

 

 

 

CommandName="Edit"></asp:LinkButton>

 

 

 

</ItemTemplate>

 

 

 

</asp:TemplateField>

 

 

 

<asp:BoundField ItemStyle-Width="30%" HeaderText="Review Group Type" ItemStyle-HorizontalAlign="Center"

 

 

 

DataField="WorkflowItemTemplateTypeName"></asp:BoundField>

 

 

 

<asp:BoundField ItemStyle-Width="20%" HeaderText="Start Date" ItemStyle-HorizontalAlign="Center"

 

 

 

NullDisplayText="Not Assigned" HtmlEncode="false" DataFormatString="{0:d}" DataField="StartDateString">

 

 

 

</asp:BoundField>

 

 

 

<asp:BoundField ItemStyle-Width="20%" HeaderText="End Date" ItemStyle-HorizontalAlign="Center"

 

 

 

NullDisplayText="Not Assigned" HtmlEncode="false" DataFormatString="{0:d}" DataField="EndDateString">

 

 

 

</asp:BoundField>

 

 

 

</Columns>

 

 

 

</asp:GridView>

and HTML table is like :

 

<

 

tr id="uxDynamic" runat="server" visible="false" align="center" style="width: 100%">

 

 

 

 <td colspan="2">

 

 

 

 <table>

 

 

 

<tr>

 

 

 

<th colspan="2">

 

 

 

Review Step:

 

 

<asp:Label ID="uxReviewStep" runat="server"></asp:Label>

 

 

 

<asp:Label ID="uxWrkFlwTmpID" Visible="false" runat="server"></asp:Label>

 

 

 

</th>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<th>

 

 

 

Start Date:

 

 

</th>

 

 

 

<td>

 

 

 

<telerik:RadDatePicker ID="uxStartDate" runat="server" MinDate="2006-01-01" SharedCalendarID="sharedCalendar"

 

 

Skin="Gray" Culture="English (United States)">

 

 

 

<DateInput EmptyMessage="- Select a date -">

 

 

</DateInput>

 

 

 

 </telerik:RadDatePicker>

 

 

 

<asp:RequiredFieldValidator runat="server" Display="Dynamic" ID="Requiredfieldvalidator1"

 

 

 

ValidationGroup="grp" ControlToValidate="uxStartDate" ErrorMessage="Please select start Date."></asp:RequiredFieldValidator>

 

 

 

</td>

 

 

 

</tr>

 

 

 

<tr>

 

 

 

<th>

 

 

 

End Date:

 

 

</th>

 

 

 

<td>

 

 

 

 <telerik:RadDatePicker ID="uxEndDate" runat="server" MinDate="2006-01-01" SharedCalendarID="sharedCalendar"

 

 

 

 Skin="Gray" Culture="English (United States)">

 

 

 

 <DateInput EmptyMessage="- Select a date -">

 

 

 

 </DateInput>

 

 

 

 </telerik:RadDatePicker>

 

 

 

 <asp:RequiredFieldValidator runat="server" Display="Dynamic" ID="Requiredfieldvalidator2"

 

 

 

 ValidationGroup="grp" ControlToValidate="uxEndDate" ErrorMessage="Please select End date."></asp:RequiredFieldValidator><br />

 

 

 

<asp:CompareValidator ID="dateCompareValidator" runat="server" ControlToValidate="uxEndDate" Display="Dynamic"

 

 

 

ControlToCompare="uxStartDate" Operator="GreaterThan" Type="Date" ErrorMessage="The End Date cannot be before the Start Date<br /><br />">

 

 

 

 </asp:CompareValidator>

 

 

 

 </td>

 

 

 

 </tr>

 

 

 

 

<

 

tr>

 

 

 

 

 

<td colspan="2">

 

 

 

 

 

<asp:Button ID="uxSubmit" runat="server" OnClick="submitButton_Click" Text="Submit"

 

 

 

 

 

ValidationGroup="grp" />

 

 

</td>

 

 

 

 

 

</tr>

 

 

 

 

 

 

 

<

 

div style="display: none">

 

 

 

<telerik:RadCalendar ID="sharedCalendar" Visible="false" runat="server" EnableMultiSelect="false"

 

 

 

UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"

 

 

 

 RangeMinDate="2006/01/01" Skin="Gray" />

 

 

 

 <asp:PlaceHolder ID="sharedCalendarPlaceHolder" runat="server"></asp:PlaceHolder>

 

 

 

 </div>

 

 

 

Now on click of Hyperlink Column in Grid, We display the "TR" showing 2 Datepickers using shared Calendar. It works fine when I click on first(any) Hyperlink; both the calendar opens perfectly. But on clicking Second time any Hyperlink, it shows just first calendar not Second. In Javascript it shows "_1ca" as null; I guess that is stopping it to show. Can you please help me out? 

Please let me know if you need any other details!
 
Thanks in Advance!

 

 

 

 

Iana Tsolova
Telerik team
 answered on 25 Sep 2009
3 answers
176 views
Hi

I've succesfully got a databound radmenu working but it our application I need to be able to open aspx pages in named windows i.e. we end up with multiple open windows.

Is this possible?  There is no target property available in the radmenu and while this is available in the radmenuitem I cant seem to get this to work for a databound menu.

Thanks

Richard
Peter
Telerik team
 answered on 25 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?