Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
443 views

With the previous RadEditor we could use an .aspx for a modal dialog from the toolbar.  Now it seems it has to be .ascx user control, meaning all the dialogs we wrote as web pages before will not work now.   Is this the case?  The new radwindow still seems to use aspx’s for dialogs, so I’m curious why the ascx change for the RadEditor.  I hope we can still use aspx's for dialogs, as converting them all to ascx's will be far from trivial for us.

Rumen
Telerik team
 answered on 04 Jun 2012
1 answer
98 views
Hi,

I have a rad tab strip on my page.
I want to have a space between the tabs, so I used this line of code as posted in your forum, and it worked:

div.RadTabStripTop_Vista .rtsLI

{

margin-right: 10px;

 

}

The problem is that with this space, I get my tabs in 2 lines instead of 1.
I tried to set a fixed width to each tab, but it is still changed with an inline style.
foreach (RadTab tab in rts)
{
    tab.width = Unit.Pixel(115);
}
in CSS i get: style= "175px;"

I changed the rad tab strip width too.
<

telerik:RadTabStrip ID="rts" runat="server" Skin="Vista" MultiPageID="RadMultiPage1" OnClientTabSelected="onTabSelected"

SelectedIndex="0" Align="Justify" Width="700px">



It seems like the tabs are fiting their size or something.

How can I solve this?
Thanks!


Kate
Telerik team
 answered on 04 Jun 2012
0 answers
140 views
HI,
I am using 2 radlistboxes for item transfer,in page load I'm binding items in source listbox from data base dynamically using linq query.
Please find its screen shot in attachment file.
But i want to display items like tree view mode.if parent item extend(click on "+" button) then should be view its child items and collapse(if click on "-" button).
Please help.

Thanks & Regards,
Santhosh Naik
Santhosh
Top achievements
Rank 1
 asked on 04 Jun 2012
3 answers
81 views
Hi,

I have read other places in the forum that you guys have gotten a lot of request for a download control. Similar to the Upload but for downloading large files.

At the time of that Forum post 2006 you hadn't talk about it or set a date yet. Do you know if you guys are still planning to do this control? and if so possible time-frame as many of us seem to be anxious for it.

Keep up the great work on the controls :)
Genady Sergeev
Telerik team
 answered on 04 Jun 2012
0 answers
162 views

My client is using RadCalendar.Net2 and it’s other family. I suppose Telerik has stopped supporting this version .We are facing following problem:

 

1 . If you type Jun-06-2012 or 06/06/2012 or 06-06-2012 in date control ,gets converted into July. It happens only end of the month.

 
According to the following Forum this seem to be a known bug in control.


 
What we can do in this scenario? Do we need to upgrade to new version or any small fix (workaround ) can fix this issue?

 

Any kind of help will be appreciated

Paritosh Singh
Top achievements
Rank 1
 asked on 04 Jun 2012
1 answer
216 views
i tried to set radlistbox hight 100% instead of fixed hight doesn't work. How to set radlistbox hight 100%?
Genady Sergeev
Telerik team
 answered on 04 Jun 2012
3 answers
52 views
Hi all,

I have a radGrid, and I want that when I click a line, it sends me to an other page (a different page for each line of the grid).
But I don't find an event for "row click"

Thanks
Caro
Top achievements
Rank 1
 answered on 04 Jun 2012
1 answer
203 views
I am trying to use the ASP.Net AJAX grid control with AJAX and web services only. I have run into a few problems with the inplace editing. Specifically, if I use the GridEditCommandColumn, clicking the edit button deletes the grid for some reason. If I add in a typical DataSourceID="SqlDataSource1" to the grid and master table, these buttons work as expected, but I don't want to depend on the SQlDataSource control, I would prefer to use AJAX and a web service. The other problem I had was trying to find the value of the edited inplace control after clicking the update button. I was only able to find the original value. I have attached code snippets below:

     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <div>
    <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None" Width="740"
            AllowFilteringByColumn="True" AllowPaging="True" AllowSorting="True"
            ShowStatusBar="True"
            Skin="Windows7" EnableEmbeddedSkins="false" AutoGenerateColumns="false"  >
        <ClientSettings>
            <Selecting CellSelectionMode="None" AllowRowSelect="True"></Selecting>
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            <Resizing AllowColumnResize="True" AllowRowResize="false" ResizeGridOnColumnResize="false"
                ClipCellContentOnResize="true" EnableRealTimeResize="false" AllowResizeToFit="true" />
            <ClientEvents OnRowSelected="rowSelected" OnCommand="RaiseCommand" />
        </ClientSettings>

    <MasterTableView AutoGenerateColumns="False" DataKeyNames="ICID" EditMode="InPlace" Width="530" FilterItemStyle-HorizontalAlign="Center" >
        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

        <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </RowIndicatorColumn>

        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>

        <Columns>
            <telerik:GridEditCommandColumn
                    ButtonType="ImageButton"
                    UniqueName="EditCommandColumn"
                    EditImageUrl="Skins/Windows7/Grid/Edit.gif"
                    CancelImageUrl="Skins/Windows7/Grid/Cancel.gif"
                    UpdateImageUrl="Skins/Windows7/Grid/Update.gif" >
                <ItemStyle CssClass="Button.Windows7" HorizontalAlign="Center" />
                <HeaderStyle Width="60" />
            </telerik:GridEditCommandColumn>
            <telerik:GridButtonColumn ConfirmText="Delete this product?" ConfirmDialogType="RadWindow"
                ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                UniqueName="DeleteColumn" ImageUrl="Skins/Windows7/Grid/Delete.gif">
                <HeaderStyle Width="40" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridButtonColumn>

            <telerik:GridBoundColumn DataField="ICID" DataType="System.Int32"
                FilterControlAltText="Filter ICID column" HeaderText="ICID" ReadOnly="True"
                SortExpression="ICID" UniqueName="ICID">
                <HeaderStyle Width="120" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Class"
                FilterControlAltText="Filter Class column" HeaderText="Class"
                SortExpression="Class" UniqueName="Class">
                <HeaderStyle Width="140" HorizontalAlign="Center"  />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="Config"
                FilterControlAltText="Filter Config column" HeaderText="Config"
                SortExpression="Config" UniqueName="Config">
                <HeaderStyle Width="140" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridCheckBoxColumn
                DataField="Active" DataType="System.Boolean"
                FilterControlAltText="Filter Active column" HeaderText="Active"
                UniqueName="Active" >
                <HeaderStyle Width="60" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridCheckBoxColumn>
            <telerik:GridBoundColumn DataField="TEC"
                FilterControlAltText="Filter TEC column" HeaderText="TEC" SortExpression="TEC"
                UniqueName="TEC" >
                <HeaderStyle Width="200" HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
           </Columns>

        <EditFormSettings>
        <EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
        </EditFormSettings>

    </MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>
    </telerik:RadGrid>

The Javascript:

      function UpdateGrid()
        {
            var data = 1;
            PageMethods.GetData(data, callUpdateGrid, callError);
        }

        function callUpdateGrid(result)
        {
            if (null == result)
            {
                alert('No Data');
                return;
            }

            var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
            tableView.set_dataSource(result);
            tableView.dataBind();
        }

        function RaiseCommand(sender, eventArgs)
        {
// *******************************'
// How do I get the new value from the edit control here?
// The value variable always returns the previous value.
// *******************************'

            //retrieve the current commandName and commandArgument
            var cmd = eventArgs.get_commandName();
            var arg = eventArgs.get_commandArgument();
            var result = String.format("CommandName: {0}, CommandArgument: {1}", cmd, arg);
            var value = '';
            if ('Page' != cmd)
            {
                var grid = $find("<%= RadGrid1.ClientID %>");
                var mastertable = grid.get_masterTableView();
                ICID = getDataItemKeyValue(grid, mastertable.get_dataItems()[arg]);
                var row = mastertable.get_dataItems()[arg];
                value = mastertable.getCellByColumnUniqueName(row, "TEC").innerHTML;
            }
            alert(result + ', ' + ICID + ', ' + value);
          
        }

The codebehind:

       [WebMethod]
        public static IList<Model> GetData(int arg)
        {
            IList<Model> ilm = new List<Model>();

            ilm.Add( new Model() { Active = "true", Class = "ABC", Config = "A1", ICID = 1, TEC = "TEC1" });
            ilm.Add(new Model() { Active = "", Class = "DEF", Config = "A2", ICID = 2, TEC = "TEC2" });
            ilm.Add(new Model() { Active = "true", Class = "GHI", Config = "A3", ICID = 3, TEC = "TEC3" });

            return ilm;
        }

Can you tell me how to get inplace editing to work with the code above, and how to get the new values from the edited controls?

Thanks.

Radoslav
Telerik team
 answered on 04 Jun 2012
3 answers
89 views
I have an aspx page that contains an asp:panel that has been ajaxified.  This is working successfully for partial page refreshing within this panel.

There is one scenario that is not working.  In the scenario, I dynamically create a user control inside the ajaxified panel, and inside that user control is a RadXmlHttpPanel. 

I get the following javascript error when the page loads in the browser after the postback:
'EditModeStylectl00_cphLeft_ReportPage1_Filter1_63_selVen...' is undefined.

Within the Visual Studio debugger, I see the error is breaking inside this javascript function:

function

Sys$_Application$add_init(handler)

I think maybe what is happening is that part of what is needed to make the RadXmlHttpPanel work correctly is coming within the response AFTER the end tag for the ajaxified panel.  So after the postback, my browser is ignoring some of the javascript needed to properly wire up or initialize the RadXmlHttpPanel.

Is there a way to dynamically load a RadXmlHttpPanel inside an ajaxified panel without getting this error?

Thank you in advance for any help you can provide,
Mike


Maria Ilieva
Telerik team
 answered on 04 Jun 2012
1 answer
149 views
Hi,
i want to open the new pop up on clicking of contextmenu of radtreeviewnode.
thanks,
Mohinder Goswami.
Princy
Top achievements
Rank 2
 answered on 04 Jun 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?