Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
What I am trying to accomplish is have a master grid view that shows the workgroups the user is a member of. when the workgroup is expanded the assigned tickets to that workgroup will be displayed. The catch is i want the RadGrid inside of the NestedViewTemplate to have a maxHeight property and an overflow to allow scrolling. I do not want to use paging as the result set will ever only be in the 10s of records.
The error that I am getting is "Could not find control 'lblWorkgroupID' in ControlParameter'TO_WORKGROUP_FROM_SQL2'."
And the markup is:
                            <asp:SqlDataSource  
                                ID="SqlDataSource1"  
                                runat="server"  
                                ConnectionString="<%$ ConnectionStrings:ConnectionString %>"  
                                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" /> 
                            <asp:SqlDataSource  
                                ID="SqlDataSource2"  
                                runat="server"  
                                ConnectionString="<%$ ConnectionStrings:ConnectionString %>"  
                                ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" > 
                                <SelectParameters> 
                                    <asp:ControlParameter ControlID="lblWorkgroupID" PropertyName="Text" Type="String" Name="TO_WORKGROUP_FROM_SQL2" /> 
                                </SelectParameters> 
                            </asp:SqlDataSource> 
                            <telerik:radgrid id="RadGrid_Incidents" AutoGenerateColumns="false" ShowHeader="false" runat="server" DataSourceID="SqlDataSource1" Skin="Default"
                                <MasterTableView ClientDataKeyNames="TO_WORKGROUP_FROM_SQL2" DataKeyNames="TO_WORKGROUP_FROM_SQL1" HierarchyLoadMode="Client"
                                    <Columns> 
                                        <telerik:GridBoundColumn UniqueName="TO_WORKGROUP" DataField="TO_WORKGROUP_FROM_SQL1" /> 
                                    </Columns> 
                                    <NestedViewSettings DataSourceID="SqlDataSource2"
                                        <ParentTableRelation> 
                                            <telerik:GridRelationFields DetailKeyField="TO_WORKGROUP_FROM_SQL2" MasterKeyField="TO_WORKGROUP_FROM_SQL1" /> 
                                        </ParentTableRelation> 
                                    </NestedViewSettings> 
                                    <NestedViewTemplate> 
                                    <div style="max-height:100px; overflow:auto"
                                        <asp:Label ID="lblWorkgroupID" Text='<%# Eval("TO_WORKGROUP_FROM_SQL1") %>' Visible="false" runat="server" /> 
                                            <telerik:radgrid AutoGenerateColumns="false" id="Incidents_Grid" ShowHeader="false" runat="server" DataSourceID="SqlDataSource2" Skin="Default"
                                                <MasterTableView DataKeyNames="TO_WORKGROUP_FROM_SQL2" HierarchyLoadMode="Client"
                                                   <Columns> 
                                                       <telerik:GridBoundColumn UniqueName="DESCRIPTION" HeaderText="DESCRIPTION" DataField="DESCRIPTION" /> 
                                                       <telerik:GridBoundColumn UniqueName="INCIDENT_ID" HeaderText="INCIDENT_ID" DataField="INCIDENT_ID" ItemStyle-Font-Size="8pt" /> 
                                                   </Columns> 
                                                </MasterTableView> 
                                            </telerik:radgrid> 
                                        </div> 
                                    </NestedViewTemplate> 
                                    <ExpandCollapseColumn Visible="True" /> 
                                </MasterTableView> 
                                <ClientSettings Selecting-AllowRowSelect="true" /> 
                            </telerik:radgrid> 

with codebehind:
                String _User = "longjt";//HttpContext.Current.Request.ServerVariables["AUTH_USER"]; 
 
                SqlDataSource1.SelectCommand = "SELECT NAME as TO_WORKGROUP_FROM_SQL1 FROM SERVICE_MANAGER_ADM.ASSIGNMENTA1 WHERE OPERATORS = '" + _User + "'"
                SqlDataSource2.SelectCommand = "SELECT TO_WORKGROUP as TO_WORKGROUP_FROM_SQL2, TO_PERSON_VUNETID, DESCRIPTION, INCIDENT_ID,  CREATED_ON FROM SERVICE_MANAGER_ADM.INCIDENT_REPORT_VIEW WHERE   (TO_WORKGROUP = @TO_WORKGROUP) AND STATUS != 'Closed' AND STATUS != 'Resolved' ORDER By TO_PERSON_VUNETID, CREATED_ON"
 


Malichone
Top achievements
Rank 1
 answered on 16 Apr 2010
1 answer
285 views
I have a RadGrid (Rad Ajax 2009 Q3) that allows its columns to be resizable.  If I drag one column past the point where the javascript will actually resize the column, I still get a tool tip that tells me the width and the parent div tag (of the table) still shrinks.  When I release my mouse, the parent div tag has its width less than the actual table width.  Because the parent div tag has its border set, the right border runs right down the middle of one of my columns.  If I sort the columns, the div tag gets reset correctly, but how can I get it to work without having to do a resort?
<telerik:RadGrid ID="dgLocations" runat="server" AutoGenerateColumns="False" Visible="false"
                    <MasterTableView ShowHeadersWhenNoRecords="False" AllowNaturalSort="false" AllowSorting="true"
                        <SortExpressions> 
                            <telerik:GridSortExpression FieldName="LocationName" SortOrder="Ascending" /> 
                        </SortExpressions> 
                        <Columns> 
                            <telerik:GridBoundColumn UniqueName="LocationCode" 
                                DataField="LocationCode" HeaderText="Code" /> 
                            <telerik:GridBoundColumn UniqueName="LocationName" 
                                DataField="LocationName" HeaderText="Name" /> 
                            <telerik:GridBoundColumn UniqueName="City" 
                                DataField="City" HeaderText="City" /> 
                            <telerik:GridBoundColumn UniqueName="State" DataField="State"  
                                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" HeaderText="State/Province" Resizable="false" /> 
                            <telerik:GridTemplateColumn UniqueName="Select" HeaderText="Select"
                                <ItemStyle  HorizontalAlign="Center" /> 
                                <HeaderStyle HorizontalAlign="Center" /> 
                                <ItemTemplate> 
                                    <onclick="returnValues(<%# Eval("LocationID") %>);" href="#">Select</a> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                    </MasterTableView> 
                    <ClientSettings> 
                        <Resizing AllowColumnResize="true" ClipCellContentOnResize="false" EnableRealTimeResize="true" 
                            ResizeGridOnColumnResize="true" /> 
                    </ClientSettings> 
                </telerik:RadGrid> 


Mira
Telerik team
 answered on 16 Apr 2010
4 answers
561 views
I'm still coming up to speed on RadGrid (Telerik's controls general!)... So the scenario is I've got a RadControl on my page.  I've added an Edit button and the Add New Record button in the command row.    What I'd like to do is put the rest of the grid in a "disabled" state while on row is being worked on (whether that's editing an existing row after clicking the Edit button for that row, or having clicked the "Add New..." button). 

I already have an event handler setup to handle the edit/insert, so that part is easy enough.  What I don't see is an easy way to disable clicking on all other edit/delete buttons on the other rows in the grid, or any item in the command row.

Suggestions?

In a somewhat related vein... When the user is editing a row (edit or insert again), I'd like to have the return key be the equivalent of clicking the Update or Insert command.  Or at least get the tab order such that after tabbing out of the last editable column of the row that it goes next to the Update/Insert command/button.

Any help would be greatly appreciated.
Iana Tsolova
Telerik team
 answered on 16 Apr 2010
4 answers
294 views
Hi!

Is there any way to keep rad editor from stripping html, head and body tags from a template just added from the template manager?


EDIT:

Extended explanation.

I have a folder with html files I want to use as templates to create new html files. But when I load them using the template manager, all the head section, and the <html> and <body> tags disappear, and so do all the css classes defined inline.

I've noticed that on telerik examples happends the same.

Is there any way to keep all that information instead of being stripped away?
Scott Allen
Top achievements
Rank 1
 answered on 16 Apr 2010
4 answers
159 views
I'm in the section "Configuring the ActiveSkill Database" on page 165 of RadControlsAJAXCourseware.pdf.  I can create the database and run the script to create the tables, but when I try to run the script to populate the test data I get a permissions error:  "

Cannot find the object "Appointment_Data" because it does not exist or you do not have permissions".

I know the object exists and I've tried creating everything from scratch while logged in with my windows system account as well as sa.  How could sa not have permissions to insert data?  Anyway, I'll keep trying but help would be appreciated!

Patricia Byrne
Top achievements
Rank 1
 answered on 16 Apr 2010
5 answers
227 views
This may be an easy question but I couldn't get the combobox to sort by Text. I already set my combobox to sort in ascending but it still sorts by "Id". The datasource is an IList.
Simon
Telerik team
 answered on 16 Apr 2010
1 answer
98 views
Following is the Code Written Inside grid itme Created event..
But on Postback of textchanged ..Listbox seems to Refresh.

ItemCreated Event

Dim
item As GridEditableItem = TryCast(e.Item, GridEditableItem)

 

 

 

 

 

 

 

Dim raditem1 As New RadComboBoxItem

 

 

 

Dim raditem2 As New RadComboBoxItem

 

 

 

Dim raditem3 As New RadComboBoxItem

 

 

 

Dim raditem4 As New RadComboBoxItem

 

 

 

If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then

 

 

 

Dim txtuserName As TextBox = DirectCast(item.FindControl("txtuserName"), TextBox)

 

 

 

Dim txtpassword As TextBox = DirectCast(item.FindControl("txtpassword"), TextBox)

 

 

 

Dim lstbLocations As ListBox = DirectCast(item.FindControl("lstbLocations"), ListBox)

 

 

 

 

 

RadAjaxManager1.AjaxSettings.AddAjaxSetting(txtuserName, lstbLocations)
END IF

Pavlina
Telerik team
 answered on 16 Apr 2010
1 answer
107 views
Hi Telerik expert,

Can you please advise if your Rotator can be configured with the features on the top of the following example page?

http://www.whitehouse.gov/
Thanks,
Hong

Princy
Top achievements
Rank 2
 answered on 16 Apr 2010
3 answers
78 views
Hi!
We use the image editor in a MOSS 2007 environment and have a issue with resizing images.

When we resize an image the new _thumb gets a grey outline around the image. Is there a way to fix this?

Attached file shows the original image to the left and when it's opened in the image editor to the right.

//Kristian
Stanimir
Telerik team
 answered on 16 Apr 2010
1 answer
122 views
hi I have created  a css file in which folllowing entries are there for css
.red
{
    font-size:14px;
    color: ffcccc;
    background-color:#000000;
}
.blue
{
    font-size:15px;
    font-weight:bold;
    text-decoration: blink;
    color:#ccffff;
    background-color:#3366ff;
}
.majorcrisis
{
    font-size:15px;
    font-weight:bold;
    text-decoration: blink;
    color:#ccffff;
    background-color:#000000;
}

I modified the toolsfile.xml file with the following entries
<classes>
   <class name="Clear Class" value="" />
   <class name="No Crisis  Style" value=".red" />
   <class name="Minor Crisis  Style" value=".blue" />
     <class name="Major Crisis Style" value=".majorcrisis" />
 </classes>
 <cssFiles>
 <item name="/_wpresources/RadEditorSharePoint/5.6.2.0__1f131a624888eeed/Resources/ExternalCssFiles/CrisisComm.css"  />
 </cssFiles>

here when I check my page in sharepoint only red and blue but not the majorcrisis.If I change the name of "blue" or "red" css to any other name it doesnot work.Why is it happening so?


Stanimir
Telerik team
 answered on 16 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?