Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
I've discovered that calling set_height() on a splitter in the OnClientLoaded event causes a minor delay of at least 100ms. It's not much, but it's just enough that people seem to notice when they first visit each page - they find they can't click anything for the instant after the page loads and start to get frustrated, then the splitter finishes resizing and they are able to work.

I'm trying to make sure the splitter is tall enough to display all its content without scrolling the splitter. Is there a way around using javascript to do this? Maybe in the CSS, or with tweaks to the splitter itself? Barring that, is there a way to speed up the set_height() method? I'm willing to edit the native javascript files, but not without making sure I won't mess something up inadvertantly.

As a temporary fix, I've set VisibleDuringInit to false. It still takes 100ms+ for the splitter to appear, but when it does, it's fully formed and ready to be clicked upon. This does mean that some of the RadComboBox controls within the splitter render strangely (too short until you hover over them, and background image shows up incorrectly) but that, I can probably deal with in the CSS for the combo boxes.

So: Is there a way around using javascript to set the splitter to size with its contents? If so, how? Ideas welcome, even if they might not work - I'm willing to test anything.
Tsvetie
Telerik team
 answered on 29 Apr 2008
1 answer
84 views
How can i use Rad Chart 1.1 and Rad chart 2.0 in the same project, having both DLLs in the same project is causing an error

The type 'Telerik.WebControls.RadChart' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\cb6b6296\97481145\assembly\dl3\2c190d3e\007e1aa6_2937c801\RadChart.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\cb6b6296\97481145\assembly\dl3\9285be67\008e7391_ca0ac801\RadChart.Net2.DLL'

Thank you

Giuseppe
Telerik team
 answered on 29 Apr 2008
1 answer
136 views
Hi there,
In the older version of the RadGrid I was able to use this code below to Disable or Enable the commandItems inside a Nested Grid. This doesn't seem to work in the new RadGrid. I am calling this during the Grid's Prerender and it throws an error of "Index was outside the Bounds of the array."

Could this be because on preRender the Child Items are not expanded?
 

foreach (GridDataItem masterItem in policyGrid.MasterTableView.Items)   
{  
  if (masterItem.HasChildItems)   
  {  
   GridCommandItem commandItem = (GridCommandItem)masterItem.ChildItem.NestedTableViews[0].GetItems(GridItemType.CommandItem)[0];  
   commandItem.Enabled = blnEditable;  
   }  
} 

Thanks.
Yavor
Telerik team
 answered on 29 Apr 2008
2 answers
124 views
Hey!

My page is in blue, I set BackColor for chart in Transparent, but the background of chart is still white. What I must do in order to background of chart be in the same color as a page.

Thank you, Igor.
Giuseppe
Telerik team
 answered on 29 Apr 2008
1 answer
108 views
I  have set  imageurl  property to some  url and after sometime if i m trying to set it some other image url then its not taking that ,its taking some value form webresource.axd file .
same issue i found in RadComboBox

VERY URGENT

regards
sanjeev
Dimo
Telerik team
 answered on 29 Apr 2008
1 answer
206 views
Hi,

I am using RadGrid's (4.6.2.0) that have a few text boxes, an edit link, and a delete link.  I use them through out my site.  I am not using ajax and I am editing inline.

While editing with the focus in one of the textfields I hit the return key and the page posts back but when it's finished reloading it is still in edit mode and displays the original values, not the one I just changed.

I'd like to have either one of two ethings happen when I hit Enter, either the page does nothing (like your demo) or it calles the Update. 

Whats the best way to correct this site wide?

Thanks,

RobT
Yavor
Telerik team
 answered on 29 Apr 2008
1 answer
173 views
Is it possible to change the default time on an instance of  raddatepicker.  for instance if 04/25/2008 is chosen the selectedvalue.tostring = 4/25/2008 12:00:00 AM.  i would like to change that time to always default to 11:59:00 PM. 

is that possible?

thanks in advance for you help!
Maria Ilieva
Telerik team
 answered on 29 Apr 2008
1 answer
191 views
I'm trying to get the Drap & Drop example to work with a MaterPage.

I've edited the FindForm code in the the XhtmlPage.cs class with this:
ControlCollection targetCollection = null;

            if ( Master != null )
                targetCollection = Master.Controls;
            else
                targetCollection = Controls;//


But I still can not get the code to function properly.

Any ideas on what else needs to be changed for this to work. This is the last hurdle I'm trying to prototype before being able to purchase a license.
thanks,
Voss.
Rosen
Telerik team
 answered on 29 Apr 2008
3 answers
163 views
I've got my insert/deletes working fine, but the update command is being fired with my original values, not the updated ones.

(That is, Field 1 has value of 5. I edit it and change to 55. The update stored procedure is called and is called with a value of 5 rather than 55).

Any ideas? This has had me stumped for days and I feel sure its something simple. I've made sure my parameter names are all the same, but I'm still missing something.

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomaticDeletes="True"  
    AllowAutomaticInserts="True" AllowAutomaticUpdates="True"  
    AutoGenerateColumns="False" DataSourceID="CodingView" GridLines="None"  
    ShowFooter="True" Skin="Vista" Width="770px" ENABLEAajax ="true"  
    DataKeyNames="Counter" GroupingEnabled="False" > 
<ExportSettings> 
<Pdf PaperSize="Letter" FontType="Subset"></Pdf> 
 
<Excel Format="Html"></Excel> 
</ExportSettings> 
 
<MasterTableView CurrentResetPageIndexAction="SetPageIndexToFirst" Dir="LTR" Frame="Border"  
TableLayout="Auto" CommandItemDisplay="Bottom"  datakeynames="Counter"  AutoGenerateColumns="False" 
datasourceid="CodingView" editmode="InPlace"> 
<RowIndicatorColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False"> 
<HeaderStyle Width="20px"></HeaderStyle> 
</RowIndicatorColumn> 
 
<ExpandCollapseColumn CurrentFilterFunction="NoFilter" FilterListOptions="VaryByDataType" Visible="False" Resizable="False"> 
<HeaderStyle Width="20px"></HeaderStyle> 
</ExpandCollapseColumn> 
 
    <Columns> 
    <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn"> 
                        <ItemStyle CssClass="MyImageButton" /> 
                    </telerik:GridEditCommandColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="ClientNum"  
            FilterListOptions="VaryByDataType" ForceExtractValue="None" HeaderText="Client"  
            SortExpression="ClientNum" UniqueName="ClientNum"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Inpatient"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="Inpatient" SortExpression="Inpatient"  
            UniqueName="Inpatient"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="Obs"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="Obs" SortExpression="Obs" UniqueName="Obs"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="AmbSurg"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="ASC" SortExpression="AmbSurg"  
            UniqueName="AmbSurg"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="ED"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="ED" SortExpression="ED" UniqueName="ED"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="EDwithEM"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="ED/EM" SortExpression="EDwithEM"  
            UniqueName="EDwithEM"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="IR"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="IR" SortExpression="IR" UniqueName="IR"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="IRwithSI"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="IR w/SI" SortExpression="IRwithSI"  
            UniqueName="IRwithSI"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="PM"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="PM" SortExpression="PM" UniqueName="PM"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="WC"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="WC" SortExpression="WC" UniqueName="WC"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter" DataField="ANcillary"  
            DataType="System.Int16" FilterListOptions="VaryByDataType"  
            ForceExtractValue="None" HeaderText="Ancillary" SortExpression="ANcillary"  
            UniqueName="ANcillary"> 
        </telerik:GridBoundColumn> 
        <telerik:GridBoundColumn CurrentFilterFunction="NoFilter"  
            DataField="Abstracting" DataType="System.Int16"  
            FilterListOptions="VaryByDataType" ForceExtractValue="None"  
            HeaderText="Abstracting" SortExpression="Abstracting" UniqueName="Abstracting"> 
        </telerik:GridBoundColumn> 
         <telerik:GridButtonColumn ConfirmText="Delete this entry?" ButtonType="ImageButton" 
                        CommandName="Delete" Text="Delete" UniqueName="DeleteColumn"> 
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" /> 
                    </telerik:GridButtonColumn> 
    </Columns> 
 
<EditFormSettings editformtype="Template"> 
 
 
        <EditColumn ButtonType="ImageButton" 
            UpdateImageUrl="Images\Save.gif" EditImageUrl="Images\Save.gif" InsertImageUrl="Images\Save.gif" CancelImageUrl="Images\Cancel.gif" 
            InsertText="Insert Order" UpdateText="Update record" UniqueName="EditCommandColumn1" CancelText="Cancel edit"> 
        </EditColumn> 
 
</EditFormSettings> 
</MasterTableView> 
                </telerik:RadGrid> 



Rosen
Telerik team
 answered on 29 Apr 2008
2 answers
244 views
I have a radWindowManager on my page, it is used to allow edits and additions of items in my gridview on the main page.

using the OnClientClose property of the RadWindow i am calling __doPostBack('UpdatePanel1',''); to refresh the updatepanel which contains my gridview.

i get the following error...

Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request

it works fine if i dont use a radwindowmanager and just use a basic popup window.


Guy
Top achievements
Rank 1
 answered on 29 Apr 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?