Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
129 views
Hello, I am saving a value for a friendly search engine url string.
I am doing a site that is displaying news and I want the news to be easily read by google or yahoo.
So instead of having:
News.aspx?id=334
I want to have:
News.aspx?id=tropical-storm-forms-in-caribbean
I am wanting to save the "tropical-storm-forms-in-caribbean" part in a database field.  I want to use RadMaskedTextBox for the user to enter it, but I can't seem to figure out what mask to use.

Is it possible?  The AjaxControlToolKit has an extender for the TextBox control where you set validchars="abcdefghijklmnopqrstuvwxyz-" and you are done.

Is it something similar here? 

Thanks a lot!!
Kevin Babcock
Top achievements
Rank 1
 answered on 22 Jul 2008
8 answers
213 views
Are there plans to bring the RAD Rotator control into the ASP.NET AJAX control suite? I was disappointed to see that I have to go back to the old controls to make a nice image gallery control.
Kevin Babcock
Top achievements
Rank 1
 answered on 22 Jul 2008
2 answers
156 views
Hi,

I like 'telerik controls' and most importantly 'Support'. I am about to buy telerik suit for my CM system.

I need 'vertical slider menu control', The menu which opens down to Parent menu in slider effects. Yes,i am using vertical menu which opens on right side.

Can any body guide me, weither telerik has slider menu control or not ?

Hope to hear you fast.

Aamir
Aamir
Top achievements
Rank 1
 answered on 22 Jul 2008
2 answers
110 views
Hi all,

I have an user control which have a textbox and a button, when i clicked the button it opens a Rad window that returns a value to the textbox.

I need to add this control in my grid, so I have my tamplate column and in the item template i have a label that displays a value of the datasource, but in editing mode i need to display the UC that i described at the top. here is my column code:
<telerik:GridTemplateColumn HeaderText="Name M" 
SortExpression="NameM" UniqueName="NameM"
  EditFormColumnIndex="1">
      <HeaderStyle Width="80px" />
      <ItemTemplate>
           <asp:Label runat="server" ID="lblName"
Text='<%# Eval("Name") %>'>
</asp:Label>
      </ItemTemplate>
  <EditItemTemplate>
           <uc1:TextboxMaster ID="TextboxMaster1" runat="server" />
      </EditItemTemplate>
</telerik:GridTemplateColumn>

The label shows the correct value, but when i enter in editing mode it shows the control, but it didnt works, when i click the button it looks like if an event ocurrs but the window doesnt display. Also if i add the control outside the grid it works fine, what could be the problem??? ....

also i tried with :         

<EditFormSettings UserControlName="/Modules/TextboxMaster.ascx"
EditFormType="WebUserControl">
<EditColumn UniqueName="EditCommandColumn2"></EditColumn>

</EditFormSettings>
but i've got the same problem

thanks for all i really appreciate your help
Daniel
Top achievements
Rank 1
 answered on 21 Jul 2008
1 answer
83 views
I can't believe we're the only ones who've ever encountered this, but repeated searches haven't uncovered any reference to this problem. We have a RadMenu with its flow set to horizontal. It displays across the top of the  page in IE7 and in FireFox, but in IE6, the menu items are displayed vertically, one atop the other. I think this must be because the menu items are in list item tags and whatever the CSS directive is, it doesn't have the desired effect in IE6. Is this a known issue and if so, is there a known fix to go with it? I can post screenshots if necessary, but it's basically like this:

IE7
MenuItem1  MenuItem2  MenuItem3

IE6
MenuItem1
MenuItem2
MenuItem3

Thanks,
Matt Hicks
Matthew
Top achievements
Rank 1
 answered on 21 Jul 2008
2 answers
217 views
I have a simple grid with 2 bound columns and 1 unbound column.

My unbound column has a label that is populated server side from some stringbuilder data where sorting would not make sense.

I can set AllowSorting="false" on the bound columns but not the unbound column.
So the unbound column, which I do not want sorting enabled, is rendered with a sortable header link.
Why doesn't the unbound column have the AllowSorting property? I think it would make a lot of sense to have that for an unbound column.

Right now, server side, I am having to delve into all the child controls of the grid till I get the sorting header LinkButton for that column and then I set OnClientClick="return false;"

Is there an easy way to turn off sorting for just the unbound GridTemplateColumn while still being able to sort the bound columns?


here's my grid:

<RadControl:RadGrid ID="RadGridUsers" runat="server" Skin="Default" Width="511px" Height="564px" BorderWidth="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="False" AllowPaging="False" AllowSorting="True" EnableEmbeddedSkins="false">

<ClientSettings ReorderColumnsOnClient="False" AllowDragToGroup="False" AllowColumnsReorder="False" Selecting-AllowRowSelect="true">

<Scrolling AllowScroll="true" UseStaticHeaders="true" />

<Selecting AllowRowSelect="True"></Selecting>

<Resizing AllowRowResize="False" EnableRealTimeResize="False" ResizeGridOnColumnResize="False" AllowColumnResize="False"></Resizing>

<ClientEvents OnRowSelected="RadGrid_RowSelected" /></ClientSettings>

<MasterTableView DataKeyNames="UserProfileId,FidelityId" ClientDataKeyNames="UserProfileId,FidelityId" GroupLoadMode="Client" AllowMultiColumnSorting="False" AllowNaturalSort="false">

<SortExpressions>

<RadControl:GridSortExpression FieldName="LearningCenterId" SortOrder="Ascending" />

</SortExpressions>

<NoRecordsTemplate>

<div style="text-align: center; height: 300px">

<asp:Label ForeColor="RoyalBlue" Font-Size="14" runat="server" ID="Label1">There are no items to display</asp:Label>

<br />

</div>

</NoRecordsTemplate>

<Columns>

<RadControl:GridBoundColumn UniqueName="Name" SortExpression="Name" HeaderText="Employee Name" DataField="Name" ShowSortIcon="true">

<HeaderStyle Width="25%" Wrap="false" HorizontalAlign="left" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>

</RadControl:GridBoundColumn>

<RadControl:GridTemplateColumn UniqueName="Details" SortExpression="Details" HeaderText="Details" ShowSortIcon="false">

<HeaderStyle Width="50%" Wrap="false" HorizontalAlign="left" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>

<ItemTemplate>

<asp:Label ID="lblGridDetails" runat="server" Text="&nbsp;"></asp:Label>

</ItemTemplate>

</RadControl:GridTemplateColumn>

<RadControl:GridBoundColumn UniqueName="Title" SortExpression="Title" HeaderText="Title" DataField="Title" ShowSortIcon="true">

<HeaderStyle Width="25%" Wrap="false" HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>

<ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>

</RadControl:GridBoundColumn>

</Columns>

</MasterTableView>

</RadControl:RadGrid>



Thanks,
RjD
Sir
Top achievements
Rank 1
 answered on 21 Jul 2008
3 answers
191 views
Hi.  Is there a way to Export the data from a Filtered Grid without exporting the controls in the Command Item Template?  The ExportDataOnly does not appear to do the trick.

Everything about Exporting is working great from within the command item template until I apply a filter.  The controls are being exported and look horrible (not rendered properly, etc). 

Two side notes: 1) Exporting to CSV works fine with the filter (no controls) and 2) PDF's simply don't work- I get a "System.SystemException: Telerik.Web.Apoc.ApocException: fo:block must be child of fo:basic-link ... " exception.

My grid's item command method:
           case "Export":  
                {  
                    GridCommandItem item = e.Item as GridCommandItem;  
                    CheckBox cbIgnorePaging = item.FindControl("cbIgnorePaging") as CheckBox;  
                    RadComboBox rddlExport = item.FindControl("rddlExport") as RadComboBox;  
 
                    rgDigitalCertificateAssignments.ExportSettings.OpenInNewWindow = true;  
                    rgDigitalCertificateAssignments.ExportSettings.ExportOnlyData = true;  
                    rgDigitalCertificateAssignments.ExportSettings.IgnorePaging = cbIgnorePaging.Checked;  
                    rgDigitalCertificateAssignments.ExportSettings.FileName = "CertificateHistory";  
 
                    switch (rddlExport.SelectedValue)  
                    {  
                        case "excel":  
                            {  
                                rgDigitalCertificateAssignments.MasterTableView.GridLines = GridLines.Both;  
                                rgDigitalCertificateAssignments.ExportSettings.Excel.Format = GridExcelExportFormat.Html;  
                                rgDigitalCertificateAssignments.MasterTableView.ExportToExcel();  
 
                                break;  
                            }  
                        case "word":  
                            {  
                                rgDigitalCertificateAssignments.MasterTableView.ExportToWord();  
                                break;  
                            }  
                        case "csv":  
                            {  
                                rgDigitalCertificateAssignments.ExportSettings.Csv.ColumnDelimiter = GridCsvDelimiter.Tab;  
                                rgDigitalCertificateAssignments.MasterTableView.ExportToCSV();  
                                break;  
                            }  
                        case "pdf":  
                            {  
                                rgDigitalCertificateAssignments.ExportSettings.Pdf.AllowAdd = false;  
                                rgDigitalCertificateAssignments.ExportSettings.Pdf.AllowCopy = true;  
                                rgDigitalCertificateAssignments.ExportSettings.Pdf.AllowModify = false;  
                                rgDigitalCertificateAssignments.ExportSettings.Pdf.AllowPrinting = true;  
                                
                                rgDigitalCertificateAssignments.MasterTableView.ExportToPdf();  
                                break;  
                            }  
                    }                      
                    break;  
                }  
        } 
Please advise.

Thank you,
Tom
Thomas Hundley
Top achievements
Rank 1
 answered on 21 Jul 2008
2 answers
167 views
Hi,

I successfully implement a navigation using panelbar and a sitemap datasource.
Almost everthing works fine.
I navigate to a page (however) and the link is display in the panelbar.
Expanding - collapsing - everthing works.

AS LONG AS the url is exactly the same as in the datasource.

My Problem - sometimes pages are called with parameters.
So /MyPage.aspx becomes /MyPage.aspx?Parm=Something

At this moment the panelbar no longer selects the current page.
I understand that this is beause of string matching.

But is there a way to have the panelbar work regardles if a parameter is specified or not?

Or does the problem come from the sitemap datasource which does not show a "selected record"?
If so - has anyone an idea how to overcome this?

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 21 Jul 2008
7 answers
460 views
working in an EditFormTemplate within a radgrid. I am trying to bind the SelectedDate.
 <td style="width: 8px; height: 42px;">  
            <telerik:RadDatePicker    SelectedDate='<%# Bind("DOB") %>' 
             ID="tbBdate" runat="server" Culture="English (United States)" MinDate="1920-01-01">  
                
            </telerik:RadDatePicker> 
        </td> 
 
 

I have also tried SelectedDate='<%# DataBinder.Eval(Container.DataItem,"DOB") %>'

I seem to always be having problems with this ctrl.

thanks
Mac

this is my current error
Specified cast is not valid.   
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.   
 
Exception Details: System.InvalidCastException: Specified cast is not valid.  
 
Source Error:   
 
 
Line 97:             DOB (if avail)</td> 
Line 98:         <td style="width: 8px; height: 42px;">  
Line 99:             <telerik:RadDatePicker    SelectedDate='<%# Bind("DOB") %>' 
Line 100:             ID="tbBdate" runat="server" Culture="English (United States)" MinDate="1920-01-01">  
Line 101:                
   
 


mac
Top achievements
Rank 1
 answered on 21 Jul 2008
3 answers
180 views
I have seen where I can set a global skin (in the webconfig) for a control.  Can this be done with custom skins as well?  I have tried it for a grid.  The grid displayed correctly until I went to add/edit a record then all of the controls in the edit section (radcombobox, radnumberictextbox, radeditor) were all missing their images.  Is there something else I need to do to get this to work?

<appSettings>
  <add key="Telerik.Grid.Skin" value="DWDS"/>
    <add key="Telerik.Editor.Skin" value="DWDS"/>
    <add key="Telerik.Input.Skin" value="DWDS"/>
  </appSettings>
Dimo
Telerik team
 answered on 21 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?