Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
121 views

hello.. i m using telerik grid..grid havin three checkbox  in threee columns..i want user can be able to select single checkbox at a time..

  <himani:HimaniGrid ID="EmployeeAttendanceGrid" runat="server" GridLines="None"   
        AutoGenerateColumns="False"   
           onitemcommand="EmployeeAttendanceGrid_ItemCommand"   
           onitemdatabound="EmployeeAttendanceGrid_ItemDataBound">  
<MasterTableView cellspacing="-1">  
<RowIndicatorColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
<ExpandCollapseColumn> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
<Columns> 
<himani:GridTemplateColumn Visible="false">  
<ItemTemplate> 
    <asp:Label ID="LbEmployeeid" runat="server" Text='<%#Eval("ID")%>'></asp:Label> 
</ItemTemplate> 
</himani:GridTemplateColumn> 
<himani:GridTemplateColumn HeaderText="Employee Name">  
<ItemTemplate> 
    <asp:Label ID="Label2" runat="server" Text='<%#Eval("NAME")%>'></asp:Label> 
</ItemTemplate> 
</himani:GridTemplateColumn> 
 
<himani:GridTemplateColumn HeaderText="Present" > 
<ItemTemplate> 
 <asp:CheckBox ID="ChkPresent" runat="server" /> 
 
</ItemTemplate> 
</himani:GridTemplateColumn> 
<himani:GridTemplateColumn HeaderText="Absent" > 
 
<ItemTemplate> 
    <asp:CheckBox ID="ChkAbsent" runat="server" /> 
</ItemTemplate> 
</himani:GridTemplateColumn> 
<himani:GridTemplateColumn HeaderText="Leave" > 
<ItemTemplate> 
    <asp:CheckBox ID="Chkleave" runat="server" /> 
</ItemTemplate> 
</himani:GridTemplateColumn> 
<himani:GridTemplateColumn> 
<ItemTemplate> 
    <asp:Button ID="btnView" runat="server" Text="View" /> 
</ItemTemplate> 
</himani:GridTemplateColumn> 
</Columns> 
</MasterTableView> 
    </himani:HimaniGrid> 
 
<script language="javascript" type="text/javascript">  
        function check(ChkPresent,ChkAbsent, Chkleave, currentCheckBoxClicked) {  
            var objC1 = document.getElementById(ChkPresent);  
            var objC2 = document.getElementById(ChkAbsent);  
            var objC3 = document.getElementById(Chkleave);  
              
            if (ChkPresent== currentCheckBoxClicked) {  
                objC2.checked = false;  
                objC3.checked = false;  
            }  
            else if (ChkAbsent == currentCheckBoxClicked) {  
                objC1.checked = false;  
                objC3.checked = false;  
            }  
            else if (Chkleave == currentCheckBoxClicked) {  
                objC1.checked = false;  
                objC2.checked = false;  
            }  
        }  
    </script> 
 
 
 
 protected void EmployeeAttendanceGrid_ItemDataBound(object sender, GridItemEventArgs e)  
    {  
        //GridDataItem item = (GridDataItem)(((CheckBox)e.CommandSource).NamingContainer);  
        if(e.Item.ItemType==Himani.Web.UI.GridItemType.AlternatingItem)  
        //if (e.Row.RowType == DataControlRowType.DataRow)  
       {  
            CheckBox c1 = e.Item.FindControl("ChkPresent") as CheckBox;  
            CheckBox c2 = e.Item.FindControl("ChkAbsent") as CheckBox;  
            CheckBox c3 = e.Item.FindControl("Chkleave") as CheckBox;  
 
            c1.Attributes.Add("onclick", "javascript:check('" + c1.ClientID + "','" + c2.ClientID + "','" + c3.ClientID + "',this.id);");  
            c2.Attributes.Add("onclick", "javascript:check('" + c1.ClientID + "','" + c2.ClientID + "','" + c3.ClientID + "',this.id);");  
            c3.Attributes.Add("onclick", "javascript:check('" + c1.ClientID + "','" + c2.ClientID + "','" + c3.ClientID + "',this.id);");  
        }  
 
    }  
 
please reply....in one row i able to select  one checkbox..
in second row it creating problem i able can select all checkbox
Princy
Top achievements
Rank 2
 answered on 13 Apr 2010
7 answers
165 views
Hi All,

I need some help with a date filter.  I want the filter to show a date field with picker.  Acceptable date format: dd/MM/yy.  When the user clicks to filter the EqualTo filter will be used.  I need the filter to work on a dd/MM/yy 00:00:00 - dd/MM/yy 23:59:59 basis and bring back the full day of matching figures - as it stands it would only bering back dd/MM/yy 00:00:00 which is about as useful as a chocolate teapot.

I've seen several similar posts but can't find anything that seems to make sense.  In the future please can the demo section on the site start to include these custom but very useful methods?  Searching through the forums is getting to be a very fustrating exercise.

Thanks in advance for any help,

Jon
Jon
Top achievements
Rank 1
 answered on 13 Apr 2010
2 answers
218 views

We have many clients who ask us to write new software for them.  Some of these clients have their own development people.  I enjoy and advocate using Telerik RadControls for all projects.  But now I need to sell Telerik to my clients as well as my own products and services - and compete head-to-head with the ASP.NET Toolkit freeware.  I'll tell you what I have done.  What do the rest of you do?

For the uninitiated client/prospect, I have had to essentially put together my own marketing materials for RadControls.  I have to explain why we choose to use this kit over freeware/default ASP.NET components.  I cite benefits like outstanding support, faster development, more built-in features, a much more attractive final product, and a much better end-user experience.  I invite clients and prospects to an online demo where I take them on a tour through the telerik.com demos.  I show them screenshots of existing projects and profile features of RadGrid, the calendar, windows, rapid skinning, and other "sizzle".

The only downside to using RadControls is the cost. If my clients want to maintain the code produced for them, they will need to purchase RadControls and ongoing maintenance.  That's no big deal unless they have a team of developers and no major need for  RadControls.  Another "truth be told" reality is that RadControls require a lot of time and patience to learn - that actually makes initial development more costly, though I believe the rewards are worth the investment.

So I need to pitch my for-fee, "takes some time to understand" toolkit against free and open source tools used by the other 90% of the world.  That's sometimes tough.

Since we're here, I often also feel as though I'm providing free Marketing for Telerik when I may not get anything but a development gig out  of it.  After all of my extra sales effort I don't even get a commission from product or support fees.  Sure, the points are nice but hardly commensurate with the effort, and quite frequently people will just go and purchase software later without telling anyone - Telerik may have sold a dozen licenses based on my free marketing for them without me or anyone else here getting a single point.

So how do you other developers "sell" this, and does anyone else care about this last situation?

Thanks for your time.

Donna
Telerik team
 answered on 13 Apr 2010
1 answer
197 views
I have a very long ASPX page with a pop-up RadWindow that displays when page is loaded. I want this window to move along with the page as user scrolls down the page. So I added "PIN" in the behavior property and it works.

I also want the user to be able to move and/or resize the pop-up window. But I want the user NOT to be able to drag/resize the window beyond the browser boundary. I can't use RestrictedZoneID property of the RadWindow.

I tried looking for sample but I couldn't fine one. Is there a way to achieve this? If yes, how? Please let me know asap.

Thanks
Georgi Tunev
Telerik team
 answered on 13 Apr 2010
1 answer
63 views
HI,

We are looking at upgrading from Visual Studio 2008 to Visual Studio 2010 and our question is if we can do this and still use and build our ASP.NET web apps using the Telerik ASP.NET Ajax 2009.Q3 1314 components?

We are not looking for building for dotnet 4.0.

Regards
Fredrik
T. Tsonev
Telerik team
 answered on 13 Apr 2010
1 answer
153 views
Hi,

I am having Tabstrip which contains 4 tabs. By Default I need to display the 3 tab. I tries setting the selected index value to 3 but only 3rd tab will get selected it is corrsponding RadPageView is not getting displayed.

How to set thrid tab display by default?
Shinu
Top achievements
Rank 2
 answered on 13 Apr 2010
3 answers
146 views
Hi,

    I have a master page which  has RadAjaxManager. In content Page (page1.aspx), I am loading the user control 1 dynamically. The user control 1 has a grid . I am using external edit form to update/add/delete data inside the grid, which is included in another user control 2. The user control2 also gets loaded dynamically.

Everything is working fine. But when I try to go to Page1 to Page-2 and try to select an item in page-2, the selected item inside the grid is not changing . Still the selected item is the Item I selected in Page1.

I use a session variable to store the selectedItem and update it in "RadGrid1_SelectedIndexChanged" event.

Any idea why it is happening?

Thanks!

Yavor
Telerik team
 answered on 13 Apr 2010
2 answers
218 views
I have a web explorer
when i click on an image file it is opening a pop up (radwindow) to preview this image

the popup is not re sizable
how can I set it
Hamdy
Top achievements
Rank 1
 answered on 13 Apr 2010
6 answers
418 views

I’ve been trying to set focus on a DropdownList input cell in a Popup edit form.  I tried putting code on the ItemDataBound event without much luck.  
I was wondering if using the “Grid / PopUp Edit Form” http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx example someone could show me how to set focus on the “Title Of Courtesy” dropdown field when in edit mode.   At the very least I’d like to see how to set focus on the Popup Edit form itself.  Thanks.

Martin
Telerik team
 answered on 13 Apr 2010
2 answers
161 views
Hi, All

Can I make Header with two rows

and merge two cells?

Like

Header #1 Header #2 Header #3
Header #1_1 Header #1_2 Header #2_1 Header #3_1 Header #3_2
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5
Item 1_1 Item 1_2 Item 1_3 Item 1_4 Item 1_5


If you help me I'll be very happy

Thank you
Yoon-Ho Choi
Top achievements
Rank 1
 answered on 13 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?