Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
148 views
Hi,

I want to calculate total of Quantity column (In Edit Mode) using javascript when I am using group by functionality in Rad Grid. I can do Grand total using javascript but not able to do group by total using javascript as I don't know how to check which group is being edited.

For grand total I am passing Footer value in Java script and deducting it from current value.

Thanks,
Mona

Tsvetina
Telerik team
 answered on 19 Jan 2012
3 answers
210 views
Hi,

I have two questions on the drop down menu. First one should be easier, do you have an EnableAutoScroll as in the RadMenu? I have a drop down that can go beyond the window limits and it would be very useful to have the scroll as there is in the menu.

The second one is a bit more complicated. My drop down is constructed on the client side, and it is based on adding items. However, I noticed that whenever I add first a short text item then a long text item, the long text gets wrapped into two lines or cutoff if I use nowrap. Is there a way to adjust the width of the drop down menu to fit all item texts?

Thanks,
Eduardo
Peter
Telerik team
 answered on 19 Jan 2012
5 answers
780 views
I am building a DataTable dynamically at run time and I am also using templates in the Cells that again are dynamically loaded.
The template is currently extremely simple in that it consists solely a CheckBos and a HiddenField like so:
<asp:CheckBox ID="cb" runat="server" /> <asp:HiddenField ID="hf" runat="server" />

I trap the ItemDataBound Event of the Grid and have code similar to that below:
if (e.Item is GridDataItem)
{
    GridDataItem item = (GridDataItem)e.Item;
    DataRowView drv = (DataRowView)item.DataItem;
    for (int i = 0; i < rgTags.MasterTableView.Columns.Count; i++ )
    {
        string uniqueName = rgTags.MasterTableView.Columns[i].UniqueName;
        if (drv[i] is System.DBNull)
        {
            item[uniqueName].Controls[0].FindControl("cb").Visible = false;
        }
        else
        {
            AdminTag tag = (AdminTag)drv[i];
            ((CheckBox)item[uniqueName].Controls[0].FindControl("cb")).Text = tag.sText;
            ((HiddenField)item[uniqueName].Controls[0].FindControl("hf")).Value = tag.nTagId.ToString();
        }
    }
}

My question is why do I have to have the Controls[0]. before the FindControl() calls? I don't like hard coding things like that and would prefer a more elegant way to find the control in the template.

It is wo0rking now, but it's inelegant and it took me a long time to figure it out and I am sure it will get broken b y a future release.

Martin
Tsvetina
Telerik team
 answered on 19 Jan 2012
1 answer
45 views
The RadMenu control has the Target Property, How do I set this property when binding the menu to a SiteMapDataSource?
Peter
Telerik team
 answered on 19 Jan 2012
4 answers
407 views
Hi All,

i am using a RadMenu on my page and i am handling its click event from server side...

when i click on of the item i open another page in rad window ...

all is ok and the window is opened successfully.... i do what i need there and close it...

BUT

i noticed when i refresh the page that holds the radmenu, the click event is called again and the RadWindow is opened again!!!

how can i avoid this from happening!!!

Best Regards
Asa'ad
Kate
Telerik team
 answered on 19 Jan 2012
1 answer
72 views
Is there a way to limit client-side row selection to one row per grouping in a radgrid without causing a postback every time?

I used an old example (see below), but each click of a checkbox causes a postback which is disruptive to the process. I wasn't sure if there was some built in functionality or an easy way to check at the end if too many were selected.

Thank you..

<radG:GridTemplateColumn UniqueName="CheckBoxColumn">
 <ItemTemplate>
   <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="true" OnCheckedChanged="CheckedChanged" />
 </ItemTemplate>
</radG:GridTemplateColumn>

public void CheckedChanged(object sender, EventArgs e)
    {
        GridDataItem checkedItem = (GridDataItem)(sender as CheckBox).NamingContainer;
        string checkedItemIndex = checkedItem.GroupIndex.Substring(checkedItem.GroupIndex.LastIndexOf('_'), 2);
 
        foreach (GridDataItem item in checkedItem.OwnerTableView.Items)
        {
            string currItemIndex = item.GroupIndex.Substring(item.GroupIndex.LastIndexOf('_'), 2);
 
            if (checkedItem.GroupIndex.StartsWith(item.GroupIndex.Substring(0,1)) && currItemIndex != checkedItemIndex)
            {               
                (item.FindControl("CheckBox1") as CheckBox).Checked = false;
            }
        }
    }
Tsvetina
Telerik team
 answered on 19 Jan 2012
2 answers
144 views
Hi,
I am getting the String was not recognized a a valid date time in radscheduler on clicking the date of month view.
I am using Telerik version 2010.1.519.40 dll in IE 8.I have attached screenshots
deepak
Top achievements
Rank 2
 answered on 19 Jan 2012
2 answers
87 views
Can we expect to see the same level of we service binding available for RadListView as we have with, say, RadGrid? -- Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 19 Jan 2012
1 answer
49 views
Hi,
    
    I am using Rad Scheduler Control. I want the time slots to be displayed as 7:00 am,15,30,45,8:00 am when i set MinutesPerRow to 15. And also I want to highlight the current time's row.
 Please tell how can I achieve this.

Thanks
Lokesh 
               
Peter
Telerik team
 answered on 19 Jan 2012
1 answer
370 views
hello,

 i want bind the listview on textbox change 

i mean when i type any word then listview bind data from my database and refresh on next world on textbox when i type

i am not get any help 
so please tell me some idea or code 

thanks
Princy
Top achievements
Rank 2
 answered on 19 Jan 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?