Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
116 views
Hi,

Is there an inbuilt function or a way to use 2 different queries to grab the data that populates the Hierachical RadGrid 
- that is one to get the parent rows and the other to get only the child data corresponding to the parent row that is clicked (Currently a single query gets all the data) - I am trying to implement this because the dataset being passed is huge and this increases the loading time.This is kinda urgent,  I just wanted to know if this is possible or not. 

Thanks for any help.
Princy
Top achievements
Rank 2
 answered on 25 Jan 2013
2 answers
156 views
I have multi page with page vies:

 <telerik:RadMultiPage runat="server" ID="multipage" SelectedIndex="0">
    <telerik:RadPageView runat="server" ID="PageViewQS" CssClass="tab"> </telerik:RadPageView>
    <telerik:RadPageView runat="server" ID="PageViewCS" CssClass="tab"> </telerik:RadPageView>
 </telerik:RadMultiPage>

Css class:
.tab {
    padding: 10px;
    overflow: auto;
    height: 650px;
}

I want to change css height on client side using javascript. I tried this:
               $(document).ready(function () {
                    if (screen.height > 800) {
                        $('#multipage').css('height', '475px');
                        $('#PageViewQS').css('height', '475px');
                    }
                });

but id does not work.

Any ideas how can I do it?
Vitalii
Top achievements
Rank 1
 answered on 25 Jan 2013
1 answer
213 views
How can i change the font size of the text inside radtooltip? 
Shinu
Top achievements
Rank 2
 answered on 25 Jan 2013
10 answers
307 views
Our site works fine in IE, but when viewed in firefox or Chrome all off the RadComboBoxes extend way past their defined width and stretch off the screen. An example of the code is:

<asp:TableCell HorizontalAlign="Left" ColumnSpan="3">

 

 

 

<telerik:RadComboBox ID="cmbCountry" runat="server" AllowCustomText="false" AutoPostBack="true"    OnTextChanged="SelectCountryPrompts" TabIndex="1" Width="150" >

 

 

 

<Items>

 

 

 

<telerik:RadComboBoxItem runat="server" Text="Select Country" Value="Select" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="United States" Value="USA" />

 

 

 

<telerik:RadComboBoxItem runat="server" Text="Canada" Value="Canada" />

 

 

 

</Items>

 

 

</telerik:RadComboBox>

 

 

 

</asp:TableCell>

Which renders fine in IE. It does not matter what I change the width proprty to, the textbox is always extedns to the end of the screen in FireFox & Chrome.  All other controls render fine. Any help would be appreciated. Thank you

 

Ivan Zhekov
Telerik team
 answered on 25 Jan 2013
1 answer
110 views

I was updating the Telerik  controls and I installed the Telerik JustCode by mistake and I removed the JustCode.

Still my visual studio 2010 is not showing the automatic syntax checking and missing the squiggly line if there is any syntax  error. It happens after the installation  of Telerik  JustCode.

Can anyone tell me how can I get it back?

Thanks,

Jay

Zdravko
Telerik team
 answered on 25 Jan 2013
3 answers
1.7K+ views
Hi,

In my grid i would like to show Refresh button only,I don't like to show add new record button.For this what are the properties i need to set.

Please suggest me...
Claudia
Top achievements
Rank 1
 answered on 25 Jan 2013
1 answer
151 views
I found a curious issue just now.  I have a RadAsyncUpload control in an ASP.NET 4.5 project, and the upload works fine, but the FileFilter doesn't seem to be showing until after I've uploaded 1 file.

To be clear:
User clicks "Choose File", the dialog popups like in the attached "before.png" screenshot
or
User clicks Cancel on that popup and clicks "Choose File" again, and it appears again like in the attached "before.png" screenshot

However if the user actually selects a file and the file is uploaded, clicking on "Choose File" again, the user is presented with a dialog as shown in the "after.png" screenshot.

Plamen
Telerik team
 answered on 25 Jan 2013
1 answer
186 views
Hi,

I have a grid which is similar to the following demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx

In this grid I have Radbuttons which toggle on/off and adjust some figuress. On each toggle button I have a javascript function which calls a web service, which calls a store proc. After this I then attempt to rebind the grid on the client side like so
var masterTable = $find( result ).get_masterTableView();
            masterTable.rebind();

When I debug the project I get this error:
Specified argument was out of the range of valid values. Parameter name: ItemHierarchicalIndex

I'm also using the follow code to keep the nestedviews expanded, if I don't use it every change would cause the grid to collapse
void rg_ItemDataBound(object sender, GridItemEventArgs e)
    {
 
        //Expand all items using our custom storage
        string[] indexes = new string[this.ExpandedStates.Keys.Count];
        this.ExpandedStates.Keys.CopyTo(indexes, 0);
 
        ArrayList arr = new ArrayList(indexes);
        //Sort so we can guarantee that a parent item is expanded before any of
        //its children
        arr.Sort();
 
        foreach (string key in arr)
        {
            bool value = (bool)this.ExpandedStates[key];
            if (value)
            {
                rg.Items[key].Expanded = true;
                 
            }
        }
}
 
void rg_ItemCommand(object sender, GridCommandEventArgs e)
    {
         
        //if (e.CommandName == RadGrid.ExpandCollapseCommandName && !e.Item.Expanded)
        //{
        if (e.CommandName == RadGrid.ExpandCollapseCommandName)
        {
             
 
            this.ExpandedStates[e.Item.ItemIndexHierarchical] = true;
 
             
        }
    }
 
 private Hashtable _ordersExpandedState;
    private Hashtable ExpandedStates
    {
        get
        {
            if (this._ordersExpandedState == null)
            {
                _ordersExpandedState = this.Session["_ordersExpandedState"] as Hashtable;
                if (_ordersExpandedState == null)
                {
                    _ordersExpandedState = new Hashtable();
                    this.Session["_ordersExpandedState"] = _ordersExpandedState;
                }
            }
 
            return this._ordersExpandedState;
        }
    }


Thanks.




Andrey
Telerik team
 answered on 25 Jan 2013
7 answers
209 views

I'm experiencing an intermittent error when cancelling the loading of a RadChart. During the load of a chart I log out of the application which causes the session to clear. After that I do a redirect to a log in page. Sometimes it works with no problem and sometimes I get an error. It is not consistent and I am testing locally on my development server.

Here is the error:

Error loading Radchart image.
  You may also wish to check the ASP.NET Trace for further details.
  Display stack trace? 

Here are my configurations:

<!-- this is appsetting for chart image --> 
  <add key="ChartImage_axd" value="storage=session;timeout=20;dir=~\img\chartimage" />

<system.web>
    <httpHandlers>
      <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2011.1.413.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
    </httpHandlers>
    <httpRuntime maxRequestLength="2048000" executionTimeout="3600" />
    <sessionState timeout="60"/>

  </system.web>

<system.webServer>
    <handlers>
      <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" />
    </handlers>
  </system.webServer>

Do you have any ideas on how I can fix the intermittent error?

Thank you!

Ves
Telerik team
 answered on 25 Jan 2013
3 answers
103 views
How can editor mode tab buttons (preview, HTML, design) be changed in C# code?
- Toggle label on the button
- Change label text on button,
- Toggle icon,
- Change icon.
Rumen
Telerik team
 answered on 25 Jan 2013
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?