Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
210 views
The following code will show the Insert for when my page loads...
if (!Page.IsPostBack)
{
     Grid.MasterTableView.IsItemInserted = true;
     Grid.Rebind();
}
But it does not fire the InitInsert command, which I use to initialize my insert form,with default valus and the like.  How can I get the form to display and fire the InitInsert Command, or is there a better way I should be tackling this issue.

Thanks,
Joe
Joseph Roberts
Top achievements
Rank 1
 answered on 05 Aug 2010
3 answers
171 views
I'm using a web service as the datasource to load appointments into RadScheduler.  Does the ajax LoadingPanel work with a web service?  I can't seem to get it to display when navigating appointment in the RadScheduler.
Veronica
Telerik team
 answered on 05 Aug 2010
9 answers
225 views
Hi,

I am showing a photo gallery and allow users to move the photos and drop at the category repeater.
I have seen the demo in the website.

http://demos.telerik.com/aspnet-ajax/listview/examples/itemdragdrop/defaultcs.aspx

can anyone explain to me about the code ? I am doing something like the demo but i am not dropping song to genre

but i am dropping image to different category.

Can anyone guide to do that ?

Kind Regard,
kea
eran
Top achievements
Rank 1
 answered on 05 Aug 2010
6 answers
186 views
Please help...losing my mind trying to get this to work.

Simple scenario...

Radcombo on rcb.aspx page with a button that opens rad window (works)
radwindow has a form to enter new value to db (works)...upon closing the windows the radcombo should refresh, it's not even though record is successgully added to db.  I have looked through various examples and it should work but it's not

 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="SqlDataSource1" />
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadComboBox1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

<telerik:RadComboBox ID="RadComboBox1" runat="server" EnableViewState="false" AutoPostBack="true"
        DataSourceID="SqlDataSource1" DataTextField="CompanyName" DataValueField="CompanyID">
    </telerik:RadComboBox>
    <asp:Button ID="Button1" runat="server" Text="Button" CausesValidation="False" />
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"
                Left="" NavigateUrl="clientwindow.aspx" OpenerElementID="Button1" Style="display: none;"
                Top="" OnClientClose="ClientClose">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <telerik:RadCodeBlock runat="server">

        <script type="text/javascript">
            function openWindow() {
                var oWnd = radopen("ClientWindow.aspx", "RadWindow1");
                oWnd.setSize(495, 340);
                var combo = $find("<%=RadComboBox1.ClientID %>");
                //combo.setvalue("");
            }

            //        function selectedIndexChanging(sender, args) {
            //            if (args.get_item().get_value() == "-1")
            //                args.set_cancel(true);
            //        }

            function ClientClose(arguments) {
                var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
                ajaxManager.ajaxRequestWithTarget('<%= RadAjaxManager1.UniqueID %>', '');
            }
        </script>

    </telerik:RadCodeBlock>

vb code:
the codes executes but it seems the radcombo is not ajaxified
Protected Sub RadAjaxManager1_AjaxRequest(ByVal sender As Object, ByVal e As Telerik.Web.UI.AjaxRequestEventArgs)
        'Bind the RadComboBod


        RadComboBox1.DataSource = Nothing
        RadComboBox1.DataBind()
        SqlDataSource1.DataBind()
        RadComboBox1.DataSourceID = "SqlDataSource1"

        RadComboBox1.DataBind()
        ' RadComboBox1.

    End Sub

jolynice
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
101 views
Hi,

I could implement data validation for a texbox using spring.net. But I could not implement data validation in RadGrid using Spring.NET.
Can you give me one example on how to implement data validation in RadGrid using Spring.NET.

I have a column in the rad grid which is editable and the condition is user should enter only integers.
Iam using DTO as a datasource for the grid. Each DTO has 5 columns.

RadGrid.Datasource = DTOList;    // C# code

Your help is very much appreciated. Thank you.
Veli
Telerik team
 answered on 05 Aug 2010
5 answers
259 views
Hi, 
    i have a radcombobox for autocomplete.

 

    I use web service for populate combobox.
    I want to send variables to web service from any other item's value on form (textbox,dropdown etc.)
    Ajaxautocomplete extender, there is UseContextKey feature.

    For radcombobox is there any feature?

    Regards.

 

Simon
Telerik team
 answered on 05 Aug 2010
1 answer
123 views
Hi All,

Is it possible to show to data from two datasources inside NestedViewTemplate of radgrid.

I need to show some data from one webservice and some from another webservice.

Example:  Name   Company (webservice 1)
                 arun      XYZ        (webservice 1)

                 Status            DOB            (webservice 2)
                 Unmarried        10/7/80      (webservice 2)




      
Veli
Telerik team
 answered on 05 Aug 2010
2 answers
102 views
I have 4 columns in my radgrid and in one of the column there are some negative values as well as positive, will it be possible to put all the negative values in brackets.
Example:

 Product Name

Product ID

Values

A

1

$ -12.00 

B

2

$11

C

3

$ - 13

D

4

$ 14

E

5

$ - 16

F

6

$ - 17

 

 

 


so i want all the negative values of coulmn "values" into brackets and without $ sign.
Expected result

 Product Name

Product ID

Values

A

1

$(12.00 )

B

2

$11

C

3

$(13)

D

4

$ 14

E

5

$(16)

F

6

$(17)

 

 

 


Please help.

Thanks
Ruchin
Top achievements
Rank 1
 answered on 05 Aug 2010
1 answer
118 views
I have a listview with another 3rd party control inside of the edititem Template. This control reacts to ajax request and if certain requirements are not met with it then it in effect takes over the edit form and will not allow the page to exit edit mode. How do I cancel edit item in listview through javascript?
Tsvetoslav
Telerik team
 answered on 05 Aug 2010
2 answers
149 views
I want to close window.When I click a button.
But javascript code gives an error window value null.oWindow value always null.This code runs on usercontrol
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
        <script type="text/javascript">
        function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                alert(oWindow);
                oWindow.close();
            }
  
   
        </script>
    </telerik:RadScriptBlock>
<telerik:RadWindow ID="mdlPopup"  runat="server" Title="Bilgi Ekranı" Skin="Windows7"
    Width="440px" Height="150px" Modal="true" Top="50%" Left="50%" Behaviors="Close,Move"
    EnableShadow="false" VisibleStatusbar="False" >
    <ContentTemplate>
        <div style="padding: 10px">
            <table cellpadding="3" style="width: 100%">
                <tr>
                    <td valign="middle" style=" padding-left:20px">
                        <asp:Image ID="imgWarning" runat="server" ImageAlign="AbsMiddle" />
                    </td>
                    <td style=" height:60px">
                        <asp:Label ID="lblMessage" Font-Bold="false" runat="server" ForeColor="#1E395B"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <input id="Button1" type="button" onclick="javascript:GetRadWindow();" value="button" />
                         
                    </td>
                </tr>
            </table>
        </div>
    </ContentTemplate>
</telerik:RadWindow>
Hakan
Top achievements
Rank 1
 answered on 05 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?