Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
101 views
Hi,

I have a requirement. There are two zones. On button click from client side, can I transfer the complete dock set to another zone?

Thanks,
Joseph.
Princy
Top achievements
Rank 2
 answered on 21 May 2013
2 answers
138 views
I would like to do a manual edit of a listview.

I am looking at the Hashtable values and I do not see my checkbox key/value pairs.

I have a checkbox field in the EditITemTemplate called getsMail. I am just displaying the values in a literal for now. textboxes and comboboxes show fine. But I need the checkbox values.

protected void RadListView1_ItemUpdating(object sender, RadListViewCommandEventArgs e)
    {
        RadListViewEditableItem editedItem = (RadListViewEditableItem)e.ListViewItem;
        Hashtable newValues = new Hashtable();
        editedItem.ExtractValues(newValues);
 
        StringBuilder sb = new StringBuilder();
        foreach (DictionaryEntry entry in newValues)
        {
            sb.Append("key: " +entry.Key + " Val: " + entry.Value);
        }
 
        Literal1.Text = sb.ToString();       
    }
 
thanks, Marty
moegal
Top achievements
Rank 1
 answered on 21 May 2013
3 answers
89 views
Hi,

I have a problem with RadGrid. I have two pages and on each of them is placed RadGrid, they are both set exactly the same in markup, but one of them counts sum in footer row just for the current page and the other one counts it for all pages.

How do I make the RadGrid counts sum in footer row for all pages all the time?

Thanks,

Patrik
Shinu
Top achievements
Rank 2
 answered on 21 May 2013
6 answers
185 views
Hi,

I think you should add an example of your Minimize Zone feature to your online examples. This is a very cool feature, so why not show it off?

Cheers,
Brad
Marin Bratanov
Telerik team
 answered on 21 May 2013
1 answer
221 views
Hi

We have a RadWindow with few controls in it.  On a ButtonClientClick event we want to (in Javascript) open a child window that is
1) a radWindow
2) is non-modal to allow focus on parent window whild child window is visible and is on top
3) allow the child window to be dragged outside the parent window.

I can only achieve either 1) and 2) OR  3) but not all.
====================================================================================================

w = window.showModelessDialog(

 

url, "NewWindow", "status:true; dialogWidth: 380px; dialogHeight: 200px;", '');
-- gives me a non-modal window but cannot be dragged outside the parent window.

 

====================================================================================================

====================================================================================================

w = GetRadWindow().BrowserWindow.radopen(url, "NewWindow");
-- creates a non-RadWindow which is modal but can be dragged outside the parent.

How do I create a child window that has all 3 properties?

Thanks
Raka

 

====================================================================================================


Marin Bratanov
Telerik team
 answered on 21 May 2013
1 answer
98 views
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .rgHoveredRow
        {
            background-color: #7EB6FF !important;
            background-image: none !important;
            color: White;
        }
    </style>
    <telerik:RadCodeBlock ID="radCode1" runat="server">
    <script type="text/javascript">
        function RowDblClick(sender, eventArgs) {
            sender.get_masterTableView().editItem(eventArgs.get_itemIndexHierarchical());
        }

        function RowClick(sender, eventArgs) {
            if (editedRow && hasChanges) {
                hasChanges = false;
                if (confirm("Update changes?")) {

                    $find("<%= RadGrid1.ClientID %>").get_masterTableView().updateItem(editedRow);
                }
            }
        }


         

        function TrackChanges(e) {
            hasChanges = true;
        }
        </script>
        </telerik:RadCodeBlock>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource" >
            <MasterTableView DataKeyNames="idGcTable" AutoGenerateColumns="false" EditMode="InPlace">
                <ColumnGroups>
                    <telerik:GridColumnGroup HeaderText="c3" Name="c3" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>
                    <telerik:GridColumnGroup HeaderText="c4" Name="c4" HeaderStyle-HorizontalAlign="Center">
                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                    </telerik:GridColumnGroup>
                </ColumnGroups>
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"
                    Created="True">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="c1" HeaderText="c1">
                        <ItemTemplate>
                            <%#Eval("c1")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc1" runat="server"   Text='<%#Eval("c1")%>'></telerik:RadTextBox>
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c2" HeaderText="c2">
                        <ItemTemplate>
                            <%#Eval("c2")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                           <telerik:RadTextBox ID="editc2" runat="server"   Text='<%#Eval("c2" )%>'></telerik:RadTextBox>
                            
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c31" HeaderText="c31" ColumnGroupName="c3">
                        <ItemTemplate>
                            <%#Eval("c31")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc31" runat="server"   Text=' <%#Eval(" c31") %>'></telerik:RadTextBox>
                           
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c32" HeaderText="c32" ColumnGroupName="c3">
                        <ItemTemplate>
                            <%#Eval("c32")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc32" runat="server"   Text=' <%#Eval("c32")%>'></telerik:RadTextBox>
                           
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c41" HeaderText="c41" ColumnGroupName="c4">
                        <ItemTemplate>
                            <%#Eval("c41")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc41" runat="server"   Text='<%#Eval("c41")%>'></telerik:RadTextBox>
                            
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c42" HeaderText="c42" ColumnGroupName="c4">
                        <ItemTemplate>
                            <%#Eval("c42")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc42" runat="server"   Text=' <%#Eval("c42 ")%>'></telerik:RadTextBox>
                           
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn UniqueName="c5" HeaderText="c5">
                        <ItemTemplate>
                            <%#Eval("c5")%>
                        </ItemTemplate>
                        <EditItemTemplate>
                        <telerik:RadTextBox ID="editc5" runat="server"   Text='<%#Eval("c5")%>'></telerik:RadTextBox>
                            
                        </EditItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column" ButtonType="LinkButton" UpdateText="Your Update columnb" CancelText="Cancel" >
                    </EditColumn>
                </EditFormSettings>
                <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true" >
            <ClientEvents OnRowDblClick="RowDblClick" OnRowClick="RowClick"  />
            </ClientSettings>
            <PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>

In the above code when user user double click on Row ...I  am display data In Edit mode.but no update or cancel button are there in my grid .

1.when user change the data  of row and  user  went out of the row ,I want to display the Rad alert based on yes ,I want to update the changes ... and also  click on some other row based on previous changes  ....he is not in same row i am to display the rad alert ,asking for the updation.

this is my requirement any one please help me.

Kostadin
Telerik team
 answered on 21 May 2013
1 answer
50 views
I have a strange bug where if i click to open the window, it opens the modal and the parent window gets resized according to the width and height i had entered in the radwindowmanager controls.

If i remove these sizes then i don't get this bug. No problem in chrome etc just IE.

I am using the Twitter Bootstrap framework and it would seem the popup is triggering the responsive CSS which should only kick in on certain screen sizes.

If i remove this CSS then i don't have this bug but really i need this to be in place.  Has anyone ever encountered this before?

S
Marin Bratanov
Telerik team
 answered on 21 May 2013
1 answer
85 views
I am having issues with IE 10 and the RadMenu as menu items are not showing when you hover over them - well, they are but they seem to be hiding somewhere (you can see them slide out almost!). in IE9 and earlier including compat mode works just fine but not in IE10 or even IE10 compat mode.

any ideas how I can fix this? This is my code:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<div style="float: right;margin-left:89%; margin-top: 22px; position: absolute; z-index: 10001; color:White; font-family: Segoe UI, Arial, Sans-Serif; font-size:12px;font-weight:bold">

<asp:Literal runat="server" ID="litUserLoggedInDetails" />

</div><br />

<telerik:RadMenu runat="server" ID="RadMenuItems" Height="40px" Width="100%" ForeColor="White">

<DefaultGroupSettings OffsetY="-1" />

</telerik:RadMenu>




I am populating items from codebehind:

foreach (var parent in menuItemsResponse.Menus)
                    {
                        RadMenuItem parentMenuItem = new RadMenuItem(parent.MenuName, parent.PageURL);

                        this.RadMenuItems.Items.Add(parentMenuItem);
                    }

Boyan Dimitrov
Telerik team
 answered on 21 May 2013
4 answers
398 views
Hello,

I've looked throughout this forum, but I was not able to find the answer to my problem.

I am tasked to open the EditMode of a RadGrid in the codebehind for a webform to add a new item and this is what I use:

RadGrid1.MasterTableView.InsertItem();

The "EditMode" of the RadGrid is set to "PopUp", and the code above works just fine.  It opens the popup form if I were to put the code above in the click event of a button or Page_Load, for example.

My problem is that I have to send a value to an ASP text box in a databound template column within this popup "Edit" form from another page, but I'm unable to gain access to the template Item's text box on the popup edit form.

So, basically the steps would be like so:
1- the user clicks a link on a separate page, and either through session or querytring a value is sent to the page that contanins my RadGrid1.
2- the page containing the RadGrid1 opens, and the popup edit form is already open with the text of the querystring or session variable visible within the "AnnouncementsTextBox" textbox.

How do I go about populating the text box in the popup edit form?

Any help would be very much appreciated.

Here's the code for the template column:
<Columns>
     <telerik:GridTemplateColumn DataField="Announcements" UniqueName="AnnouncementsText">
          <EditItemTemplate>
              <asp:TextBox ID="AnnouncementsTextBox" runat="server" Text='<%# Bind("Announcements") %'></asp:TextBox>
          </EditItemTemplate>
          <ItemTemplate>
              <asp:Label ID="AnnouncementsLabel" runat="server" Text='<%# Eval("Announcements") %'></asp:Label>
          </ItemTemplate>
      </teleric:GridTemplateColumn>
</Columns>


Here's the code I've tried to use to set the value in the textbox:
foreach (GridDataItem item in RadGrid.Items)
{
   TextBox tb = (TextBox)item.FindControl("AnnouncementTextBox");
   tb.Text = "This is where the QueryString text would go.";
}
Princy
Top achievements
Rank 2
 answered on 21 May 2013
1 answer
79 views
Hi,
I am using rad scheduler to show the appointment and using web service for communication to the database.
I am using drop down in resource to show some data now what i want that when my first drop down will select my second drop down will populate data according to that.


thanks
Niharika
Plamen
Telerik team
 answered on 21 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?