Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
200 views
Hello, I have a problem with there being more columns than the width of the RadGrid control.  A user can scroll to the right and see all of the columns fine, but the bar that allows you to drag columns for grouping stops at the right of the page before you scroll.  Here is an example:


I've searched the forums here and the documentation, but I'm still missing the fix.  I'm sure it's something simple.  Thanks!
Dimo
Telerik team
 answered on 18 Jan 2010
10 answers
354 views
Hi,

I have a Radgrid for which I am setting background color of the row to differnet colors according to the need. Here when I select a row then selected row color is half colored.  Row height is more than the normal. Content of the row is displayed like two rows in a single row.

how to fix this selection issue.

Regards,
Medac










ciskomisko
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
164 views
When I add rad controls to a site that has its own css files linked it messes up the controls. For RadEditor you can choose CssFiles property, but what about other controls? I just tried scheduler but it does not have CssFiles property. Any ideas how to avoid css conflicts for other controls? Thanks.
Dimo
Telerik team
 answered on 18 Jan 2010
1 answer
206 views
Here i have a requirement in which i will get the count and based on the count i should get the checkboxes added dynamically
Shinu
Top achievements
Rank 2
 answered on 18 Jan 2010
2 answers
151 views
Hi,
       I am using the following code to get the selectedValue of radComboBox in javascript to pass values to the parent page:

<script language="javascript" type="text/javascript">

        function passValues() {
            var combo = $find("<%= cmbBranch.ClientID %>");
            var comboValue = document.getElementById(combo.UniqueID + "_value").value;
            window.opener.document.getElementById('txtFindBrid').innerText = comboValue;
           }
 
    </script>
 I have placed the above code inside <head> </head> tag.  When I run the project I get the following error:
Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).  Please help me by giving a solution.

Joseph

Joseph Ambattu
Top achievements
Rank 1
 answered on 18 Jan 2010
1 answer
138 views

Hi,

I am having a radgrid(with detailtables) and a radcombobox with checkboxes in it. Initially on pageload, all the items in the radcombobox are clicked and the detail table shows all the columns in it. When the user unselects any of the item in the combo box, the column in the detail table should become invisible. 

 <telerik:RadComboBox ID="RadComboBox1" runat="server"  HighlightTemplatedItems="true" EmptyMessage="select display columns"
                    Skin="Office2007" AllowCustomText="true" Width="240px">
                    <ItemTemplate>
                        <asp:CheckBox runat="server" ID="chk1" Checked="true" OnCheckedChanged="chk1_CheckedChanged" AutoPostBack="true"/>
                        <asp:Label runat="server" ID="Label1" Text='<%# Eval("menuitem_gridname") %>' AssociatedControlID="chk1">
                        </asp:Label>
                    </ItemTemplate>
                </telerik:RadComboBox>

codebehind

 

 

 

 

protected void chk1_CheckedChanged(object sender, EventArgs e)  
{
string str = ""; 
for (int i = 0; i < RadComboBox1.Items.Count; i++) 
{
CheckBox chk = (CheckBox)RadComboBox1.Items[i].FindControl("chk1"); 
if (chk.Checked == false) {
str = str + "," + RadComboBox1.Items[i].Value;  
}
}
RadGrid2.Rebind();

}

 

 protected void RadGrid2_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {

            //string str = Request.QueryString["Cols"].ToString();
            string str = "";
            for (int i = 0; i <  RadComboBox1.Items.Count;i++) 
            {
                CheckBox chk = (CheckBox)RadComboBox1.Items[i].FindControl("chk1");                
                if (chk.Checked == false)
                {
                    str = str + "," + RadComboBox1.Items[i].Value;
                }
            }
            e.DetailTableView.DataSource = dsSwitch.Tables[1];
          
            //string str = Request.QueryString["Cols"].ToString();

            string[] cols = str.Split(',');
            for (int i = 0; i < cols.Length; i++)
            {
                if (cols[i].ToString().Equals(string.Empty))
                    continue;
                int j = int.Parse(cols[i].ToString());
                e.DetailTableView.Columns[j].Visible = false;
            }
            //e.DetailTableView.Columns[3].Visible = false;
        }

Now the problem is it is not remembering the state of the radgrid. For example, If we expand a particular row in the mastergrid and unselect an item in the combobox, none of the rows are in expanded state. It is not remember the state of the radgrid.
How to remeber the state of the grid on selecting and unselectiong the items in a combobox to hide the columns of a detail table in an ajax way?

Thank you.

 

 

 

Princy
Top achievements
Rank 2
 answered on 18 Jan 2010
3 answers
101 views
We are trying to add a filtered RadComboBox control that behaves as follows:
-  When you start typing, filter the list with the Contains filter
-  If you leave the control (blur), and your current text doesn't match an existing item in the list, revert to the item that was selected when the page was loaded (the current value before the user started typing the filter key)

Our current attempt is close, but doesn't quite get there.  On blur, the combobox retains the value of whatever the user typed in, even though AllowCustomText is false.  If we set MarkFirstMatch to true, we prevent the user from leaving any text in the dropdown that doesn't match an existing item, however we would prefer to clear it out to its original value if an item wasn't selected directly:

<telerik:RadComboBox ID="_sicCode" runat="server" AllowCustomText="false" MarkFirstMatch="false" EmptyMessage="-- Select --" Filter="Contains" MaxHeight="150" /> 

Is there any way to achieve this behavior without extending the control?
Veselin Vasilev
Telerik team
 answered on 18 Jan 2010
5 answers
208 views
hi

how do i capture the document path into DB? for example, if after upload the path to the document is C:\somefolder\somefolder\somefile.pdf, the DB should have a row value C:\somefolder\somefolder\somefile.pdf.

Thanks
Genady Sergeev
Telerik team
 answered on 18 Jan 2010
4 answers
147 views
Hello,
I have Rad editor webpart  in my Sharepoint page. Clicking on the document manager is not showing the PPTX files. Also i am not able to upload the other extensions file using the document manager.

Please let me know what is the issue.

Regards,
Sudeep
Stanimir
Telerik team
 answered on 18 Jan 2010
1 answer
110 views
Hi,
I'm trying to update the RadSchedule.MonthView.VisibleAppointmentsPerDay property in the ScheduleDataBound event. When I do this, the schedule displays the appointments correctly, however none of the client side appointment clicked events work. If i set the property at design time, the appointment click events work.

Below is the settings for the scheduler

protected void Page_Load(object sender, EventArgs e) 
    {        
        GuardSchedule.DataKeyField = "ID"; 
        GuardSchedule.DataSubjectField = "Subject"; 
        GuardSchedule.DataStartField = "StartDateTime"; 
        GuardSchedule.DataEndField = "EndDateTime"; 
        GuardSchedule.SelectedView = SchedulerViewType.MonthView; 
        GuardSchedule.ShowViewTabs = false; 
        GuardSchedule.OverflowBehavior = OverflowBehavior.Expand; 
        GuardSchedule.ShowNavigationPane = false; 
        GuardSchedule.AllowDelete = false; 
        GuardSchedule.AllowEdit = false; 
        GuardSchedule.AllowInsert = false; 
        GuardSchedule.OnClientAppointmentClick = "AppointmentClicked";
        GuardSchedule.DataBound += new EventHandler(GuardSchedule_DataBound);
    }

void GuardSchedule_DataBound(object sender, EventArgs e)
    {
        DateTime viewStartDateTime = GuardSchedule.VisibleRangeStart;
        DateTime viewEndDateTime = GuardSchedule.VisibleRangeEnd;
        _appMax = 2;
        int numApps = 0;
        DateTime startTime = viewStartDateTime;
        DateTime endTime = viewStartDateTime.AddDays(1);
        while (startTime <= viewEndDateTime)
        {
            numApps = GuardSchedule.Appointments.GetAppointmentsInRange(startTime, endTime).Count;
            if (numApps > _appMax)
                _appMax = numApps;
            startTime = startTime.AddDays(1);
            endTime = endTime.AddDays(1);
        }
    
        GuardSchedule.MonthView.VisibleAppointmentsPerDay = _appMax;
    }

    <scipt> 
 
        function AppointmentClicked(sender, eventArgs) { 
            var apt = eventArgs.get_appointment(); 
            var aptID = apt.get_id(); 
          //Do stuff with the id 
            
        } 
    </script>
 <telerik:RadScheduler ID="GuardSchedule" runat="server" SelectedView="MonthView"
                    ShowViewTabs="false">
                </telerik:RadScheduler>

T. Tsonev
Telerik team
 answered on 18 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?