Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
127 views
Hi, I am using raddocks in one of my project. The problem is sometime I have to load around 150/200 docks on a page, which makes the page very slow. I have disabled view state as well for all of these docks but it's still slow.
Is there anyway I can make it quick. All the docks are not really big as well they only contain some text in title and some text in the content.
Any help suggestion would be helpfull.

Thanks
Atiq
Atiq Ur Rehman
Top achievements
Rank 1
 answered on 15 Aug 2008
3 answers
315 views
Hi,
I am using RadGrid ASP.NET Ajax 2008 Q2. Is that possible to change EditForm Controls dynamically on Edit Command depends on current dataType? I have a simple Grid with three columns as follows:
Name                            Value                Type
Installation date              12.12.2008        DateTime
newModemRequired       false                  Boolean
installation by                  myEmployee     String

Purpose:
1.  Select item to Edit.
2.  Get the DataType on selecttion
3.  Render EditForms on CreateColumnEditor
 protected void RadGrid1_CreateColumnEditor(object sender, GridCreateColumnEditorEventArgs e)  
         {  
              //string getDataTypeAtIndex(int index) => Extract Values from Grid item.  
             string myType=getDataTypeAtIndex(RadGrid1.SelectedItems[0].ItemIndex);  
                      
                     if (e.Column.UniqueName == "Value")  
                     {  
                         if (myType =="Boolean")  
                         {  
                             Telerik.Web.UI.GridCheckBoxColumnEditor boolFieldEditor = new Telerik.Web.UI.GridCheckBoxColumnEditor();  
                             e.ColumnEditor = boolFieldEditor;  
                         }  
                         else if (myType == "DateTime")  
                         {  
                             Telerik.Web.UI.GridDateTimeColumnEditor dateFieldEditor = new GridDateTimeColumnEditor();  
                             e.ColumnEditor = dateFieldEditor;  
                         }  
 
                        //String or Integer  
                         else 
                         {  
 
                             Telerik.Web.UI.GridTextBoxColumnEditor textFieldEditor = new Telerik.Web.UI.GridTextBoxColumnEditor();  
                             e.ColumnEditor = textFieldEditor;  
                         }  
                     }  
                 } 

That Code compiles but on runtime if I Click Edit Button I get an error like 'Message from server can not be parsed...'
Thanks for any help
ReneF
Top achievements
Rank 1
 answered on 15 Aug 2008
3 answers
157 views
The documentation on RadControls for ASP.NET.AJAX (revised 7/23/2008) mentions for RadEditor.CssFiles "Gets or sets the list of external CSS files that should be made available in the editor's content area." and demonstrates this in the samples.

However, the property is readonly, so assignment is not possible (anymore?). I guess the documentation is residue from former versions?
Rumen
Telerik team
 answered on 15 Aug 2008
6 answers
281 views
Greetings,

I've noticed while using the RadEditor, that if I copy text from a web page. (Say the text is blue) and then paste it into the rad editor, while in edit mode. The color pastes as black.

The only thing I can tell is when I paste from a frontpage site, the text turns black in edit mode. If I copy and paste something from a WSS 3.0 site, to MOSS the color stays.

Also after more digging, it might also be if a site uses style sheets for everything, the colors may not be applied?

Thanks!
Rumen
Telerik team
 answered on 15 Aug 2008
1 answer
191 views
Hi all

Is it possible to resize the RAD window from the code behind serverside of the window page ?

Best regards
Bo
Sophy
Telerik team
 answered on 15 Aug 2008
1 answer
241 views

Hi,
I can edit radgrid In Forms Editing Mode, then I can update all columns but I have problem with one column. "HİZMET KODU" column like "Products" have many items so user have to select on modal products form, instead of write product name manually.  I can not open radwindow on RadGrid. On the screenshot , I only open javascript modal window, but ı cant set value from this modal form to the radgrid edit form textbox. Are there any example for this situation ?

http://img393.imageshack.us/my.php?image=telerikkh4.jpg

Here is the source code:
<telerik:RadGrid ID="RadGrid1" runat="server"  Skin="Inox" AllowPaging="True" AllowSorting="True"
                     AutoGenerateColumns="False" Width="97%" OnNeedDataSource="RadGrid1_NeedDataSource"
                     AllowAutomaticDeletes="True"  AllowAutomaticUpdates="True"
                     OnDeleteCommand="RadGrid1_DeleteCommand" OnInsertCommand="RadGrid1_InsertCommand"
                     OnUpdateCommand="RadGrid1_UpdateCommand" OnDataBound="RadGrid1_DataBound" OnItemCreated="RadGrid1_ItemCreated" >
    <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
    <MasterTableView DataKeyNames="ORLREF" GridLines="None" Width="100%" CommandItemDisplay ="Top" >
        <Columns>
            <telerik:GridButtonColumn ConfirmText="Delete this product?" ButtonType="ImageButton"
                        ImageUrl="images/Delete.gif" CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
            </telerik:GridButtonColumn>
            <telerik:GridBoundColumn DataField="ORLREF" HeaderText="REF NO." UniqueName="ORLREF" ReadOnly="True">
            </telerik:GridBoundColumn>
           
            <telerik:GridTemplateColumn  HeaderText="HİZMET KODU" UniqueName="CODE">
                <EditItemTemplate>
                    <telerik:RadTextBox ID="textbox1" runat="server" Text='<%# Bind("CODE")%>'></telerik:RadTextBox>
                    <asp:Button Runat="server" ID="ServerButton" Text="Show dialog" cssclass="button" style="width:250px;" OnClick="ServerButton_Click"></asp:Button>
                </EditItemTemplate>
               
                <ItemTemplate>    
                    <%#Eval("CODE")%>    
                </ItemTemplate>
            </telerik:GridTemplateColumn>
           
            <telerik:GridBoundColumn DataField="DEFINITION_" HeaderText="A&#199;IKLAMASI" UniqueName="DEFINITION_">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="AMOUNT" HeaderText="MİKTAR" UniqueName="AMOUNT">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="PRICE" HeaderText="BİRİM FİYAT" UniqueName="PRICE">
            </telerik:GridBoundColumn>
           
            <telerik:GridTemplateColumn HeaderText="KDV DAHİL/HARİ&#199;" UniqueName="KDV">
                 <EditItemTemplate>    
                    <telerik:RadComboBox ID="RadComboBox1" AppendDataBoundItems="true" Height="200px" runat="server"    
                    DataTextField="KDV" DataValueField="KDV" SelectedValue='<%# Bind("KDV")%>'>     
                        <Items>    
                            <telerik:RadComboBoxItem Text="" Value="" />
                            <telerik:RadComboBoxItem Text="Hariç" Value="HARİÇ" />    
                            <telerik:RadComboBoxItem Text="Dahil" Value="DAHİL" />
                        </Items>    
                    </telerik:RadComboBox>    
                </EditItemTemplate>    
                <ItemTemplate>    
                    <%#Eval("KDV")%>    
                </ItemTemplate>  
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn DataField="VAT" HeaderText="KDV ORANI" UniqueName="VAT">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="TOTAL" HeaderText="TUTAR" UniqueName="TOTAL" ReadOnly="True">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="SPECODE" HeaderText="FATURALANACAK" UniqueName="SPECODE">
            </telerik:GridBoundColumn>
            <telerik:GridEditCommandColumn></telerik:GridEditCommandColumn>
        </Columns>
        <EditFormSettings ColumnNumber="2" CaptionFormatString="Satırı D&#252;zenle {0}" CaptionDataField="LOGICALREF">
            <FormTableItemStyle Wrap="False"></FormTableItemStyle>
            <FormCaptionStyle CssClass="EditFormHeader"></FormCaptionStyle>
            <FormMainTableStyle CellSpacing="0" CellPadding="3" Width="100%" />
            <FormTableStyle GridLines="Horizontal" CellSpacing="0" CellPadding="2" CssClass="module" Height="110px" Width="100%" />
            <FormTableAlternatingItemStyle Wrap="False"></FormTableAlternatingItemStyle>
            <FormStyle Width="100%" BackColor="#EEF2EA"></FormStyle>
                <EditColumn UpdateText="G&#252;ncelle" UniqueName="EditCommandColumn1" CancelText="D&#252;zenlemekten Vazge&#231;">
                </EditColumn>
            <FormTableButtonRowStyle HorizontalAlign="Right" CssClass="EditFormButtonRow"></FormTableButtonRowStyle>
        </EditFormSettings>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px"></HeaderStyle>
        </ExpandCollapseColumn>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <CommandItemSettings AddNewRecordText="Yeni Kayıt Ekle" />
    </MasterTableView>
    </telerik:RadGrid>

CodeBehind Source Code

protected

void ServerButton_Click(object sender, EventArgs e)

{

string popupScript = "<script language='javascript'>" +

"window.showModalDialog('SrvCards.aspx', 'CustomPopUp','dialogWidth:255px;dialogHeight:250px;scrollbars=yes'); " +

"</script>";

Page.RegisterStartupScript(

"PopupScript", popupScript);

}

Iana Tsolova
Telerik team
 answered on 15 Aug 2008
15 answers
233 views
Can we use Radspell Ajax in visual studio 2003, if so then please let me know what are the steps that I need to follow to configure it and run it.

Thanks in Advance
Venkat
Fani
Telerik team
 answered on 15 Aug 2008
3 answers
138 views
I have a set of cascading comboboxes that are working with Web Services without a problem.  I need to have values pre-selected in these comboboxes when the page loads.  I would like to make use of the web services that I use on the client to populate on the server side when the page loads.

Any ideas?
Yana
Telerik team
 answered on 15 Aug 2008
1 answer
92 views
Sir,
Can we purchase one or two controls alone?
Can we integrate the new controls with the old versions of rad controls(2007)?
Can we use both the old ones & new ones in the same project?
Plz reply

Thanks & Regards,

Kollam2003
Lidiya
Telerik team
 answered on 15 Aug 2008
3 answers
158 views
Hi,

I am creating all rad controls dynamically. More technical: I have encapsulated rad controls. But there is a problem in my following code, that is working on rad controls for asp.net with no problem.

MyContentToolbar.cs
  protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
          (this.Page.Master as IWebMaster).MasterPageControl.RegisterClientScript("PRO_SetMasterToolbar(" + this.InstanceClientID+ ");");             
        }

scripts.js
function PRO_SetMasterToolbar(toolbar)
{
    alert(toolbar); // alerts me null
    MasterToolbar = toolbar;
}

it alerts 'Object' in Rad for asp.net but alerts 'null' with rad for asp.net Ajax.

Regards
Caglar Ozkul



Georgi Tunev
Telerik team
 answered on 15 Aug 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?