Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
74 views
Hi Telerik,
I'm using Radgrid in my application.
I have one dount regarding radgrid needdatasource event.
Actually I'm binding the grid as follows

grid_needdatasource()
{
 bindgrid();
}
bindgrid()
{
//database intraction
grid.datasouce=dt;
}

Actually it will cal for databind,sorting and paging.
But everytime when we do sorting or paging this event will called and automatically bindgrid() method will call and it leads to database interaction agian. So every time when we do sorting or pagind its need database intraction. How to avoid this.
I think I have explored my doubt understandably.
please help me.
Ram
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
112 views
Hi,

I'm using a rad grid to show line items for an invoice. Each row has an image button column used to delete the row when clicked.
I prefer to do this on the client and everything works fine until I call rebind to update the grid. It just doesn't work.The results in my data store show's the row has been deleted but the page is still posted back. Am I doing something wrong? Is there something else I should do since I'm using master pages?
function DeleteRow() {
             EstimateWebService.DeleteEstimateItems(rowId.Id, OnDeleteRowSucess)
         }
function OnDeleteRowSucess() {
             $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("Rebind");
         }
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
                    EnableViewState="false" onajaxrequest="RadAjaxManager1_AjaxRequest">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnAddNewRow">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                  <telerik:AjaxSetting AjaxControlID="grdEstimateItems">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdEstimateItems" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                </AjaxSettings>
           </telerik:RadAjaxManager>
protected void RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e)
{
    if (e.Argument == "Rebind")
    {
        //RadGrid1.MasterTableView.SortExpressions.Clear();
        //RadGrid1.MasterTableView.GroupByExpressions.Clear();
        grdEstimateItems.Rebind();
    }
}

Thanks,
Ron.
Princy
Top achievements
Rank 2
 answered on 20 Sep 2011
2 answers
181 views
I am using Raddock control in my application where I have an requirement where I need to move the expand collapse button Position to the center of Raddock. Is there any way I can control the position and move it to middle of dock?  Or how I can create custom button which will give me the ability to perform expand and collapse functions?
Rashmi
Top achievements
Rank 1
 answered on 20 Sep 2011
1 answer
222 views
Hello,

Thanks in advance for any help on this...Let me explain as best I can:

I have a parent page where I declare the window manager and the given window.

 

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" style="display:none;" Behavior="Close" InitialBehavior="None" Left="" Top="" Modal="true" >

 

 

<Windows>

 

 

<telerik:RadWindow ID="MyWindow" runat="server" Title="Buy Tickets" Height="600px"

 

 

    Width="700px" ReloadOnShow="False" Modal="True" Skin="Web20" VisibleStatusbar="False"

 

 

    Behaviors="Close" style="display:none;" Behavior="Close" InitialBehavior="None" Left=""     NavigateUrl=""     Top=""     ShowContentDuringLoad="False"  />

 

 

</Windows>

 

 

</telerik:RadWindowManager>




this page contains an ascx

the ascx conatains a nested repeater

the nested repeater contains dynamic hyperlink controls.

i want the navigateURL property to open a radwindow and I cannot get this to work.

I tried the following function in the parent page:
function ShowWindow()
{

 

     window.radopen('http://www.google.com', 'MyWindow');

 

}

and dynamically setting the navigateurl property of the hyperlinks to call that function as follows:

 

"javascript: ShowWindow();"

 

;

 

 

 


thanks for your help...jim

sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 20 Sep 2011
3 answers
213 views
I have a radGrid and a radWindow on a page. Row selection on click IS turned on for the grid. The radAjaxManager is set up so that both the radGrid and the radWindow are trigger controls, and both update themselves and the other control.

When a row is double-clicked in the grid, I open the radWindow and display the records details. If you double-click another row while the radWindow is open, the detail display changes to the new record. I also have Next and Previous buttons on the window that change the selected record in the grid (using MasterTableView.selectItem(nrow)) and update the radWindow display. That all works perfectly.

I have also set it up so that while the radWindow is open the user can single-click a row in the grid to update the radWindow display. I use the OnSelected event for this purpose (hooking the OnRowClick event interferes with the OnRowDblClick event handler). The detail display in the radWindow gets updated with the new row correctly, but the row selected by the single-click is not highlighted to indicate that it has been selected! Worse, when I click the next or previous button on the radWindow, the selected record in the grid is moved relative to the highlighted row, which was the last row double-clicked or selected by next/prev buttons, rather than relative to the row I single-clicked. It's acting as if when a row is single-clicked it is only temporarily selected. When the radWindow is closed, single-clicking seems to work perfectly.

Is this a known issue with a known work-around? How do I get the single-click to select the row, highlight it as selected, and keep it selected?


Tracy Dryden
Top achievements
Rank 1
 answered on 19 Sep 2011
0 answers
264 views
I have a few telerik calendar controls on an ascx control along with other regular objects such as text boxes etc....

I needed to set the Id of the control so I added the following code to my code-behind:

protected void Page_Init(object sender, EventArgs e)
{
    this.ID = "MyFormId"
}

After I did this, built the website and loaded the page I noticed that my telerik calendar controls were no longer working and I saw a JavaScript error was being thrown saying "Uncaught SyntaxError: Unexpected identifier" and then when I go to the line its referencing the error is occuring on the line that does: Sys.Application.add_init(function().

When I comment out my Page_Init method the Telerik controls work just fine. 

How can I implement my Page_Init method without breaking Telerik?

Thanks!
Flea#
Top achievements
Rank 1
 asked on 19 Sep 2011
2 answers
118 views
We are using latest RAD Combobox and Rad Checkbox in our SharePoint 2010 Visual Web Part.

We have two node in tree view. We have one panel which contains two RAD Combo boxes.  When firs node is selected/chcecked then the panel is made visible and shown.On second node click the panel is made hidden. 
On tree node click 

We are facing two issues

1.  On tree view's FIRST node click the page does postback (only once, subsequent tree view node click does not post back, it does partial postback through ajax) 
2.  If first node is clicked where panel is made visible then the RAD Combo box seems to be working , but if after the page load the second node was clicked and then the first node was click, the RAD Combobox becomes non responsive. nothing happens on click or the combo-box. 

Would appreciate any urgent help.
Kalina
Telerik team
 answered on 19 Sep 2011
2 answers
102 views
i am writing a page with 3 Telerik grids
only one of them should be visible at any time, depending on the value of a radio button
do I make the other 2 grids Visible=false or do I set the data source to a null dataset and rebind - or both
looking for best practices here
thanks
Elliott
Top achievements
Rank 2
 answered on 19 Sep 2011
2 answers
125 views
Hi,
I have a RadWindow which is a search page. I would like to pass search result from Modal window to the parent window. Parent window has Customer First name, last name, address details etc and I would like to be refreshed after selecting the search result on modal window. What is the best way to pass information to the parent window? Please let me know.

Thanks..
nav100
Top achievements
Rank 1
 answered on 19 Sep 2011
1 answer
217 views
Hi,

while creating a new row within the Radgrid for InPlace edit mode, the grid always scroll to the last row of the last page.

Please let me know of a way to make the page default to the first page after inserting since the rows are being order by desc on the database side.

thanks,
Minh Bui
Sebastian
Telerik team
 answered on 19 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?