Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
68 views
I have a search function that searches the item inside the database and display the list of items in the rad grid.
The Grid has a edit (which generate by grid option). Everything is ok with the first page. When I click edit, it edits the right item.
When click to the second page, then click edit , the its edit the wrong item (keep edit the item on the first page instead of the second page).
for example
The grid show 25 items per page.
When click edit on the first item. It does the right item.
I go to the second page. Click on the 26th items. (first item of page 2). It show the edit form with the item to edit is the first one, not the 26th one.

Any ideas?

This is my search function:

protected void btnSearch_Click(object sender, EventArgs e)
    {
        String cmdString = null;
        if (lstCat.SelectedValue == "All")
        {
            cmdString = "Select * FROM tblFood WHERE " + searchString(txtSearch.Text);
            lblKeyword.Text = "";
        }
        else
        {
            cmdString = "Select * FROM tblFood WHERE (" + searchString(txtSearch.Text) + ") AND category = '" + lstCat.SelectedValue + "'";
            lblKeyword.Text = "" ;
        }
        SqlDataSourceFood.SelectCommand = cmdString;
        SqlDataSourceFood.DataBind();
        GridFood.DataBind();
    }

Tsvetoslav
Telerik team
 answered on 25 May 2009
3 answers
624 views
I have a problem with a Radwindow return values back to a calling page.  The code below shows the javascript call to open the windows and return the value back.  On the return it passes the value in an AJAX request which causes some text boxes to be filled with data.  The issue I have is the first time around the process works correctly and values are updated on the page but the second time, the radwindow opens but the onclientclose is not called.

function OnClientClose(oWnd, args) {
        var arg = args.get_argument();
        alert(" OnClientClose faultcode " + arg.faultcode);
        if (arg) {
            var faultcode = arg.faultcode;           
            $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("Finish," + arg.faultcode);
        }
    }

    function openwindow() {
        var oWnd = radopen("FaultTree.aspx", "FaultTreeWindow");
        return;
    }

The page structure means the radwindow is called from a usercontrol but the radwindowmanager is on the page that hosts the user control.  I've taken the ajax call out and the onclientclose is still not called again, it seems the reference to onclientclose is removed once the window is closed the first time.

The radwindowmanager declaration is shown below, has anyone got any ideas?

<telerik:RadWindowManager
            ID="RadWindowManager1"
            ShowContentDuringLoad="False"
            VisibleStatusbar="False"
            ReloadOnShow="True"
            DestroyOnClose="true"
            Width="500px"
            Height="400px"
            Modal="true"
            runat="server"
            InitialBehavior="None">
            <Windows>
                <telerik:RadWindow runat="server"
                    ID="CostDetailsWindow"
                    Behaviors="Close"                                        
                    NavigateUrl="~/CostDetails.aspx">
                </telerik:RadWindow>
                <telerik:RadWindow runat="server"
                    ID="ResourceDetailsWindow"
                    Behaviors="Close"                 
                    NavigateUrl="~/ResourceDetails.aspx">
                </telerik:RadWindow>
                <telerik:RadWindow runat="server"
                    ID="FaultTreeWindow"
                    OnClientClose="OnClientClose"
                    NavigateUrl="~/FaultTree.aspx">
                </telerik:RadWindow>
            </Windows>
    </telerik:RadWindowManager>

I'm using the 2009 Q1 version of the ASP.NET components.

Thanks for any assistance

Tim

Fiko
Telerik team
 answered on 25 May 2009
1 answer
125 views
Hello,


       I have used rotator, (version telerik.web.UI  3.1125.20), but iam facing one problem when page loads first time rotator does'nt show the items (this problem occurs only in Internet Explorer) and after refreshing the page then it works, so is there any solution please let us know.


Thank you
Fiko
Telerik team
 answered on 25 May 2009
1 answer
137 views
Hi

i want to move three items at a time using RotatorType="FromCode". I am able to rotate only one item at a time. but i need it for three items. please if possible give this functionality in control as a property like "NumberOFItemsToRotate". so that User can put the Number of items he/she wants to rotate. but  for now please tell me how can i achieve this i m stuck with it.  
Fiko
Telerik team
 answered on 25 May 2009
3 answers
74 views
I have a databound treeview filled with 48000 nodes and am experiencing unresponsiveness with IE8. After the treeview loads in IE8, I can use the browser's scroll bar to scroll from top to bottom of the treeview contents. But, If I move the mouse pointer off of the scroll bar button and onto the webpage IE8 immediately becomes unresponsive for 20 to 30 seconds. Also, anytime the mouse pointer is moved from the browser window and back onto the browser, IE8 becomes unresponsive for 20 to 30 seconds. No data appears to be downloading during this non-responsive time.

I do not experience this problem in Firefox 3.0.10.

Paul
Telerik team
 answered on 25 May 2009
1 answer
152 views

hi,

i am using Radtreeview for asp.net ajax controls.

in java script,

node.get_checked() code gives error as  " Object doesn't support this property or method"

my code is,

function AfterCheck(node)

 

{

 

if (!node.Checked && node.Parent != null)

 

{

node.Parent.UnCheck();

}

 

 

var siblingCollection = (node.Parent != null) ? node.Parent.Nodes : node.TreeView.Nodes;

 

 

var allChecked = true;

 

 

for (var i=0; i < siblingCollection.length; i++)

 

{

 

if (!siblingCollection[i].Checked)

 

{

allChecked =

false;

 

 

break;

 

}

}

 

if (allChecked && node.Parent != null)

 

{

node.Parent.Check();

}

 

UpdateAllChildren(node.Nodes, node.Checked);

}

 

 

 

 

function

UpdateAllChildren(nodes, checked)

 

{

 

var i;

 

 

for (i=0; i<nodes.length; i++)

 

{

 

if (checked)

 

nodes[i].Check();

 

else

 

nodes[i].UnCheck();

 

 

if (nodes[i].Nodes.length > 0)

 

UpdateAllChildren(nodes[i].Nodes, checked);

}

}

previous version (Rad controls for Asp.Net)  the above code works fine,

can u give me the solution.

thanks,

Princy
Top achievements
Rank 2
 answered on 25 May 2009
16 answers
407 views
My environment consists of VS2005, Framework 2.0 and Telerik RadControls Q1 2007.

My client wishes to display a grid that is initially in edit mode. All rows displayed must be editable (AllowMultiRowEdit is true) but only 3 of the columns in each row will be editable.

No command column will be displayed  on each row in the grid (i.e. no insert/update/delete link or button)

When the user finishes editing the data, he will click a command button in the grid header to update the changed rows in the grid (using AJAX).

The objective is to provide a quick way for a user to view several rows of data and perform actions on some or all rows and then update all changed rows.

Any suggestions for the best approach to the process or any sample code would be greatly appreciated.


Myriam
Top achievements
Rank 1
 answered on 25 May 2009
2 answers
508 views
Hi,

 i want to generate dynamic textbox inside radgrid insert or edit template wheneever add button is clicked and textbox getremoved when remove button is clicked
Ajit
Top achievements
Rank 1
 answered on 25 May 2009
3 answers
124 views
I am not sure what is going on, but for some reason the server side SelectedIndexChanged is not firing. Also regardless of setting the AutoPostBack to true or false the control always performs a postback to the site. I have the user control inside an ASP.Net update panel, but the combobox alwasy does a non-ajax postback. It is really strange.

Any thoughts?

Daniel
Veselin Vasilev
Telerik team
 answered on 25 May 2009
1 answer
160 views
Hi,

I am recieving an Error Message in the RadEditor. I am using the RadEditor 7.3.2. The issue is as follows

I added a new command in the RadEditor ToolBar which will open a pop up window which allows the user to select certain items and based on the selection the data will  be populated back to the RadEditor window.

This Scenario works fine if  RadEditor Window and Popup window are in the same server domain

For Ex   RadEditor Window url domain - http://myserver1:1699 and the Pop up window url domain http://myserver1:1699/
 
If the domain is different , the access is denied message is thrown by the Javascript

For Ex   RadEditor Window url domain - http://myserver1:1699/ and the Pop up window url domain http://myserver2:1699/

Is there any way to solve this issue.

Kindly Advise



Rumen
Telerik team
 answered on 25 May 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?