Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
168 views
hi all :)

I have a problem, when I try to insert new item from grid view to my table

I got this problem


how can I fix it ? :\


can you help me please

Hamza
Top achievements
Rank 1
 answered on 24 Sep 2011
2 answers
192 views
Hi,

I have a Hierarchical grid with several detail table levels.  I'm using the DetailTableDataBind method as below to set each detail tables data source however at the last level depending on certain criteria i need to bind to a different source for each item.  This works fine but if there are more than 2 items in this last detail table the columns displayed are always from the first item expanded.  (Autogenerate columns is set to true on the last detail table as i don't always know the columns that are going to be returned.)  Is there any way to show the columns from each individual data source?

switch (e.DetailTableView.Name)
        {
            case "tbl1":
                {
                     //setting the detailtableview datasource here
                    break;
                
            case "tbl2":
                {
                     //setting the detailtableview datasource here

                            if(condition 1)
                            {
                                e.DetailTableView.DataSource = source1;
                            }
                            else
                            {
                                e.DetailTableView.DataSource = source2;
                            }
                    break;
                }

        }


Many Thanks
Krishna
Top achievements
Rank 1
 answered on 24 Sep 2011
3 answers
213 views
Keep getting this error occasionally with v2011.1.315.35

When it happens we need to restart the application so it's pretty serious.  It's being caused by two grids
on the home page of the site that is being monitored by a website uptime service. 

Can't seem to find anything about this error.
NEX
Top achievements
Rank 1
 answered on 24 Sep 2011
4 answers
145 views
On my content page if I remove RadAjaxManagerProxy control then validations for controls on save button click works properly.but if I insert RadAjaxManagerProxy ,save button click does not validate any control.It comes to sever side save button click event.
I read about Page_ClientValidate() or Page_IsValid but it is not working.
Can u plz help me?
Sample code is as below -

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="mvEmployment">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="mvEmployment" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgPrepaidBenefits">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPrepaidBenefits" />
                </UpdatedControls>
            </telerik:AjaxSetting>              
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

Control to validate on Save button click -

<asp:TextBox ID="txtEmployer" CausesValidation="true" MaxLength="50" runat="server"
                            Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="rfvEmployer" runat="server" ControlToValidate="txtEmployer"
                            ErrorMessage="Please Enter The Name" ToolTip="Please Enter The Name" ValidationGroup="Validatetest"
                            Display="Dynamic">*</asp:RequiredFieldValidator>
                        <ajaxtoolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"
                            TargetControlID="rfvEmployer">
                        </ajaxtoolkit:ValidatorCalloutExtender>
                        <asp:RegularExpressionValidator ID="revEmployer" runat="server" ErrorMessage="Please insert alphabets."
                            ControlToValidate="txtEmployer" ValidationExpression="^[a-zA-Z]+$" ValidationGroup="Validatetest"
                            Display="Dynamic" Text="*"></asp:RegularExpressionValidator>
                        <ajaxtoolkit:ValidatorCalloutExtender ID="ValidatorCalloutExtender5" runat="server"
                            TargetControlID="revEmployer">
                        </ajaxtoolkit:ValidatorCalloutExtender>

Save Button -

 <asp:Button ID="rbtnSave" runat="server" CausesValidation="true"
                            Text="Save" ValidationGroup="Validatetest" OnClick="btnSave_Click" />
Sagar
Top achievements
Rank 1
 answered on 24 Sep 2011
0 answers
67 views
Hello,

                I have a aspx page with four ascx controls. In one of the control i have three buttons, one grid and one tree. i have used the radajaxmanagerproxy for ajax operation in that control. In one of the button's clientclick function i called doPostBack function. The entire page is refreshed when i called the doPostBack function, ajax is not working in this situation.  I am using radajaxmanager in my aspx page so i use radajaxmanagerproxy in my control for ajax. Radajaxmanager has only the property ajaxrequest. RadAjaxmanagerproxy  didnt have the property ajaxrequest. so i cant use this property in RadAjaxmanagerproxy  . Please give the solution for this problem.

Thanks,
Velkumar.
Velkumar
Top achievements
Rank 2
 asked on 24 Sep 2011
0 answers
101 views
Do
Hello,

                I have a aspx page with four ascx controls. In one of the control i have three buttons, one grid and one tree. i have used the radajaxmanagerproxy for ajax operation in that control. In one of the button's clientclick function i called doPostBack function. The entire page is refreshed when i called the doPostBack function, ajax is not working in this situation.  I am using radajaxmanager in my aspx page so i use radajaxmanagerproxy in my control for ajax. Radajaxmanager has only the property ajaxrequest. RadAjaxmanagerproxy  didnt have the property ajaxrequest. so i cant use this property in RadAjaxmanagerproxy  . Please give the solution for this problem.

Thanks,
Velkumar.
Velkumar
Top achievements
Rank 2
 asked on 24 Sep 2011
0 answers
98 views
Hello,

                I have a aspx page with four ascx controls. In one of the control i have three buttons, one grid and one tree. i have used the radajaxmanagerproxy for ajax operation in that control. In one of the button's clientclick function i called doPostBack function. The entire page is refreshed when i called the doPostBack function, ajax is not working in this situation.  I am using radajaxmanager in my aspx page so i use radajaxmanagerproxy in my control for ajax. Radajaxmanager has only the property ajaxrequest. RadAjaxmanagerproxy  didnt have the property ajaxrequest. so i cant use this property in RadAjaxmanagerproxy  . Please give the solution for this problem.

Thanks,
Velkumar.
Velkumar
Top achievements
Rank 2
 asked on 24 Sep 2011
5 answers
398 views


Hello Every One,

I'm find radgrid inside radbutton in RadGrid1_NeedDataSource

                GridCommandItem commandItem = RadGrid2.MasterTableView.GetItems(GridItemType.CommandItem)[0] as GridCommandItem;
                RadToolBar toolBar = commandItem.FindControl("RadToolBar2") as RadToolBar;
                RadToolBarItem textItem = toolBar.FindItemByValue("HeaderDisplay");
                RadButton LocationWise = textItem.FindControl("LocationWise") as RadButton;

Error Come Like That Index was outside the bounds of the array.

Thanks,
Mohamed
mohamed
Top achievements
Rank 1
 answered on 24 Sep 2011
2 answers
294 views
Hi guys,

I'm trying to resize an EditableImage on the server side.

// Resize image to the required resolution
EditableImage image = new EditableImage(currentImage);
image.Resize(imageWidth, imageHeight);

Using this code the image is simply cropped to the given resolution. Is this behaviour intended?
I was hoping for the whole image to become bigger or smaller depending on it's original size. 
softwarea
Top achievements
Rank 1
 answered on 24 Sep 2011
0 answers
95 views
Dear All
I hope to find the solution of my first problem post it at this nice forum .
I am developing ASP.Net 3.5 application
using IDE Visual Studio 2008 SP1
Fire Fox 6 web browser

I developed a web user control to work properly I need to disable and enable controls on certain condition on the client side , my user control has an updated panel .And so , I shall use the method
ScriptManager.RegisterStartupScript
Now this method works fine in context of ASP.NET controls , but when try to use it with telerik controls I found two problems

Problem : when try to disable the RadComboBox at page load I git script error that variable to handle RadComboBox is null let us see the below code , Also I got the same problem when put same code in different location were suppose the asp.net loaded successfully .for example, at button click event handler

' Try to execute below code at web user control page load or another location at
' the vb.net asp.net 3.5 code
' I encounter the script error combo is null
 
' str1 of type StringBuilder
str1.Append("var combo = $find('" & RadComboBox1.ClientID & "');")
 
str1.Append("combo.disable();")
 
ScriptManager.RegisterStartupScript(Me.Page, Me.Page.GetType(), "key1", str1.ToString(), True)


Second : sometimes I got the below script error in the Error Console in the Fire Fox , when trying to execute code like the above code mentioned ealier

Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative"  nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)"  location: "JS frame :: chrome://global/content/bindings/autocomplete.xml :: onxblpopuphiding :: line 854"  data: no]
Omar
Top achievements
Rank 1
 asked on 23 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?