Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
198 views
I have a button 'btnSave', a ModalPopup 'mpuEditAddr', and a TabContainer 'tabGridview' with 2 panels each containing a gridview.

'mpuEditAddr' has two usercontrols 'uc_Address'

On btnSave Click I'm getting 'The method or operation is not implemented' error with the below code.
Any suggestions on where I'm going wrong would be greatly appreciated!!

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">

 

 

<AjaxSettings>

 

 

<telerik:AjaxSetting AjaxControlID="btnSearch" EventName="Click">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="tabGridview" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="RadGrid1" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

<telerik:AjaxSetting AjaxControlID="RadGrid1" EventName="SlectedIndexChanged">

 

 

<UpdatedControls><telerik:AjaxUpdatedControl ControlID="mpuEditAddr" /></UpdatedControls>

 

 

</telerik:AjaxSetting>

 

 

</AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

<asp:Button ID="btnSearch" runat="server" Text="Search/ Refresh" />
  
  
  <asp:Button ID="btnEditAddr" runat="server" Text="Button" Style="display: none" />
    <asp:ModalPopupExtender ID="mpuEditAddr" runat="server" OkControlID="btnClose" TargetControlID="btnEditAddr"
        PopupControlID="panAddr" BackgroundCssClass="modalBackground">
    </asp:ModalPopupExtender>
    <asp:Panel ID="panAddr" runat="server" CssClass="ModalWindow" Style="display: none">
        <asp:TabContainer ID="tabAddress" runat="server" Width="10%" ActiveTabIndex="1">
            <asp:TabPanel ID="tabPickupAddr" runat="server">
                <HeaderTemplate>
                    Pickup Address
                </HeaderTemplate>
                <ContentTemplate>
                    <uc1:uc_Address ID="uc_PickupAddr" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
            <asp:TabPanel ID="tabDpoffAddr" runat="server">
                <HeaderTemplate>
                    Dropoff Address
                </HeaderTemplate>
                <ContentTemplate>
                    <uc1:uc_Address ID="uc_DropoffAddr" runat="server" />
                </ContentTemplate>
            </asp:TabPanel>
        </asp:TabContainer>
        <asp:Button ID="btnUpdateAddr" runat="server" Text="Update" />
        <asp:Button ID="btnClose" runat="server" Text="Close" CausesValidation="False" />
    </asp:Panel>
  
  
 <asp:TabContainer ID="tabGridview" runat="server">
        <asp:TabPanel ID="tabEdit" runat="server" HeaderText="Edit Reservations">
            <HeaderTemplate>
                Edit Reservations</HeaderTemplate>
            <ContentTemplate>
                <telerik:RadGrid ID="RadGrid1" runat="server" AllowSorting="True" ShowGroupPanel="True" AllowFilteringByColumn="true"
                    AutoGenerateColumns="False" AllowPaging="True" >
                    <GroupingSettings ShowUnGroupButton="True" />
                    <ClientSettings AllowDragToGroup="True" AllowColumnsReorder="True" ColumnsReorderMethod="Reorder"
                        ReorderColumnsOnClient="True">
                        <ClientEvents OnRowContextMenu="RowContextMenu"></ClientEvents>
                    </ClientSettings>
                    <MasterTableView EditMode="InPlace" DataKeyNames="Trip_ID" GroupLoadMode="Client" AllowFilteringByColumn="true">
                        <PagerStyle AlwaysVisible="true" />
                        <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>
                        <Columns>
                            <telerik:GridEditCommandColumn ButtonType="ImageButton">
                            </telerik:GridEditCommandColumn>
                            <telerik:GridButtonColumn CommandName="Select" Text="Edit Address" ButtonType="ImageButton"
                                UniqueName="column" ImageUrl="Images/Home-Edit.gif">
                            </telerik:GridButtonColumn>
                           '
                           '
                           '
  
  </Columns>
                        <EditFormSettings>
                            <EditColumn UniqueName="EditCommandColumn1">
                            </EditColumn>
                        </EditFormSettings>
                    </MasterTableView><HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Sunset"
                        EnableImageSprites="True">
                    </HeaderContextMenu>
                </telerik:RadGrid>
            </ContentTemplate>
        </asp:TabPanel>
<asp:TabPanel ID="tabView" runat="server" HeaderText="View Reservations">
            <ContentTemplate>
 <%--Another RadGrid Here--%>
  </ContentTemplate>
        </asp:TabPanel>
    </asp:TabContainer>



Iana Tsolova
Telerik team
 answered on 17 Jan 2011
1 answer
84 views
Hi

Whenever i hide a label in  the itemtemplate the vertical gridline seems missing.

<ItemTemplate>
                <asp:Label ID="Product" runat="server"                 
                  Visible='<%# IIf(DataBinder.Eval(Container.DataItem, "Product") = "DisCon", "True", "False")%>' Text='<%# Eval("Price", "S{0:C}") %>'></asp:Label>
 </ItemTemplate>

How should i solve this? thanks
Pavlina
Telerik team
 answered on 17 Jan 2011
1 answer
119 views
hi
i have template field(datetime picker) in grid
when i click button for search radgrid databind
how can i set value in serch click?
for examplae i write this code but it has error:
  (grdGoods.FindControl("pdtDate") as AspNetPersianDatePickup.PersianDatePickup).SelectedDateTime=DateTime.Now;
thanks
Princy
Top achievements
Rank 2
 answered on 17 Jan 2011
3 answers
159 views
When i use the Ajax manager my shadowbox and facybox functionality doesn't work anymore, can someone help please?
Peter
Telerik team
 answered on 17 Jan 2011
1 answer
110 views
Hi,

I was wondering if there is a way to prevent duplicate (conflict) values when insert or edit records in a grid without the usual way of query in the database for already existence. What about the ConflictDetection="CompareAllValues" property in <asp:SqlDataSource> tag?

Thanks
Maria Ilieva
Telerik team
 answered on 17 Jan 2011
5 answers
135 views
I have a tabstrip with multiple pageviews, each which contain a grid with height 100%. When the tabs are switched, I obtain the particular grid object client side and use repaint. This is necessary because otherwise the grid appears collapsed. At least, this was the case in previous versions. Perhaps this bug has been fixed. Anyhow, the issue I am having is that all my grids have frozencolumnscount="1" set, because I want the first column to be frozen. However, only the grid which is on the pageview that loads initially has this working. When I switch tabs, the other grids don't have their first column frozen. Any idea what might be going on. Is the grid repaint causing the issue?
Tsvetina
Telerik team
 answered on 17 Jan 2011
1 answer
73 views

Hello,

I realize that this issue is not new to the forum.  Unfortunately I haven't been able to find a resolution to my problem in the previous threads.
I have followed structure in my Application:

1. Web site with Usercontrol_1 (loaded in placeholder dynamically)
1.1. RadWindow_1 can be called from Usercontrol_1 und returned a value to it.
2 Usercontrol_1 contents on his part Usercontrol_2 (also loaded dynamically).
2.1. Usercontrol_2 called RadWindow_2 und received from it returned value. But this works only first time. The second time around
oWnd.BrowserWindow.refreshRadGrid_2(oArg) not worked. RadGrid_2 is placed onto Usercontrol_2.
If I try to call instead of refreshRadGrid_2 another function refreshLabel (also refresh Label, resided onto Usercontrol_1) its work perfectly any time.

Here is part of my code:
Usercontrol_1 (works fine):
#################
<telerik:radscriptblock id="RadScriptBlock1" runat="server">
<script type="text/javascript">
function ShowWndFallSuchen() {
    
var oWnd = radopen('Suche.aspx', 'RadWindow1');
}

 

 

 

function refreshLabeFallNr(arg) {
    
if (!arg) {
        alert(
"Keine args");
    }
    
var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    
if (ajaxManager != null) {
        ajaxManager.ajaxRequest(arg.RetVal);
    }
    
else {
        $create(Telerik.Web.UI.RadAjaxManager,
null, null, null, $get("<%= RadAjaxManager1.ClientID %>"));
        ajaxManager = $find(
"<%= RadAjaxManager1.ClientID %>");
        ajaxManager._uniqueID = $get(
"<%= btnSpeichern.ClientID %>").id.replace('btnSpeichern', 'RadAjaxManager1');
        ajaxManager._uniqueID = ajaxManager._uniqueID.replace(/_/g,
'$');
        
var lbl = $get("<%= lblBezugFallNr.ClientID %>");
        ajaxManager.ajaxRequest(arg.RetVal);
    }
}
</script>
</
telerik:radscriptblock>
<
telerik:radajaxmanager id="RadAjaxManager1" runat="server" onajaxrequest="RadAjaxManager1_AjaxRequest">
<ajaxsettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lblBezugFallNr" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="lblBezugFallNr">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="lblBezugFallNr" />
</UpdatedControls>
</telerik:AjaxSetting>
</ajaxsettings>
</
telerik:radajaxmanager>
#################

Seite1.aspx  (placed onto RadWindow1 and works fine)
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function returnToParent() {
    
var rtbFallNr = document.getElementById("rtbFallNr");
    
var fallNr = rtbFallNr.value;
    
var oArg = new Object();
    oArg.RetVal = fallNr;
    
var oWnd = GetRadWindow();
    oWnd.close(oArg);
    
if (fallNr.trim() != "") {
        oWnd.BrowserWindow.refreshLabeFallNr(oArg);
    }
    
else {
        alert(
"Keine Treffer");
    }
}

 

 

function GetRadWindow() {
    
var oWindow = null;
    
if (window.radWindow) oWindow = window.radWindow;
    
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    
return oWindow;
}
</script>
</
telerik:RadScriptBlock>
#################

Usercontrol_2 (That is embedded onto Usercontrol_1). Worked only first time.
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function ShowWndBeteiligter() {
    
var oWnd = radopen('../CreateEdit/Beteiligter.aspx', 'RadWindow2');
}

 

 

function refreshGrid(arg) {
    
if (!arg) {
        $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("empty");
    }
    
else {
        $find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest(arg.RetVal);
    }
}
</script>

 

</

 

telerik:RadScriptBlock>
<
telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
    
<UpdatedControls>
        
<telerik:AjaxUpdatedControl ControlID="RadGridBeteiligen" /
        
<telerik:AjaxUpdatedControl ControlID="lblTest" />
    
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</
telerik:RadAjaxManager>
#################

Seite2.aspx  (placed onto RadWindow2). Worked only first time, afterwards stops at oWnd.BrowserWindow.refreshGrid(oArg);
#################
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
<script type="text/javascript">
function returnToParent() {
    
var rtbName = document.getElementById("rtbName");
    
var name = rtbName.value;
    var oArg = new Object();
    oArg.RetVal = fallNr;
    
var oWnd = GetRadWindow();
    oWnd.close(oArg);    
    
if (fallNr.trim() != "") {
        oWnd.BrowserWindow.refreshGrid(oArg);
    }
    
else {
        alert(
"Keine Treffer");
    }
}

 

 

function GetRadWindow() {
    
var oWindow = null;
    
if (window.radWindow) oWindow = window.radWindow;    
    
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    
return oWindow;
}
</script>
</
telerik:RadScriptBlock>
#################


 

 

 

 

Georgi Tunev
Telerik team
 answered on 17 Jan 2011
1 answer
76 views
The modal pop up Telerik has works great, but the aesthetic effects are pretty limited.  It opens, it closes.  Do you have any modifications/code which would provide a smoother opening?  Something like this link below, which uses jQuery to make the pop up sort of fade in and fade out?

http://dinbror.dk/blog/bPopup/

My system uses these pop ups all over the place and any way to make them less harsh on the user and more aesthetically pleasing is much appreciated. 

Thanks,

Oliver
Shinu
Top achievements
Rank 2
 answered on 17 Jan 2011
1 answer
67 views
Hi, Does anyone have a sample of a grid that is created in code behind and maintains view state when sort or filter operations take place?

In looking at this post   http://www.telerik.com/help/aspnet/grid/grdprogrammaticcreation.html it states 'No ViewState is required for grid structure to be persisted as it is recreated on each page initialization. ' However when we create a grid that allows filtering, paging, sorting etc. in code behind and add it to a place holder and then try to sort or filter, we lose the grid. The grid is being created every time in post back (no isPostBack test takes place).

If there is a sample of how to accomplish this that would be great. Thanks.
Pavlina
Telerik team
 answered on 17 Jan 2011
5 answers
132 views
Hi Telerik!

In my app I ajaxload everything via jquery. I have my pages in usercontrols wihich I load "virtually" via RenderControl and then send back the html to the browser. This works very well for asp.net-controls but some of your controls have problems with this pattern. Some are displayed incorrectly or not at all and scripts doesn´t seem to work.

I´m  guessing this has to do with "smart" loading of css and javascript. The web resource should just load scripts and css for the controls loaded server side right?

My question is: How can I load the scripts/css I want? Is there any documentation about the different scripts/css inside the assembly? is there something else that I´m missing?

In my source there´s also some javascript injected like: "Sys.Application.add_init(function() { $create....
What is this for? Kind regards
Veli
Telerik team
 answered on 17 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?