Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
Before upgrading to the ASP.NET Ajax Controls, I was able to set the height of the header for a sliding pane by creating a custom skin. I have been trying to replicate this with the Ajax controls, with no luck so far.

Looking at the markup that is rendered to the browser, the slide header appears to be contained in a table row with the class name rspSlideHeader. I have tried setting the height for this class, and for any child td tags, to 20px. However when I view the page, the slide header still appears to have a height of about 25px. I cannot figure out where the extra 5 pixels is coming from. I have also tried setting padding and margin to 0 in a bunch of places.

I am creating my skin by editing the Outlook skin. Can you please advise how I can modify that skin so that a sliding pane will have a header with a height of 20px.

Thanks,
Kory
Kory
Top achievements
Rank 1
 answered on 27 Sep 2009
7 answers
139 views
Hi,

Quick question, can I use fields of varchar as seeds for an auto generated tree hierarchy, such as -

RadTreeView1.DataFieldID =

"pagename";

 

RadTreeView1.DataFieldParentID =

"parentpagename";

 

RadTreeView1.DataTextField =

"pagename";

 

RadTreeView1.DataValueField =

"pagename";

Thanks
Matt

 

Matt
Top achievements
Rank 1
 answered on 27 Sep 2009
1 answer
53 views
Hi

I want remove case sensetive from  grid filtering . How can i do that?

lakmal

Daniel
Telerik team
 answered on 27 Sep 2009
1 answer
71 views
How to hide the grid's header
Daniel
Telerik team
 answered on 27 Sep 2009
2 answers
432 views

Hello,

 

I have three RadListBoxes on a page. First one is populated by a SQLDataSource. When an item is clicked on the first RadListBox, I want the item to add to the other two listboxes.  The problem is that only one RadlistBox will populate with the selected item depending on which list box is last in the procedure.

I’m using VS 2008, and RadControls version: 2009.2.826.35

 

Sample ASP:


<telerik:RadListBox ID="RadListBox1" runat="server" DataSourceID="dsEDBRecords" AllowDelete="true"  Style="text-align: left;" AutoPostBack="true" DataTextField="FIELDNAME" DataValueField="UVALUE" Height="150px" Width="200px" OnSelectedIndexChanged="SetValue1" SelectionMode="Single"  > </telerik:RadListBox> 
 
<telerik:RadListBox ID="RadListBox2"  runat="server" AllowDelete="false" Style="text-align: left;"  AutoPostBack="true" Height="150px" Width="200px"></telerik:RadListBox> 
 
<telerik:RadListBox ID="RadListBox3" runat="server" AllowDelete="false" Style="text-align: left;" AutoPostBack="true" Height="150px" Width="200px" ></telerik:RadListBox> 
 

CODE BEHIND:
Protected Sub SetValue1(ByVal sender As Object, ByVal e As System.EventArgs)  
        Dim lbListBox As RadListBox = sender 
        Dim strItem As RadListBoxItem = lbListBox.SelectedItem  
        Dim strItem1 As RadListBoxItem = lbListBox.SelectedItem  
 
        RadListBox3.Items.Add(strItem)  
        RadListBox3.ClearSelection()  
        RadListBox2.Items.Add(strItem1)  
        RadListBox2.ClearSelection()  
End Sub  
 

Thanks in advance for all assistance.

Doug
Doug Arneson
Top achievements
Rank 1
 answered on 26 Sep 2009
4 answers
209 views
Hello,

We are getting the following error on a page where we have a RadDatePicker on the form during postback. I am wondering if this has something to do with differences in locale between the user and the browser but am not sure. Has anyone encountered this before?

Thanks,
Eric

--------------------------------------------

Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks.
Parameter name: ticks
   at System.DateTime..ctor(Int64 ticks, DateTimeKind kind)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeStringIntoDateTime()
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeDictionary(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.DeserializeInternal(Int32 depth)
   at System.Web.Script.Serialization.JavaScriptObjectDeserializer.BasicDeserialize(String input, Int32 depthLimit, JavaScriptSerializer serializer)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize(JavaScriptSerializer serializer, String input, Type type, Int32 depthLimit)
   at System.Web.Script.Serialization.JavaScriptSerializer.DeserializeObject(String input)
   at Telerik.Web.UI.RadWebControl.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at Telerik.Web.UI.RadDatePicker.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Laku
Top achievements
Rank 1
 answered on 26 Sep 2009
1 answer
40 views
Hi,

I am using the Rad Grid to export the Grid Data in CSV format by using the inbuilt method of RADGrid : radGrid.MasterTableView.ExportToCSV() on a button click.

If the Client Explorer is IE7 it displays three buttons : Open , Save , Cancel . Also the file name is the name that was supplied using the :
RadGrid.ExportSettings.FileName

But if the Client Explorer is IE6 it displays only 2 buttons : Save and Cancel. Moreover the file name is the name of the Code Class Name with .aspx extension. for Ex : clsExportData.aspx.

Any clues what could be the Problem with this behaviour in ie6.

Regards,
Kunal Mittal


Daniel
Telerik team
 answered on 26 Sep 2009
1 answer
85 views
Hi,

I have a RadGrid in which I've setup grouping using GroupLoadMode="Client".  When I group on two fields and the second field has data which is lengthy, occasionally the data is displayed offset in the grid somewhere when the group is collapsed.  Screenshots available here.

Any help is much appreciated!

Debbie
Iana Tsolova
Telerik team
 answered on 26 Sep 2009
1 answer
132 views

Folks,

I have a   Heirarchical Grid (MasterTableView  and  DetailTables both uses FormTemplate). Is it possible while I am in DetailTable Edit/Insert mode, populate a label named (MasterTableUserFullName) in DetailTable with the Last+FirstName column values from MasterTableView?

In my RadGrid1_ItemDatabound event, I am able to populate that label (MasterTableUserFullName) with a string “Hellow World” but unsucessful to populate it with MasterTableView Last+FirstName Values.

Below is my code. Any help will be appreciated.

Thanks

protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)

        {

 

            if ((e.Item is GridEditableItem && e.Item.IsInEditMode))

            {

                GridDataItem parentItem = e.Item.OwnerTableView.ParentItem as GridDataItem;

                if (parentItem != null)

                {

                    GridEditableItem item = (GridEditableItem)e.Item;

 

                                     

                    Label txt = (Label)item.FindControl("MasterTableUserFullName");

 

                    txt.Text =  "Hellow World"; // This Works ...

                                      // but need to update the label Box with MasterTableView Last + First Name Values.

                   

                }

 

            }

      }

 

 _____________________________

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowAutomatic Inserts/Deletes/Updatess ="True" onitemdatabound="RadGrid1_ItemDataBound">           

      

<MasterTableView datakeynames="UserTablePrimaryKey" datasourceid="SqlDataSource1"  AllowFilteringByColumn = "true" CommandItemDisplay="TopAndBottom">

   

<!—Beginning Block of Child DetailTable -->

<DetailTables>

        <telerik:GridTableView runat="server" DataSourceID="SqlDataSource2" DataKeyNames="UserLocationsPrimaryKey"

                Width="100%"  CommandItemDisplay= "TopAndBottom" Name = "Detail" AllowAutomatic Inserts/Deletes/Updates ="True">

                <ParentTableRelation>

                <telerik:GridRelationFields DetailKeyField="UserTableForeignKey" MasterKeyField="UserTablePrimaryKey" /> </ParentTableRelation>

                

 <Columns>

        <telerik:GridBoundColumn DataField="UserTableForeignKey" 

            DataType="System.Int32" HeaderText="UserTableForeignKey"

            SortExpression="UserTableForeignKey" UniqueName="UserTableForeignKey"

                    Display="False" ReadOnly="True" Visible="False">

        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="Program" HeaderText="Program" HeaderStyle-Width="50%"

            SortExpression="Program" UniqueName="Program" >

<HeaderStyle Width="50%"></HeaderStyle>

        </telerik:GridBoundColumn>

             .

             .

             .

 

    </Columns>

   

   <EditFormSettings EditFormType="Template">

<EditColumn UniqueName="EditCommandColumn1"></EditColumn>

    <FormTemplate>

    <table id="Table1" cellspacing="2" cellpadding="1" width="100%" border="0" rules="none"

                            style="border-collapse: collapse; background: white;">

                            <tr>

                                <td colspan="2" style="font-size:small;  z-index:0;  font-family:Bookman Old Style; color:#669999">

                                <asp:Label ID="MasterTableUserFullName"  runat="server" Text="User Location" Font-Underline="True"> 

               </asp:Label> 

                                  </td>

                            </tr>

             .

             .

             .

                     

   </table>

   

    </FormTemplate>

    </EditFormSettings>

   

        </telerik:GridTableView>

       

    </DetailTables>

 

<!—Ending Block of Child DetailTable -->

 

<!—Beginning Block of MasterTableView -->

 

    <Columns>

        <telerik:GridBoundColumn DataField="UserTablePrimaryKey"

            DataType="System.Int32" HeaderText="UserTablePrimaryKey" ReadOnly="True"

            SortExpression="UserTablePrimaryKey" UniqueName="UserTablePrimaryKey"

            Visible="False">

        </telerik:GridBoundColumn>

       

        <telerik:GridBoundColumn DataField="Last_Name" HeaderText="Last Name"

            SortExpression="Last_Name" UniqueName="Last_Name">

            <HeaderStyle Width="18%" />

            <ItemStyle Width="18%" />

        </telerik:GridBoundColumn>

        <telerik:GridBoundColumn DataField="First_Name" HeaderText="First Name"

            SortExpression="First_Name" UniqueName="First_Name">

            <HeaderStyle Width="18%" />

            <ItemStyle Width="18%" />

        </telerik:GridBoundColumn>

             

    </Columns>

    <EditFormSettings EditFormType="Template">

    <FormTemplate>

   

    <table id="Table2">

                                       

       <tr>

         <td>

           Last Name</td>

         <td>

          <asp:TextBox ID="TxtLast_Name" runat="server" Text='<%# Bind( "Last_Name") %>' TabIndex="1"> </asp:TextBox>

                                       

         </td>

                                                

         <td>

         First Name</td>

         <td>

         <asp:TextBox ID="TxtFirst_Name" runat="server" Text='<%# Bind( "First_Name") %>' TabIndex="2"> </asp:TextBox>

         </td>

                    

     </tr>

             .

             .

             .

 

   </table>

   

    </FormTemplate>

    </EditFormSettings>

    .

           .

    .

</MasterTableView>

 

<!— Ending Block  of MasterTableView -->

       

</telerik:RadGrid>

Martin
Telerik team
 answered on 26 Sep 2009
1 answer
75 views
When I place Radcombobox as itemtemplate in radgrid ( 3 columns) and Radgrid has 15 rows.Its taking almost 30 seconds to render the grid.and moreover if  I give AllowPaging="True".The comboboxes are not getting rendered properly.Please suggest.
Martin
Telerik team
 answered on 26 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?