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

I am using a GridClientSelectColumn and have a paging on my grid. I need following things on my grid.

1) Multiple selection client-side
2) If i do select all from the header checkbox on page1, it should also select the rows at all other pages.
3) Deselect should deselect only the single row, not all.
4) If i select a single row on page1, and move on to any other page and now when i come back to page1 the row should persist its state.

I would appreciate any help on this.

Thanks,
Sunil Nahar.
Yavor
Telerik team
 answered on 14 Sep 2009
1 answer
208 views
hi,

i am a newbie to telerik and ajax, i am trying to show a popup image on move hover for an grid item.
i have found a similar article which says i an use that a itemtemplate and show a popup.

 <telerik:GridTemplateColumn UniqueName="TemplateCol" HeaderText="TemplateCol"> 
                            <ItemTemplate> 
                                <asp:Label id="lblName" runat="server" Text='<%#Eval("ProductName") %>' ></asp:Label> 
 
                               
                                <asp:Panel ID="popupMenu" runat="server" style="display:none" BackColor="skyblue" > 
                                    <asp:Button  ID="btnCopy" runat="server"></asp:Button> 
                                   
                                </asp:Panel> 
                                 <cc1:HoverMenuExtender ID="HoverMenuExtender1" TargetControlID="lblName" runat="server" 
                                    PopupControlID="popupMenu" PopupPosition="right" PopDelay="50"> 
                                </cc1:HoverMenuExtender> 
                                
                            </ItemTemplate> 
                        </telerik:GridTemplateColumn> 


the problem i am facing here is to include the assembly with the tag name "cc1" which has the "HoverMenuExtender" method, i think this is from the ajax control library.

also let me know if it is possible to catch the click event of the button "btnCopy" on the server side ( and)  is still need to be able to tell on which cell the click event was raised.
i am stuck with this problem for more than 2 days, so, please help me out.

thank you.


 
Princy
Top achievements
Rank 2
 answered on 14 Sep 2009
0 answers
97 views
I'm trying to implement a tabstrip with multipage. My page views are dynamically loaded user controls.

This is basically how the flow works.
 
I have a RADgrid (named RadGrid1) that contains a number of columns. When you click on a row in the grid, a tab is created that represents the data of that gridrow. To accompish this I use "RadGrid1_ItemCommand" and check for the "RowClick" command. I then get the name of the column I need and use that to name the tab. Here's the C# code to add the new tab and its coressponding page view.

private

 

void AddTab(string tabName)

 

{

 

    RadTab tab = new RadTab();

 

    tab.Text = tabName;

    RadTabStrip.SelectedIndex = selectedTabIndex;

    RadTabStrip.Tabs.Add(tab);

 


    RadPageView
pageView = new RadPageView();

 

    pageView.ID = tabName;

    RadMultiPage.SelectedIndex = selectedTabIndex;

    RadMultiPage.PageViews.Add(pageView);

}


protected

 

void RadMultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e)

 

{

 

    string userControlName = "UserControls/VMDetails.ascx";

 

 

    Control userControl = LoadControl(userControlName, passName, passIP);

 

    userControl.ID = passName +

"_vmdtl";

 

    e.PageView.Controls.Add(userControl);

}


The problem I'm having is that the first two tabs are created fine, but the thrid tab doesn't get created because I get an error on the page indicating the userControl.ID is a dupicate. Trying to debug this issue I noticed that the code doesn't follow the design I think it should follow.

When I click on a row, I would think the first code execution would be in the "RadGrid1_ItemCommand" method to see if the the "RowClick" command is true, however this is not the case. The first execution appears to be the "RadMultiPage_PageViewCreated" method. If you look at the code above, the "passName" value during the execution the third time has a value from the previous tab creation and therefor the userControl.ID is the same.

Why does execution go directly to "RadMultiPage_PageViewCreated'? Any Thoughts?

Thanks!





Shawn Currie
Top achievements
Rank 1
 asked on 14 Sep 2009
5 answers
194 views
I see the discussions on Batch Updates with RadGrid.  I intend on trying it out, but I was wondering how to do something similar with Add/Inserts?
Phil H.
Top achievements
Rank 2
 answered on 13 Sep 2009
2 answers
101 views
I am getting a "The specified value cannot be set on pagesize" error when trying to change the page size with the "NextPrevNumericAndAdvanced" pager while using a custom control edit form.

The line that seems to be causing the error is:
UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);

In the beginning of the function:

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)  
        {  
            GridEditableItem editedItem = e.Item as GridEditableItem;  
            UserControl userControl = (UserControl)e.Item.FindControl(GridEditFormItem.EditFormUserControlID);  
 
            switch (e.CommandName)  
            {  
                case "PerformInsert": 

If I Comment this line out ( incuding references to userControl )  setting the page size works.

I am using the newest version 2009.2.906.20

The grid is in a UserControl that I am dynamically adding to the page but I do not have any problems with any other functionality.

Any Ideas on what might be causing this?

Thanks in advance,
Dave
Dave Miller
Top achievements
Rank 2
 answered on 12 Sep 2009
0 answers
59 views
hi,


i am using raddock for edit  and insert to show the form as popup. while double clicking the appointment, its goes to server and get the form to appears.but it takes more time to show the popup.i need to show the loading panel for user to indicates that its loading.

i have used update panel for raddock.

in aspx code

  <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
              <asp:Panel runat="server" ID="DockPanel">
                    <telerik:RadDock runat="server" ID="RadDock1" Width="500px" Height="150px"
                        Closed="true" Style="z-index: 2000;" Title="Edit appointment"
                        OnClientDockPositionChanged="dockMoved"
                        OnClientInitialize="dockInitialize">
                        <Commands>
                            <telerik:DockCloseCommand  OnClientCommand="dockClose"/>
                        </Commands>        <ContentTemplate>
                            <div>
                               
                                <div >
                                    <table>
                                        <tr>
                                            <td>
                                             Subject:
                                            </td>
                                            <td>
                                                 <asp:TextBox  runat="server" ID="DescriptionText" Width="240px"></asp:TextBox><asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1"
Display="Dynamic" ControlToValidate="DescriptionText" ErrorMessage="Description is required" />
                                            </td>
                                        </tr>
                                        <tr>
                                        <td>
                                              <asp:Label ID="lblStartTime" runat="server" Text="Start time:"></asp:Label>
                                   
                                  
                                        </td>
                                        <td>
                                               <telerik:RadTimePicker ID="tpStartTime"   Skin="Web20" runat="server">
                                    </telerik:RadTimePicker>
                                        </td>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblEndTime" runat="server" Text="End time:" Visible="true"></asp:Label>
                                            </td>
                                            <td>
                                                <telerik:RadTimePicker ID="tpEndTime" runat="server" Skin="Web20">
                                                </telerik:RadTimePicker>
                                            </td>
                                        </tr>
                                        <tr>
                                        <td>
                                              <asp:CheckBox ID="chkRecurrence" Visible="false"  Text="Apply changes to all appts"  runat="server" />
                                  
                                   
                                        </td>
                                        </tr>
                                        <tr>
                                        <td>
                                            <asp:Button runat="server" ID="SubmitButton" Text="Update" OnClick="SubmitButton_Click"
OnClientClick="return hideForm()" />
                                        </td>
                                        <td>
                                            <button onclick="hideForm();" type="button" >
                                        Cancel</button>
                                        </td>
                                        </tr>
                                    </table>
                                
                                    </div></div>
                                        </ContentTemplate>
                           </telerik:RadDock>
                   </asp:Panel>
  </ContentTemplate>
          </asp:UpdatePanel>

Radschedular placed outside of the update penel.

but am using

     <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadScheduler1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />



Loading panel  is working if any opertaions to be done within radschedular.
while opening raddock window or clicking save in raddock window, i need to show the loading panel.
how to do it?

Thanks for your replies

Dhana








         








Dhana R
Top achievements
Rank 1
 asked on 12 Sep 2009
0 answers
133 views
hi,

i am using context menus(4 options) for showing right click options.but am not able to implement some of the things  that are follows

These are to be done in server side.because i have some validations in server side to show/hide content menus.

1.  I need to disable the right click options(context menus) for  particular appointment.
2.  I need to enable one context menu out of 4 menus for particular appointment


how can it is possible?

Thanks for your valuable suggestions,

Dhana

 
Dhana R
Top achievements
Rank 1
 asked on 12 Sep 2009
3 answers
142 views
hi
when i use sqldatasource to bind every thing is ok.
but when ia am using this code to bind my data grid to data source in(q2 2009 sp1)
 protected void btn_Filter_Click(object sender, EventArgs e) 
    { 
        
        ds_Reports.sp_DataTable tbl = new ds_Reports.sp_DataTable(); 
        ds_ReportsTableAdapters.ta_Select ta = new ds_ReportsTableAdapters.ta_Select(); 
        int c = ta.Fill(tbl); 
        RadGrid1.DataSource = tbl; 
        RadGrid1.DataBind(); 
         
    } 
after click on btn_filter my datagrid fills by data,
but when i change order of columns or try to group my data table by drag & drop columns to grouping area,
my table claened and need to click  filter button again.
how i can solve my problem?


ehsan
Top achievements
Rank 1
 answered on 12 Sep 2009
1 answer
457 views
Hi,

I have RadBinaryImage controls in DataBound column in RadGrid.

I want to show a default  image if DataValue in Datasource is null.

(ie.) I need to set ImageUrl if DataValue is null.

Thans,
Sabarish.
Shinu
Top achievements
Rank 2
 answered on 12 Sep 2009
3 answers
167 views
I have a Radgrid that the first column is created with:
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" Width="100%" 
            AllowSorting="True" GridLines="None" Skin="Web20" OnNeedDataSource="RadGrid1_NeedDataSource" 
             OnSortCommand="RadGrid1_SortCommand" OnItemCreated="RadGrid1_ItemCreated" AllowPaging="true"   
             AutoGenerateColumns="False" > 
<MasterTableView > 
<Columns> 
                   <telerik:GridHyperLinkColumn DataNavigateUrlFields="EMPLOYEEID" DataNavigateUrlFormatString="~/Search.aspx?EMPLOYEEID={0}" 
                        DataTextField="EMPLOYEEID" HeaderText="ID" AllowFiltering="true" FilterControlWidth="35px" UniqueName="EMPLOYEEID">  
                        <HeaderStyle ForeColor="White" Font-Names="Arial Narrow" Font-Size="Small" />                  
                        <ItemStyle Font-Names="Arial Narrow" Font-Size="Small" Font-Bold="True" Font-Underline="True" /> 
                    </telerik:GridHyperLinkColumn> 
                    <telerik:GridBoundColumn DataField="IDENTIFIER" HeaderText="IDENTIFIER" SortExpression="IDENTIFIER" 
                        UniqueName="IDENTIFIER">  
                    </telerik:GridBoundColumn> 
.....  
</Columns> 
<PagerStyle Mode="NumericPages" PageButtonCount="10" /> 
</MasterTableView> 
The problem I am having is:
Radgrid1 is generated on page load and it is working correctly... appeared with the first column with hyperlink ability. Then I click other grid control such as next page or filtering... then the ID dissappeared. so the first column only showing me dashes (-).
Can anybody help me on how to fix this problem?
Thank you.
Princy
Top achievements
Rank 2
 answered on 12 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?