Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
53 views
Hi,
      When give the telerik forum URL its gives the following error. i used IE 8 in XP os. This is for your kind information.

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727)
Timestamp: Sun, 27 Jan 2013 17:13:36 UTC


Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://www.telerik.com/community/forums/aspnet-ajax.aspx


Message: 'loginUrl' is undefined
Line: 9975
Char: 5
Code: 0
URI: http://www.telerik.com/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_RadScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a16e4e7cd%3af7645509%3a22a6274a%3bTelerik.WebSite.SharedControls%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3a19ee69a5-7154-4c1a-9de4-3abe4a760f83%3aa93acafa%3bTelerik.Web.UI%2c+Version%3d2012.2.912.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a6aabe639-e731-432d-8e00-1a2e36f6eee0%3a24ee1bba%3ae330518b%3a1e771326%3a8e6f0d33%3a58366029%3bTelerik.WebSite.SharedControls%2c+Version%3d1.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3dnull%3aen-US%3a19ee69a5-7154-4c1a-9de4-3abe4a760f83%3af08febbe


Dhamodharan
Top achievements
Rank 1
 asked on 27 Feb 2013
1 answer
144 views
Hello,
I am using a RadChart like this:
<telerik:RadChart ID="rcServiceChart" runat="server"
   SeriesOrientation="Horizontal"
   DefaultType="StackedBar100"
   Skin="Hay"
   Width="500px"
   Height="100px"
   AutoLayout="true">
   <ChartTitle Visible="false" />
   <Legend Visible="false" />
</telerik:RadChart>

I would like to hide
1) The numbers that appear on the bar (solved this)
2) The Y axis label (solved this)
3) The X axis label

UPDATE: I don't think its a X axis label. How can I hide this "1" on my chart?

p.s. I would also like the plot area to fill the chart area too.

Thanks in advance,
Matt

Solved by this answer.
Matt
Top achievements
Rank 1
 answered on 27 Feb 2013
4 answers
173 views
Hi

The Upload function of RadEditor Image Manager is a great convenience feature for developers, but I would like to simplify the upload dialog a little for my inexperienced users by showing a single select box in the first instance, instead of the three that show by default. How can I best do this?

There doesn't seem to be a property of the image manager for this.

Thanks

Clive

Q2 2010 version of the controls on asp.net 4.0
Clive Hoggar
Top achievements
Rank 1
 answered on 27 Feb 2013
3 answers
119 views
There is a RADDatePicker control inside the RADGRID and when they are editing the field, Invalid date error msg should be thrown and the Invalid date should persist with the error msg. With the help of hidden control, I got the Invalid date and displaying Invalid date error message but the wrong date wipes away. Is there a property to display the wrong date.
Eyup
Telerik team
 answered on 27 Feb 2013
1 answer
97 views
Hello Sir/Madam,

I m using rad grid with item command and selected index changed events now i want whenever i use item commad current row color should be changed as appear in selected index change event


                                                                                           or


or 2nd possibilty is also here that is i m using three rad grids in which 1st grid id is grd_optnandprcng so that whenever i fired item command of fthis grid then second grid data(id="Req_items") and Third grid data(id="opt_items") should not refresh or ajax refersh image should not appear with it but on selected index changed it should be refresh .

 <telerik:AjaxSetting AjaxControlID="grd_optnandprcng">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Req_items"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="opt_items"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>

so please tell me solution of both possibility.

Thanks
Eyup
Telerik team
 answered on 27 Feb 2013
1 answer
82 views

I need to create the following page layout with Splitters and Panes; the entire browser window should be occupied with the splitter and must grow and shrink with the browser. The page would have 3 main sections: top, middle, bottom. The top section will have a menu, the bottom section would have a table or a DocZone. The middle part is divided into two sections, left and right with a Splitbar to be able to move it to the right or left. Here is what’s really important:

  1. The 3 main sections must occupy the entire browser page
  2. When the page grows or shrinks, only the middle part would grow/shrink with it

 

Your help with this layout would be much appreciated,
-Sam

Dobromir
Telerik team
 answered on 27 Feb 2013
2 answers
189 views
I have 2 RadDateTime controls inside my <FormTemplate>

Editing works perfectly fine, but when I try and create a new item...it throws this...?

Any idea?...if I remove the SelectedDate property everything is fine again...

Exception Details: System.InvalidCastException: Specified cast is not valid.

Source Error:

Line 243:                                <div class="inputItem">
Line 244:                                    <label class="rcbLabel itemLabel">Opens:</label>
Line 245:                                    <telerik:RadDateTimePicker ID="fromDatePicker" runat="server" Width="245px" DateInput-DateFormat="dddd MMM dd, yyyy h:mmtt" Skin="Sitefinity" SelectedDate='<%# Eval("FromDate") %>'>
Line 246:                                        <DateInput runat="server" EnableSingleInputRendering="true" />
Line 247:                                    </telerik:RadDateTimePicker>

Source File: DesignBuilder\Default.aspx    Line: 245

Stack Trace:

[InvalidCastException: Specified cast is not valid.]
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 27 Feb 2013
1 answer
276 views
Hello,

I have a basic radSplitter setup, with a "navigation" pane on the left and a "content" pane on the right, divided by a split bar. We'll call this page "Main.aspx".

In the navigation pane, I have a radTreeView control which builds up nodes in groups based on database records. Clicking on a treeview node sets the content pane's ContentURL to a specific aspx page based on the node & parameters, etc. Within this content pane, I can step the user through a wizard-type interface.

If the user edits an item in the content pane or completes the wizard, I would like to be able to refresh the TreeView control via some sort of javascript, similar to what is found at http://www.telerik.com/support/kb/aspnet-ajax/splitter/referencing-content-page-in-a-splitter-pane-from-the-parent-page-and-vice-versa.aspx  without refreshing the entire page and losing the reference to the page in the content pane. This would update the treeview with the new or changed information.

Complex as it may be, the only real solution I can think of is to refresh the entire page while holding a value in Session. After the treeview builds, it can inspect the session value, highlight the node in question, and load the content pane base on the session value.

Do you have any better ideas?
Dobromir
Telerik team
 answered on 27 Feb 2013
2 answers
247 views
Hello!
I searched a while for this issue and can't seem to find. I have a multipage radtabstrip. When i click a radbutton in the first tab, i want the thrid one to open, load data, then trigger the insert command in the grid inside the 3rd tab.
Everything works from the moments i arrive in the load of my 3rd tab. My EventArguments still have what i sent from the first tab.

For the sake of showing my problem, here is how i do it from the javascript file:
//Client side function called by my button in the first tab:
triggerMyThridTab: function() {
    this._needToAdd = true;
    this._tabs.get_tabs().getTab(2).set_selected(true);
}
//.... calling the selected function
onTabSelected: function(sender, args){
    if(this._needToAdd){
      sender._userControl._needToAdd = true;
      sender._userControl._myThridTab.raise_load();
    }
}
//In my thirdTab usercontrol load function....
raise_load: function(){
    if(this._needToAdd){
      var myAction = "addNewEntry";
      eval("var exec = function() { $find(window.idAjaxManager).ajaxRequestWithTarget('" + this._triggerUniqueID + "', '\\{ \\'Action\\':\\'" + myAction + "\\'}' ); }");
      ExecRequeteAjax(this, exec, 5, null);//This calls the postback
    }
}

Then, i have this in my third tab load function :
'This is the userControl contained in the third tab
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  If ValidateEventArguments() Then
    'I must open the grid in insert mode
    MyGrid.MasterTableView.IsItemInserted = True
    MyGrid.Rebind()
  End If
End Sub

In my Third tab, i have a grid with a custom userControl for the edit form:
<telerik:RadGrid ID="MyGrid" runat="server" >
   <EditFormSettings EditFormType="WebUserControl" UserControlName="~/UserControls/MyAddItemCustomUC.ascx" />
   <Columns>....</Columns>
</telerik:RadGrid>


My Problem is, i need to pass some viewstate properties to the userControl. Normally i do this in the grid itemCreated() function when the item is type of GridEditFormInsertItem.
Protected Sub MyGrid_ItemCreated(ByVal sender As Object, ByVal e As GridItemEventArgs) Handles MyGrid.ItemCreated
  If TypeOf e.item Is GridEditFormInsertItem Then
    Dim control As MyCustomEditUC = DirectCast(e.Item.FindControl(GridEditFormInsertItem.EditFormUserControlID), MyCustomEditUC)
    control.SomePropreties = PropretiesInViewState
  End If
End Sub

When i load the customUC, my properties is set, and i can use it. But, if i write IsItemInserted somewhere.... that variable is never set and my website crashes. I can't put the variable in the viewstate anywhere else, security issues, and thats how the website was made before i added this feature.

I hope my explanations were clear and someone might be able to answer me cause i really don't know what to do...

Sophie
Top achievements
Rank 2
 answered on 27 Feb 2013
5 answers
134 views
Hi
I have ComboBox with multicolumns which is embeded in RadGrid ->Columns ->GridTemplateColumn -> EditItemTemplate.
Orginally it had one checkbox column and 3 databound coulmns from SqlDataSource. I had to add new column and it had to be TextBox. After that when I click 'Save' while inserting new item I get error:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 


Here's my code:
<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="200px" Width="300px"
                            DropDownWidth="520px" EmptyMessage="Select Item" HighlightTemplatedItems="true"
                            EnableLoadOnDemand="True" RadComboBoxImagePosition="Right" AllowCustomText="true"
                            DataTextField="hardware_no" DataValueField="id_comp"
                            SelectedValue='<%# Eval("id_comp") %>'  
                            Text='<%# Eval("hardware_no") %>'
                            AutoPostBack="False" 
                            DataSourceID="SqlDataSource1" 
                            >
                            <HeaderTemplate>
                                <table style="width: 480px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 20px;">
                                            </td>
                                        <td style="width: 35px;">
                                            Amount</td>
                                        <td style="width: 100px;">
                                            Hardware Nr</td>
                                        <td style="width: 160px;">
                                            Department</td>
                                        <td style="width: 140px;">
                                            Person</td>
                                              
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                  
                                <table style="width: 480px" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 20px;">
                                            <asp:CheckBox runat="server" ID="chk1" Checked="false" />
                                        </td>
                                        <td style="width: 35px;">
                                            <asp:TextBox ID="TextBoxAmount" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "amount") %>' Width="25" ></asp:TextBox>  
                                              
                                        </td>
                                        <td style="width: 100px;">
                                            <%# DataBinder.Eval(Container.DataItem, "no_h")%>
                                        </td>
                                        <td style="width: 160px;">
                                            <%# DataBinder.Eval(Container.DataItem, "dept")%>
                                        </td>
                                        <td style="width: 140px;">
                                            <%# DataBinder.Eval(Container.DataItem, "person")%>
                                        </td>
                                          
                                    </tr>
                                </table>
                                 
                            </ItemTemplate>
                        </telerik:RadComboBox>

All data fields from SqlDataSource are provided from strored procedure, including the TextBox one - 'amount'

Please help
Thx
Konrad
Nencho
Telerik team
 answered on 27 Feb 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?