Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
266 views
Hello Sir,


I had used in radwindow in more pages.Now i want to change the left side default icon in all the pages.

How i will change the default left icon to my new icon.I want to need any script so i will apply in one user control or my main page so it will be effect to all other my pages, i don't want to change that icon path in all the pages.

So is there any script or css for it will effect to alll the pages?


Please help me.

Thanks & Regards
Jignesh Patel
Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
1 answer
116 views
HI!

I am using radwindow in my page. i want to set blue color for my radwindow . how can i do this?(not vista skin or webblue)
thanks in advance.

regards,
geetha.
Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
1 answer
156 views
Hi Friends,
I have a hyrarchichal radgrid with two parent detailtable and the last detailtable have 12 GridTableView, I bind my GridTableView on DetailTableDatabind event of radgrid on certain conditions after binding my GridTableView with datasource, Now i don't want to show a GridTableView which has no DataSource means does not have any records.
How can i achieve this, please let me know ASAP.
please find attached JPG image of grid.

Regards,
Manoj Gupta
Princy
Top achievements
Rank 2
 answered on 10 Oct 2011
2 answers
144 views
Dear Telerik Team,


I  added and modified our business logic in 'webmail' sample application source.

Now,I customized new skin with Visual Style Builder.

In ' webmail' sample application ,it uses skin.dll and how can I add my new skin to my current application.

Thanks & regards,
Aewin.

Aewin
Top achievements
Rank 1
 answered on 10 Oct 2011
1 answer
119 views
I have a radlistview that is binding to a object datasource, I cannot find out how to access that Object when the event on item created it fired off. Can anyone help. be at this for a few hours.
Iana Tsolova
Telerik team
 answered on 10 Oct 2011
1 answer
199 views
I have a screen with a radgrid that is filled using the NeedDataSource Event
protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
       {
           int count = 0;
           if (RadGrid1.MasterTableView.SortExpressions.Count > 0)
               RadGrid1.DataSource = GetEntities(RadGrid1.PageSize, RadGrid1.MasterTableView.CurrentPageIndex * RadGrid1.PageSize, RadGrid1.MasterTableView.FilterExpression,
                  RadGrid1.MasterTableView.SortExpressions[0].FieldName + " " + RadGrid1.MasterTableView.SortExpressions[0].SortOrderAsString(), out count);
           else
               RadGrid1.DataSource = GetEntities(RadGrid1.PageSize, RadGrid1.MasterTableView.CurrentPageIndex * RadGrid1.PageSize, RadGrid1.MasterTableView.FilterExpression, "", out count);
           RadGrid1.MasterTableView.VirtualItemCount = count;
       }
       private DataTable GetEntities(int maximumRows, int startRowIndex, string filterExpression, string sortExpression, out int count)
       {
           ClientDataContext db = new ClientDataContext();
           var query = from g in db.GovtEntityLogs
                       select new
                       {
                           g.GovtEntityLogID,
                           g.ClientID,
                           g.Client.ClientName,
                           g.EntityName,
                           g.StartDate,
                           g.EndDate,
                           g.InvestorTypeID,
                           g.InvestorType.InvestorType1,
                       };
           //Set filter expresion
           if (!String.IsNullOrEmpty(filterExpression))
           {
               query = query.Where(String.Format(@"{0}", filterExpression));
           }
           if (!String.IsNullOrEmpty(sortExpression))
           {
               query = query.OrderBy(sortExpression);
           }
           else
           {
               query = query.OrderBy("ClientName");
           }
           //Set the total row count
           count = query.Count();
           var pagedData = query.Skip(startRowIndex).Take(maximumRows);
           DataTable dt = new DataTable();
           dt = pagedData.ToADOTable();
           return dt;
       }

This works fine as long as I have the page setting
<%@ Page Title="" EnableViewState="false"

but when I Filter from multilpe columns it only sorts the last column selected.  When I change the EnableViewState to TRUE, I get an error in the Filter in Dynamic.cs
"No applicable indexer exists in type '<>f__AnonymousType50`12'"
When I look at teh filter expression it shows

"(Convert.ToString(it[\"ClientName\"]).ToUpper() = \"Capital Investment Advisory Services, LLC (CIAS)\".ToUpper())"

Am I missing something?


Iana Tsolova
Telerik team
 answered on 10 Oct 2011
1 answer
187 views
I have a RadDatePicker with the Calendar settings like so:

<telerik:RadDatePicker ID="RadDatePicker1" runat="server" ShowPopupOnFocus="true">
        <Calendar MultiViewColumns="2">
        </Calendar>
    </telerik:RadDatePicker>

As you can see I'm showing 2 months in the Calendar popup. I am able to select a date from the two months shown, but that's all I can do. The navigation doesn't work.

So my questions is, is this a supported scenario for the RadDatePicker or is it just limited to one month in the calendar popup?
Iana Tsolova
Telerik team
 answered on 10 Oct 2011
14 answers
771 views
Hi there, can it be that the version you provide for download is a bit out of date?

I am trying to follow the Radgrid example which says that for header tooltips you need to code this behaviour.
But as I was able to see this is now an optionof the header item in property builder.

Also it states that you have to import "Telerik.WebControls", I don't have that namespace ...

So is this a good idea if I use that "old" tutorial?

Thanks in advance for your help

Best regards

Thomas
Iana Tsolova
Telerik team
 answered on 10 Oct 2011
2 answers
154 views

In the Telerik documentation for the RadComboBox client object model it gives this information for clearing the selection.

ClearSelection


<script>
   function ClearSelection()
   {
       var combo = <%=RadComboBox1.ClientID %>;
       combo.ClearSelection();
   }
</script>

You can see this code on this page

http://www.telerik.com/help/aspnet/combobox/combo_client_model.html

This code does not work. The first line 'var combo....' fails to execute. Even having this code on the page gives me this error that appears as a little green line under the < character.

Expected Expression

I was able to fix this code with some jQuery (note my combo box has a different name.)

var combo = $find("<%#radCustomSearchDropdown.ClientID %>");

This line works as you can see in the attached image.  combo now points to the RadComboBox.

But my problem did not stop there.

Once this line is executed Firebug report the following error.

combo.ClearSelection is not a function

For reference my Combo Box looks like this

<telerik:RadComboBox
    ID="radCustomSearchDropdown" runat="server" Height="200px" Width="200px" DropDownWidth="350px"
    EmptyMessage="Custom Search"
    HighlightTemplatedItems="true"
    EnableLoadOnDemand="true"
    Filter="StartsWith"
    OnSelectedIndexChanged="radCustomSearchDropdown_SelectedIndexChanged"
    AutoPostBack="true">
    
    <ItemTemplate>
        <table style="width: 275px" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 260px;">
                    <strong><%# DataBinder.Eval(Container, "Attributes['Title']")%></strong>
                </td>
            </tr>
            <tr>   
                <td style="width: 260px;">
                    <i><%# DataBinder.Eval(Container, "Attributes['Description']")%></i>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

Note that I do have the RadComboBoxScripts.js file included in my page.

Where is combo.ClearSelection?

I just want a client side method to reset the combo box. Any help would be much appreciated.







Brad
Top achievements
Rank 1
 answered on 09 Oct 2011
0 answers
121 views
Hi,

for some simple use cases you might would like to take a look at link below.

Basically it's a custom css manager that can:
1) group styles and you can reference them by group name
2) cache on server and client
3) handle PerformSubstitution property.
4) minify stylesheet using AjaxMin

Currently it's the way I see to work with current Telerik controls, if you have turned off skins and embedded styles in web.config and would like to preload (if you are dynamically loading Telerik controls you will want to do that, otherwise some styles or resources might be loaded) everything (with server and client caching), also load styled RadEditor dialogs (if you have turned off skins and base stylesheets load in web.config for Telerik controls, e.g.: RadEditor's dialogs will not be styled when loaded).

Note that my goal was to preload customized LinkManager with styles, for other dialogs you will need to add proper references.
Note: my WebApp doesn't use skins

Article is here: http://weblogs.asp.net/evovision/archive/2011/10/09/implementing-a-custom-css-stylesheet-manager-and-taking-advantage-of-caching.aspx

Thank you!

P.S.: copyrighted by all .NET developers :)
P.S.S.: it was developed using coffee with milk and desire to go to bed earlier, so don't question code quality :)
Shukhrat Nekbaev
Top achievements
Rank 1
 asked on 09 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?