Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
144 views

Hello Telerik-Team,

i have a RadLightBox with a ItemTemplate and a RadGrid with an asp:LinkButton, where i open the lightbox.

Open the Lightbox is without any problems. I can change ​the Textbox Value in the RadLightBox Itemtemplate in PreRender. 

But the problem is, in the first call is the Textbox in RadLightbox always empty. The calls after are working without any problems. 

Any Ideas?

Thanks,

Nick

    function ShowBox(recordId) {
        $get('<%= HiddenField1.ClientID %>').value = recordId;
        var lightBox1 = $find('<%= RadLightBox1.ClientID %>');
        lightBox1.show();
}

 

<telerik:GridTemplateColumn HeaderText="<%$ Resources:Details %>" UniqueName="Details">
        <ItemTemplate>
                <asp:LinkButton ID="lnkEdit" runat="server" Text="<%$ Resources:Details %>" ></asp:LinkButton>
           </ItemTemplate>
</telerik:GridTemplateColumn>

 

<telerik:RadLightBox ID="RadLightBox1" runat="server" Width="1000px" Height="720px"
    Modal="true" ZIndex="100000">
    <ClientSettings>
        <AnimationSettings HideAnimation="Resize" NextAnimation="Fade"
            PrevAnimation="Fade" ShowAnimation="Resize" />
    </ClientSettings>
    <Items>
        <telerik:RadLightBoxItem>
            <ItemTemplate>
                <telerik:RadTextBox runat="server" ID="LightBoxNotice" Label="Notlar: "
                    text="" Width="800px" Height="300px" EnableViewState="false"
                    OnInit="LightBoxNotice_Init"
                    OnPreRender="LightBoxNotice_PreRender" TextMode="MultiLine"></telerik:RadTextBox>
            </ItemTemplate>
        </telerik:RadLightBoxItem>
    </Items>
</telerik:RadLightBox>

Kostadin
Telerik team
 answered on 18 Nov 2015
2 answers
128 views

Hello,

 

I have GridColumnGroup and need on mouseover in label(1,2,3) of Item of GridColumnGroup, show Tooltip with one description,

how i do this???

 

<telerik:RadGrid ID="gridTab4_2015" runat="server" AutoGenerateColumns="False" EnableTheming="False" AllowSorting="true" OnItemDataBound="gridTab4_2015_ItemDataBound" Skin="Silk" DataSourceID="odsTab4" ShowFooter="True">
                                    <MasterTableView DataSourceID="odsTab4">
                                        <ColumnGroups>
                                            <telerik:GridColumnGroup Name="CorpoDocente" HeaderText="Corpo Docente" HeaderStyle-HorizontalAlign="Center" >
                                                <HeaderStyle HorizontalAlign="Center" />
                                            </telerik:GridColumnGroup>
                                        </ColumnGroups>
                                        <Columns>
                                            <telerik:GridBoundColumn HeaderText="Pos." DataField="nu_posicao">
                                                <ColumnValidationSettings>
                                                    <ModelErrorMessage Text="" />
                                                </ColumnValidationSettings>
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="1" DataField="nu_media_ponderada_Q1" HeaderStyle-HorizontalAlign="Center" ColumnGroupName="CorpoDocente">
                                                <ColumnValidationSettings>
                                                    <ModelErrorMessage Text="" />
                                                </ColumnValidationSettings>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="2" DataField="nu_media_ponderada_Q2" HeaderStyle-HorizontalAlign="Center" ColumnGroupName="CorpoDocente">
                                                <ColumnValidationSettings>
                                                    <ModelErrorMessage Text="" />
                                                </ColumnValidationSettings>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="3" DataField="nu_media_ponderada_Q3" HeaderStyle-HorizontalAlign="Center" ColumnGroupName="CorpoDocente">
                                                <ColumnValidationSettings>
                                                    <ModelErrorMessage Text="" />
                                                </ColumnValidationSettings>
                                                <HeaderStyle HorizontalAlign="Center" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </telerik:GridBoundColumn>
                                           
                                        </Columns>
                                    </MasterTableView>
                                </telerik:RadGrid>​

Eyup
Telerik team
 answered on 18 Nov 2015
1 answer
129 views

Hi

 

  I have a RadGrid in batch edit mode. I have a button for clearing (not deleting) the row.

When the button is pressed I clear the row in the DataTable and rebind. However I want

to mark some changed flag in the grid so the BatchEditCommand event is fired on save.

Howw do I do this?

 

Thanks Gary

Viktor Tachev
Telerik team
 answered on 18 Nov 2015
4 answers
445 views

Hello

 I want to keep the rad window in the center of the screen even when the user scrolls the page. Problem is that on a page with scroll when the user scrolls the page the window is not moving with the scroll.

Here is my code

script type="text/javascript">
        function mb_wysiwyg_ReloadParent_OpenRadWindow(url, reloadPageOnClose, width, height) {
            var wysiwyg_oWnd = GetRadWindowManager().open(url, null); // open window with the reuired parameters.
 
            var wysiwyg_WindowWidth = width;
            var wysiwyg_WindowHeight = height;
 
            if (window.screen.availHeight < 920)
                wysiwyg_WindowHeight = window.screen.availHeight - 200;
 
            wysiwyg_oWnd.setSize(wysiwyg_WindowWidth, wysiwyg_WindowHeight);
 
            wysiwyg_oWnd.set_modal(true); // open window in center of screen.
            wysiwyg_oWnd.center();
            //wysiwyg_oWnd.maximize()
 
 
            // add the close event on window close.
            if (reloadPageOnClose) {
                wysiwyg_oWnd.add_close(mb_wysiwyg_RefreshPageOnWindowClose);
            }
 
            return false;
        }
    </script>
 
 <telerik:RadScriptManager ID="mgr" runat="server"></telerik:RadScriptManager>
 
<telerik:RadWindowManager ID="WinManager" runat="server"></telerik:RadWindowManager>
 
  <asp:button ID="Open" runat="server" Text="Open" OnClientClick="mb_wysiwyg_ReloadParent_OpenRadWindow('http://www.google.com',false,500,500); return false;" />
 

 

 

 

 

Roger Hynne
Top achievements
Rank 1
 answered on 18 Nov 2015
1 answer
118 views

I have Web API REST service running, which I can call  (http://localhost/api/Ordes) and it returns JSON formatted list of orders. When this service and WebForm.asxp file are in the same project and I configure client data control (just like I saw it in the samples), i.e. /api/Orders then the grid populates with data. But when I move this service to a different project (which is our production scenario) and then I have to configure it using actual URL (http://localhost/api/Ordes) then the grid does not populate with data. Why?

Both services are identical copies except that one sits in the same project as WebForm.aspx (/api/Orders) and the other one has to be accessed via URL. In both cases services are hit (checked in the debugger) properly but only former populates the data in the grid, other does not.

Assuming that I get this to work (with your help) then, user clicks on a row in the grid then how do I call /api/Order/1 to delete it? I know how to extract the ID from the row (excellent examples here) but how to I call it with the "1" parameter to actually delete it?

I can't attach sample project. I can upload it to a share if you have one available.

 

Konstantin Dikov
Telerik team
 answered on 18 Nov 2015
5 answers
451 views
Hi,
I want to use radeditor like textarea.How can i remove all the toolbars in design mode?Can you help me please?
Thanks,
Vessy
Telerik team
 answered on 18 Nov 2015
3 answers
290 views

Greetings,

 

I have a radwizard with the default cancel button shown.  The issue that I am seeing is when someone hits the cancel button, it is firing the validation for this wizard step.  Is there any way I can set the CausesValidation = false on the cancel button?  Thanks for any help.

Ivan Danchev
Telerik team
 answered on 18 Nov 2015
6 answers
432 views
Hi,

I am using the radtagcloud control, but when I click an item, I want to invoke Javascript (The following):

    function openWin(Url) {
        var oWnd = radopen(Url, "RadWindow4");

        oWnd.moveTo(50, 200);
    }

I currently invoke this code to open radwindows with content, on my site. This is from an ASP.NET button, though (OnClientClick). I need to do the same, via the tagcloud control.

Any ideas how much appreciated!

Thanks
Jack
Top achievements
Rank 2
 answered on 18 Nov 2015
1 answer
94 views

Hi,

I would like to show the Reminders of a RadScheduler but without having a scheduler on the page. So users can have their reminders without being always on the scheduler page.

Do you know if there is a better way than having a hidden scheduler in the page ?

 

Thanks

Nencho
Telerik team
 answered on 18 Nov 2015
1 answer
143 views
Please advise whether it is possible to get a DataKeyName value for the current DataForm page client side?
Eyup
Telerik team
 answered on 18 Nov 2015
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?