Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
198 views
I'm having a few issues with the radGrid and the NestedViewTemplate.
The most pressing now is that when I expand to show my child panel
with grids in it the parent grid is resizing. I'm sure this is hard
to explain. I will attach a screen shot of the grids. I need  to
know how to keep the parent grid columns from growing and shrinking
with the child grids.



<telerik:RadGrid Width="655px" Height="540px" style="margin:15px 5px 5px 5px;" ID="GridAudit" runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False" OnPreRender="GridAudit_PreRender" OnItemCommand="GridAudit_ItemCommand" OnItemCreated="GridAudit_ItemCreated">
<ClientSettings>
<ClientEvents OnHierarchyExpanding="GridAudit_HierarchyExpanding" />
<Scrolling AllowScroll="true" />
</ClientSettings>
<MasterTableView HierarchyLoadMode="Client" ClientDataKeyNames="AuditId">
    <Columns>
    <telerik:GridBoundColumn DataField="AuditId" UniqueName="AuditId" Visible="false"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EntryId" UniqueName="EntryId" Visible="false"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Company Name" HeaderButtonType="TextButton" DataField="CompanyName" UniqueName="CompanyName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridDateTimeColumn HeaderText="Date Assigned" HeaderButtonType="TextButton" DataField="DateAssigned" UniqueName="DateAssigned" DataFormatString="{0:MM/dd/yyyy h:mm tt}" ItemStyle-HorizontalAlign="Left"></telerik:GridDateTimeColumn>
        <telerik:GridBoundColumn HeaderText="Assigned To" HeaderButtonType="TextButton" DataField="AssignedToFullName" UniqueName="AssignedToFullName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridDateTimeColumn HeaderText="Date Closed" HeaderButtonType="TextButton" DataField="DateClosed" UniqueName="DateClosed" DataFormatString="{0:MM/dd/yyyy h:mm tt}" ItemStyle-HorizontalAlign="Left"></telerik:GridDateTimeColumn>
        <telerik:GridBoundColumn HeaderText="Closed By" HeaderButtonType="TextButton" DataField="ClosedByFullName" UniqueName="ClosedByFullName" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Disposition" HeaderButtonType="TextButton" DataField="DispositionDescription" UniqueName="DispositionDescription" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
        <telerik:GridBoundColumn HeaderText="Status" HeaderButtonType="TextButton" DataField="StatusDescription" UniqueName="StatusDescription" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>                           
        </Columns>
    <NestedViewTemplate>
        <asp:Panel runat="server" ID="InnerContainer" Visible="true">
          <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" skin="PriorityPayment" EnableEmbeddedSkins="false" SelectedIndex="0">
    <Tabs>
        <telerik:RadTab runat="server" Text="Capture Points" PageViewID="PVCapturePoints"></telerik:RadTab>
        <telerik:RadTab runat="server" Text="Contacts" PageViewID="PVContacts">
        </telerik:RadTab>
        <telerik:RadTab runat="server" Text="Notes" PageViewID="PVNotes">
        </telerik:RadTab>
    <telerik:RadTab runat="server" Text="Appointments" PageViewID="PVSchedules">
        </telerik:RadTab>
    </Tabs>
 </telerik:RadTabStrip>
 <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0">
 <telerik:RadPageView runat="server" ID="PVCapturePoints">
    <telerik:RadGrid runat="server" ID="GridCapturePoints" AllowSorting="true" OnDataBinding="GridCapturePoints_DataBinding" Height="240px">
        <MasterTableView>
        </MasterTableView>
    </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVContacts">
     <telerik:RadGrid runat="server" ID="GridContacts" AllowSorting="true" OnDataBinding="GridContacts_DataBinding" Height="240px">
          <MasterTableView>
          </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVNotes">
     <telerik:RadGrid runat="server" ID="GridNotes" AllowSorting="true" OnDataBinding="GridNotes_DataBinding" Height="240px">
    <MasterTableView>
        </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 <telerik:RadPageView runat="server" ID="PVSchedules">
     <telerik:RadGrid runat="server" ID="GridSchedules" AllowSorting="true" OnDataBinding="GridSchedules_DataBinding" Height="240px">
    <MasterTableView>
    </MasterTableView>
     </telerik:RadGrid>
 </telerik:RadPageView>
 </telerik:RadMultiPage>
 </asp:Panel>
 </NestedViewTemplate>
 </MasterTableView>
 </telerik:RadGrid>

Shane
Top achievements
Rank 1
 answered on 24 Sep 2010
2 answers
165 views
I've got an old site we've upgraded to the most recent version of the Telerik controls but when we went to check out the RadEditor none of the buttons do anything. No dialogs no formatting nothing. So I created a blank page and gave it RadEditor then tested it. this works fine the dialogs work and so does the formatting. I pointed to this test page's RadEditor to the same custom tools file we used and now nothing works again. I was under the impression you could create custom tools files and so long as the names of the tools matched those that were present in the RadEditor by default they would just work. Essentially using the custom tools file as a way to reorder the tools how you saw fit, etc.

Am I missing something obvious that is preventing any of the buttons from working when this custom tools file is used??

Test Page
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="editor.aspx.vb" Inherits="TestSite.editor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div>
        <telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="test.xml">
        </telerik:RadEditor>
    </div>
    </form>
</body>
</html>

Tools File
<?xml version="1.0" ?>
<root>
    <modules />
    <tools name="MainToolbar">
        <tool name="Cut" title="Cut (CTRL+X)" shortcut="CTRL+X" />
        <tool name="Copy" title="Copy (CTRL+C)" shortcut="CTRL+C" />
        <tool name="Paste" title="Paste(CTRL+V)" shortcut="CTRL+V" />
        <tool separator="true" />
        <tool name="Undo" title="Undo (CTRL+Z)" shortcut="CTRL+Z" />
        <tool name="Redo" title="Redo (CTRL+Y)" shortcut="CTRL+Y" />
        <tool separator="true" />
        <tool name="ImageManager" title="Image Manager" />
        <tool name="LinkManager" title="Create Link" />
        <tool name="Unlink" title="Unlink" />
        <tool name="InsertHorizontalRule" title="Insert Horizontal Rule" />
        <tool separator="true" />
        <tool name="Bold" title="Bold (CTRL+B)" shortcut="CTRL+B" />
        <tool name="Italic" title="Italic" />
        <tool name="Underline" title="Underline (CTRL+U)" shortcut="CTRL+U" />
        <tool separator="true" />
        <tool name="JustifyLeft" title="Justify Left" />
        <tool name="JustifyCenter" title="Justify Center" />
        <tool name="JustifyRight" title="Justify Right" />
        <tool separator="true" />
        <tool name="InsertOrderedList" title="Numbered List" />
        <tool name="InsertUnorderedList" title="Bulleted List" />
        <tool name="Indent" title="Indent" />
        <tool name="Outdent" title="Outdent" />
        <tool separator="true" />
        <tool name="InsertTable" title="Insert Table" />
        <tool separator="true" />
        <tool name="Help" title="Help" />
    </tools>
    <tools name="SecondaryToolbar" dockable="true">
        <tool name="Print" title="Print" />
        <tool name="FormatStripper" title="Clean" />
        <tool name="FindAndReplace" title="Find And Replace" />
        <tool name="SpellCheck" title="SpellCheck" />
        <tool name="FormatBlock" title="Paragraph" />
        <tool separator="true" />
        <tool name="ApplyClass" title="Styles" />
        <tool separator="true" />
        <tool name="FontName" title="Font" enabled="false" />
        <tool name="InsertSymbol" title="Insert Symbol" />
        <tool name="InsertSnippet" title="Insert Snippet" />
        <tool name="FlashManager" title="Insert Flash" />
        <tool name="MediaManager" title="Insert Media" />
        <tool name="DocumentManager" title="Insert Document" />
        <tool name="InsertCustomLink" title="CustomLinks" />
    </tools>
</root>
Nick
Top achievements
Rank 1
 answered on 24 Sep 2010
5 answers
337 views
hi,
m using multiview in my form.
and in one view m using so many combo boxes.
when i load page at first time, combo boxes appear fine.
bt when i select dat veiw again, all the combo boxes have weird problem.
in all the combo boxes 'select' word appears in place of dropdown arrow image.
and all the items of the combo box becomes transperent. i m seeing items of combo box as well as the page behind that items.
and i cant select any item from dat.
pls do help me to solve this problem. i have simmilar error in lots of pages.
Eric
Top achievements
Rank 1
 answered on 24 Sep 2010
1 answer
73 views
I need help figuring out how to make my y axis values a systolic over diastolic value....

Example: "89/105"

Is there a way to do this?  i'm getting the following error: 

"Telerik.Charting.ChartException: The type of column with name  VitalValue is not numeric"

I was thinking I could do something like this....

rcBloodPressure.PlotArea.YAxis.Appearance.ValueFormat = Telerik.Charting.Styles.ChartValueFormat.None
rcBloodPressure.PlotArea.YAxis.Appearance.CustomFormat = "##/##"
 But it's not working, any suggestions?
Jarrette
Top achievements
Rank 1
 answered on 24 Sep 2010
1 answer
287 views

I'm using SQL server, I have my datastructure set to that of the Telerik Demos.  I am trying to take one large appointment in my Appointments table and bust it up into several little appointments. Why would I be doing such a boneheaded thing? This is why. So, I have everything working fantastically.  My users create an appointment from 9:00-3:15 and in the database, I change it to 12 half hour appointments.  There is one glitch though.
     When I create an Appointment record and INSERT the data for the RecurrenceRule field, RadScheduler will not recognize the rule.  It sees the appointment and registers that it is a recurring rule (by the little circle/arrow in the top left-hand of the appointment) but the recurring appointments never show up if you click to the next week(s).  If you double click on the appointment and go to the advanced form, the recurrrence box is NOT checked and none of the fields filled in for recurrence.
  I can hear you thinking now, "His cowboy programming has dorked up Teleriks perfection. He's messed up the data he's inserting into the field."  Well, here is where we get thrown down the rabbit hole.  If I use the RadScheduler and edit one of the new appointments and make a recurring rule, it works perfectly!  The recurring appointments show up for the next week(s).  Furthermore, if I then go to the appointment record (in the database) that RadScheduler has just updated, the rule looks exactly the same as the one I created programmatically. SQL says it is identical.   And one more kicker, if I take that rule which radscheduler has created/updated in the database, and insert it into another record's RecurrenceRule field (changing the time/date to match of course), then it still won't work for that record/appointment.
  I don't see how this can be happening. The rules are identical but RadScheduler seems to know when I have entered in the data and when IT has.  It's as if there are some hidden characters somewhere that clue RadScheduler into the fact that I typed the rule in instead of it.

UPDATE Appointments
SET RecurrenceRule = 'DTSTART:20110317T160000Z  DTEND:20110317T170000Z  RRULE:FREQ=WEEKLY;UNTIL=20110618T000000Z;INTERVAL=1;BYDAY=TH,SA'
WHERE [Subject] = 'Howdy Recurr Test'
  
-- Results from UPDATE above do not work in Radscheduler:
-- DTSTART:20110317T160000Z  DTEND:20110317T170000Z  RRULE:FREQ=WEEKLY;UNTIL=20110618T000000Z;INTERVAL=1;BYDAY=TH,SA
-- DTSTART:20110317T160000Z  DTEND:20110317T170000Z  RRULE:FREQ=WEEKLY;UNTIL=20110618T000000Z;INTERVAL=1;BYDAY=TH,SA  
-- Above us is the rule that DOES work which was created by editing RadScheduler on the webpage. What is the difference?

There aren't any extraneous spaces that I can find.  Is there something hidden?
I can send more code but it's pretty easy check and see if I'm off my rocker.  Just create a couple of appointments and use the INSERT or UPDATE in SQL to create the RecurrenceRule on one and on the other edit the recurrence rule on the web page via RadScheduler.  Then switch them around if you start getting the same behavior.  It makes absolutely no sense.  If I couldn't recreate it so regularly, I'd say I was drunk or insane.  As it is, I need another system to validate what's happening or find out what ridiculous mistake I'm making.

Thanks!
Don



Peter
Telerik team
 answered on 24 Sep 2010
0 answers
196 views
Hello,
I have a form on which I am selecting Student Name and populating Course Titles which is visible false on design
Courses could be 4 or 5 or more.
Now for each course I need to populate Tutor name and email.
I think I have to use Array for the courses but then how do I pass each array value to LinqDataSource to get TutorName.

My code snippet is:


student.aspx
******************************
  
<li>
        <asp:Label ID="lbStudName" runat="server" Text="Student Name: "  AssociatedControlID="lstStudName"
        </asp:Label>
        <telerik:RadComboBox ID="lstStudName"  runat="server" ShowToggleImage="false"
            DataTextField="SName" DataValueField="SName" ReadOnly="true" Enabled="true"
             AppendDataBoundItems="true" AutoPostBack="True"
            onselectedindexchanged="lstStudName_SelectedIndexChanged" >
            <Items><telerik:RadComboBoxItem Text="Choose One..." Value="0" /></Items>
              
            </telerik:RadComboBox>
         </li>
<li><asp:Label ID="lbCourseCode" runat="server" Text="Course Code: " Visible="true" AssociatedControlID="lstCourseCode"> </asp:Label>
              <telerik:RadComboBox ID="lstCourseCode"  runat="server" ShowToggleImage="true"
            DataTextField="CRef" DataValueField="CRef" Visible="true"
                  AppendDataBoundItems="True" ReadOnly="true" AutoPostBack="True">
                  </telerik:RadComboBox>
              
            </li>
<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                    ContextTypeName="ModTTDataContext" 
                    TableName="StudentTutors">
                </asp:LinqDataSource>
  
  
*********************************
student.aspx.cs
**********************************
  
 protected void lstStudName_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        string StudName = ((RadComboBox)o).SelectedItem.Text;
                BindCourse(StudName);
        string[] course;
        foreach( Items c  in course)
        {
           //linq query here
        }
        //   BindTutor(CREF);
          
       
    }
  
private void BindCourse(string StudName)
    {
        String[] str = StudName.Split(new char[] { ' ' });
        String fname = str[0];
        String lname = str[1];
        var query1 = (from z in modttdc.StudentInfos
                      where (z.Forenames.ToLower() == fname.ToLower()) && (z.Surname == lname.ToLower())
                      orderby z.Student_reference
                      select new
                      {
                          CRef = z.Course_Ref,
                          
                      }).Distinct();
        BindList(lstCourseCode, query1);
        //String CRef1 = lstCourseCode.SelectedItem.Text;
         
    }


Any help is appreciated.
Thanks
Sucheta
Sucheta Patil
Top achievements
Rank 1
 asked on 24 Sep 2010
2 answers
199 views
hi
this is karthik from bangalore..

How can i use the radtreeview inside the radcombobox .  i saw demo example but there load the tree in client side but i want to load server side.. How?

please help me
Veronica
Telerik team
 answered on 24 Sep 2010
1 answer
170 views
I'm having an issue with the NodeCollapse not firing on the server side for a RadTreeView.
It works fine for NodeClick and NodeExpand however the server never gets a NodeCollapse event.
The Node expand mode is set to TreeNodeExpandMode.ServerSideCallBack and I'm adding nodes to the tree on the NodeExpand event which is working fine.
I tried setting the Node.Postback to true but that doesn't seem to have made any difference.
Is there something obvious I'm missing?
Veronica
Telerik team
 answered on 24 Sep 2010
6 answers
183 views
I've put a asp.fileupload-control  and a Submit-Button in the advanced form for the "advancedEditTemplate".
this does not work - the file-upload has no files. 

Is it possible to send files to the server right out of the AdvanvedEditTemplate. And if the answer is "yes" - how can I do that.

Tanks,
Otto
Veronica
Telerik team
 answered on 24 Sep 2010
3 answers
316 views
Hello,
It appears that RadAjaxManager does not work properly with RadioButton or RadioButtonList controls.
If I Have the following code:
    <telerik:RadAjaxManager ID="ramAjax" runat="server" EnableHistory="True" OnAjaxRequest="ramAjax_AjaxRequest"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rbAllWorkOrders"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgSearchResults" LoadingPanelID="ralpLoading" /> 
                    <telerik:AjaxUpdatedControl ControlID="pageTime" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="rbMyWorkOrders"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rgSearchResults" LoadingPanelID="ralpLoading" /> 
                    <telerik:AjaxUpdatedControl ControlID="pageTime" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
 
 
            <asp:RadioButton runat="server" ID="rbAllWorkOrders" GroupName="rbgWorkOrderFilter" Text="All Work Orders" AutoPostBack="True" OnCheckedChanged="filter_ValueChanged" Checked="True" /> 
            <asp:RadioButton runat="server" ID="rbMyWorkOrders" GroupName="rbgWorkOrderFilter" Text="My Work Orders" AutoPostBack="True" OnCheckedChanged="filter_ValueChanged" /> 
 


When the page loads, the "All Work Orders" RadioButton will be selected by default. If you click the "My Work Orders" button the RadAjaxManager will "trigger" an "ajax postback" causing the loading panel to display and filter_ValueChanged will get called. If you then click "All Work Orders" after that, the RadAjaxManager will not trigger anything, the event will not get called and the loading panel does not display.
The same holds true for setting a "default selected" option in a RadioButtonList. If the AjaxSetting is removed from the RadAjaxManager for these RadioButton controls or RadioButtonList control everything works as expected, however a postback is caused which is why I want to use RadAjaxManager.
Please help.
Developer
Top achievements
Rank 1
 answered on 24 Sep 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?