Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
Hi!

I'm working on a grid with the items grouped on the initial load. If a user expands a group and it's content is taller than the actual grid height I'd like to show a scrollbar, since as of now some rows are inaccessible since there's no way to scroll down.

If the initial load is done with the groups expanded, the grid loads correctly with a scroll, but when a group that was collapsed on load is expanded, the scrollbar is not showing.

Is there a way for the grid to know when grouped content is being expanded beyond the grid's height so it displays a scrollbar?

If not, is there a way for me to set the scrollbar visible on the "OnGroupExpanding" client event, so I can scroll to the rows that are unaccesible beyond the grid's height?

Thanks!
Pavlina
Telerik team
 answered on 13 Dec 2012
3 answers
117 views
I am using you demo example of getting a radcontextmenu to display from the right-click of a radgrid's data row when the radgrid and radcontextmenu is used with a content page. The code works fine when in a straight asp page;however, in the content portion of the Master/content design it will not work. Below is the following javascript and markup:
<telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">        
    
<script type="text/javascript">
            
        
function RowContextMenu(sender, eventArgs)            {                
            
var menu = $find("<%=RadMenu1.ClientID %>");                
            
var evt = eventArgs.get_domEvent();                
            
if (evt.target.tagName == "INPUT" || evt.target.tagName =="A")               
            
{                   
                
return;               
            
}               

            
var index = eventArgs.get_itemIndexHierarchical(); 

             
document.getElementById("radGridClickedRowIndex").value =index;sender.get_masterTableView().selectItem(sender.get_masterTableView().get_dataItems()[index].get_element(), true);               

            
menu.show(evt);                

            
evt.cancelBubble = true;                

            
evt.returnValue = false;               

            
if (evt.stopPropagation)               
            
{                    
                    
evt.stopPropagation();                   
                    
evt.preventDefault();               
             
}            
    
}           

    
function openRadWindow(sender, args) {                
        
window.radopen("PopupDialog.aspx", "EditDialogWindow");            
        
}        

    
</script>    
    
</telerik:RadScriptBlock>
    In the javascript the error occurs at the point where menu.show(evt) is called. The error is: Object doesn't support this property or method.Please provide help if possible.Thanks,Steve Holdorf
Pavlina
Telerik team
 answered on 13 Dec 2012
7 answers
182 views
I am using the following RadComboBox to allow the user to lookup names from a long list.  Here is the sequence of events that describes the problem:

1. User types part of the name (Bob)
2. Combo filters values accordingly (let's say there are 2 Bob's)
3. User clicks on a value
4. The Combo dropdown is hidden
5. User decides to change what they typed from Bob to Tom
6. As the user begins typing Tom, the dropdown extends down, but not to its full height.  Since there were only 2 Bob's in the list, the list now shows 2 lines, not the full height of the dropdown.  And if there are 10 Tom's in the list, you can only see 2 of them unless you scroll down.
7. What I need is for the dropdown to once again extend to its full height, so it can show potentially 10 or even more values.

<telerik:RadComboBox ID="cboPatientList" runat="server" AllowCustomText="true" Filter="Contains" Width="100%" Height="400px" MaxHeight="400px" HighlightTemplatedItems="false" 
                ShowDropDownOnTextboxClick="true" ChangeTextOnKeyBoardNavigation="true" DropDownHeight="400px" EnableItemCaching="true" OnClientSelectedIndexChanged="PatientSelected"
                 >      
                <ItemTemplate>
                    <table style="width:90%" cellspacing="1" cellpadding="1">
                        <tr>
                            <td>
                                <%# sEncodedValue(Eval("FullName")) %>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </telerik:RadComboBox>     
            <asp:Button ID="btnResetPatientList" Text="Reset" runat="server" OnClientClick="ResetPatientList" UseSubmitBehavior="false"  />
            </div>
        </ContentTemplate>
    </telerik:RadWindow>
Tim Ammons
Top achievements
Rank 1
 answered on 13 Dec 2012
2 answers
60 views
HI, I would like to know how to retrieve text and value from an get_visibleItems object. I tried the following without success:

if (sender.get_visibleItems().length == 1) {
                 alert(sender.get_visibleItems(0).get_text());
                 alert(sender.get_visibleItems(0).get_value());
                 alert(sender.get_visibleItems(0).toString());
 }

Sorry to create a topic for this but it seems I cant find the answer anywhere.

TIA
Martin Roussel
Top achievements
Rank 1
 answered on 13 Dec 2012
1 answer
119 views
Is it possible to allow a user to dynamically resize a modal advanced form pop up?  I know the pop up can be dragged, but it seems like this would be desired functionality as well.  And really what I'm trying to accomplish is getting a scrollbar on my pop up when necessary.

I have a user who stated she was not able to see the bottom of the modal pop up and there was no scroll bar for the pop up.  I verified that by reducing the size of my browser window, there was no scrollbar on the pop up, and using the browser scrollbar made the modal pop up scroll with the page.  I was able to observe the same behavior on this demo.

Ideally, what I would like to do is have the pop up appear with a certain height and width for most users as I have now, but in the case where a user has a lower resolution or smaller browser window, allow them to see all of the fields.  At least allowing them to resize the pop up would force scrollbars.

Thanks,
Jason
Plamen
Telerik team
 answered on 13 Dec 2012
5 answers
252 views
Scratching my head on this one. I have a menu that should stretch across the page, so width:100%. That part works, the menu displays correctly.

What I would like to do is shift the root menu items to align from the right towards the left, leaving a space where they end.

Is this even possible?

Here is two images to help visualize what I need.

Thanks
Clyde
jlj30
Top achievements
Rank 2
 answered on 13 Dec 2012
5 answers
161 views
Today I have faced an issue, when I have added radeditor in my webpart like this:

<telerik:RadEditor runat="server" Width="536px" ID="reTemplate" ToolsFile="/_layouts/CISS/RadEditorTools/ToolsFile.xml"
                    ImageManager-ViewMode="Grid" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd">
                    <Paragraphs>
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header1 %>" Tag="<H1 class='Header1-Title'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header2 %>" Tag="<H2 class='Header2-Subtitle'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header3 %>" Tag="<p  class='Lead'>" />
                        <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,NormalText %>" Tag="<p>" />
                    </Paragraphs>
                    <Modules>
                        <telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" />
                        <telerik:EditorModule Name="RadEditorStatistics" Enabled="false" />
                    </Modules>
                    <Tools>
                        <telerik:EditorToolGroup>
                            <telerik:EditorDropDown Name="DropDown" Text="TreÅ›ci dynamiczne" ItemsPerRow="1"
                                PopupWidth="150" PopupHeight="90" Width="150">
                                <telerik:EditorDropDownItem Value="Title" Name="<%$ Resources:Nsp.SendEmail,InsertPageTitle %>" />
                                <telerik:EditorDropDownItem Value="Adres" Name="<%$ Resources:Nsp.SendEmail,InsertPageURL %>" />
                                <telerik:EditorDropDownItem Value="Path" Name="<%$ Resources:Nsp.SendEmail,InsertPagePath %>" />
                                <telerik:EditorDropDownItem Value="Date" Name="<%$ Resources:Nsp.SendEmail,InsertModificationDate %>" />
                            </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <CssFiles>
                        <telerik:EditorCssFile Value="/_layouts/STYLES/CISS/Skanska.Portal.UI/telerik/EditorContentArea.css" />
                    </CssFiles>
                </telerik:RadEditor>

After inserting the webpart to the page and clicking InsertImage button on the tools pane of radEditor, the dialog appeared with the following message:

Web.config registration missing! (... and some other information suggesting that I should perform Httphandler registration in web.config using smarttags.)

The problem is that I actually have following registrations in my web.config:

<httpHandlers>
      <remove verb="GET,HEAD,POST" path="*" />
      <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
    </httpHandlers>
...
<handlers>
      <remove name="OPTIONSVerbHandler" />
      <remove name="WebServiceHandlerFactory-Integrated" />
      <remove name="svc-Integrated" />
      <remove name="WebDAV" />
      <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" />
      <add name="OwssvrHandler" scriptProcessor="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" path="/_vti_bin/owssvr.dll" verb="*" modules="IsapiModule" preCondition="integratedMode" />
      <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
      <add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" />
      <add name="ReportViewerWebPart" verb="*" path="Reserved.ReportViewerWebPart.axd" type="Microsoft.ReportingServices.SharePoint.UI.WebParts.WebPartHttpHandler, Microsoft.ReportingServices.SharePoint.UI.WebParts, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
      <add name="ReportViewerWebControl" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      <add name="TelerikWebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
      <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" />
      <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />
      <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />
    </handlers>

And they work for the radeditor for sharepoint that shows up immediately  after entering edit mode. Still they do not seem to work for the second editor that appears in the webpart.

So to sum things up, I have two radeditors on the page, one coming from Sharepoint acceleration kit, working ok when it comes to opening dialogs, and another one instantiated directly in the aspx code of webpart, which does not work. Any ideas what should I do?

Thank  you in advance!

Adam
Rumen
Telerik team
 answered on 13 Dec 2012
1 answer
203 views
Hi.
 I have used RadNumericTextbox. see my screen shot.

Cum. Qty. field enter the text box value in 1,000.00 how to restrict the comma (i want this format 1000.00)


Advance & Thanks
Ansari
 
Vasil
Telerik team
 answered on 13 Dec 2012
3 answers
129 views
I am trying to get client-side data binding from a web service working for RadListView.  I am not getting any errors, but it doesn't seem to be binding.  I am using Newtonsoft JSON converter to generate the JSON response.

<telerik:RadListView ID="lvWall" runat="server" AllowPaging="false">
    <ClientSettings>
        <DataBinding ItemPlaceHolderID="itemPlaceholder">
            <LayoutTemplate>
                <ul id="itemPlaceholder"></ul>
            </LayoutTemplate>
            <ItemTemplate>
                <li>#= WallText #</li>
            </ItemTemplate>
            <DataService Location="~/Engine.asmx" DataPath="Wall" />
        </DataBinding>
    </ClientSettings>
</telerik:RadListView>

Here's the web service method:

[WebMethod]
public string Wall()
{
DataSet ds = new DataSet();
             
try
{
SqlCommand comm = new SqlCommand("xbCircled_Wall", conn);
comm.CommandType = CommandType.StoredProcedure;
comm.Parameters.Add(new SqlParameter("@userID", 7));
comm.Parameters.Add(new SqlParameter("@profileID", 9));
 
SqlDataAdapter adapter = new SqlDataAdapter(comm);
conn.Open();
adapter.Fill(ds);
}
catch (Exception ex)
{
//throw new ServiceException("Error desription here", ex);
}
finally
{
conn.Close();
}

return JsonConvert.SerializeObject(ds);
}

Here is the JSON response that I am getting:
{"d":"{\"Table\":[{\"WallID\":685,\"comments\":0,\"imageUrl\":\"http://www.bCircled.com/Assets/Uploaded-Photos/5b63d780-b01c-429b-9178-9efe4a4d8b84.jpg\",\"FromUserID\":9,\"FromFullName\":\"Jon Collins\",\"ToUserID\":9,\"ToFullName\":null,\"WallText\":\"A post to my own wall (status update) by Jon\",\"datePosted\":\"12 days ago\",\"actualDate\":\"2012-11-27T18:09:07.723\"}]}"}

Why is the binding not working?  Something simple I've missed?
Tsvetoslav
Telerik team
 answered on 13 Dec 2012
1 answer
80 views
Hopefully you wont take this as a "Please send me the codez" type post though I'm sure it's going to kind of look like one.

It's a simple application. Search for and select a patient. Show a bunch of bits of information about that patient. On a couple of the tabs show the many events that have happened to those patients. Operations for example.

I was given a skeleton of an application to work with that didn't have much on it besides some basic HTML data controls, a Telerik tab control with paging.

What I'd like help with is the big picture basic architecture of how to put that together using Telerik controls.

I'm using the Entity Framework for the Data Layer and I have that connected to the Operations grid in code.
Like this:
this.EntityDataSource2.WhereParameters.Clear();
this.EntityDataSource2.AutoGenerateWhereClause = true;
this.EntityDataSource2.WhereParameters.Add("PATIENT_ID", TypeCode.Int32, ddlSearchSSN.SelectedValue);
 
this.gridOperations.DataSource = EntityDataSource2;
this.gridOperations.DataBind();

So I fill up a combo box, pick the patient SSN from that combo box, populate all the HTML controls vie code and then filter and bind the grid for showing operations. All that is working (for read) but I think there has to be a better way.

Something like a parent control for the operations Grid that I can put all the HTML controls in. You know, like a Parent-Child grid relationship where the parent shows only one record that I can bind to a datasource.

Thanks,

MArk (Plz send hte codez) B.
Daniel
Telerik team
 answered on 13 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?