Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
156 views
I am using web20 skin in the Grid. I have set the alternate color using

AlternatingItemStyle-BackColor. After settting this property I cannot see the row selection color for the alternate rows. It looks like the

 

AlternatingItemStyle-BackColor is overriding the row selection color. It looks like a bug. Is there any workaround to fix this.

 

 

 

 


 

 

Shinu
Top achievements
Rank 2
 answered on 04 Jun 2009
5 answers
102 views
Hi i want to change the colour of the panels in a modal window to web blue like the skin on the windows how do i do this
Martin
Telerik team
 answered on 04 Jun 2009
3 answers
91 views
If there's anyone out there who (just like me) builds their appointments with codebehind and the Subject-property.

To be able to use HTML from codebehind, just add the AppointmentTemplate like this (In the markup)

<AppointmentTemplate> 
    <%#Eval("Subject") %> 
</AppointmentTemplate> 

This way it evaluates all the HTML, instead of rendering it as plain text.


wima
Top achievements
Rank 1
 answered on 04 Jun 2009
3 answers
412 views
hello to all,

               i would like ask help to you all guys who knows very about the menu control, here's my question i have a menu here and 2 main items which namely Product and Department ..now what should i do to have a submenu under the product without affecting the department during design.  here's my figure

Department
Product      ---> Milk --> (undermilk we have) Nedo
                                                                      Bearbrand
                                                                      and so on..(when the user click this submilk item it will redirect to other page)

how can i do that..please help

sample codes is highly appreciated

thanks
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2009
1 answer
127 views
I have an API that will handle all the updates to my data so I don't want to use the automatic updates.

I can't find any good examples of doing binding, updating, inserting and deleting all manually WITHOUT an autogenerated editform.

Anyone have any example you can point me to or share?

I think the part I'm having the most trouble with is working with the non-autogenerated editform.

Thanks.
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2009
2 answers
137 views
Hi,

I tried to set fill color into mark zone on window properties.  Those selected colors disappear once I close the window.  I also did manually to type into the source code however there were not good results.  May I have your suggestion?  I would like to have some text in the marked zone, is it possible?

Regards,

Duy
Duy
Top achievements
Rank 1
 answered on 04 Jun 2009
2 answers
241 views
I have a nested view in my radgrid so that, when you expand an item you see the details of the item.  One of the things in there is a checkbox that changes a status.  I have it firing a standard checkbox event method (i.e. chkThisBox_CheckChanged(object sender, EventArgs e)...).  It updates the database.  I also have it rebinding the radgrid.  What I want to do is, after rebinding the radgrid, re-select and re-expand the item that was changed.  Here's what I have, which does not work:
    protected void chkApprehended_CheckChanged(object sender, EventArgs e)  
    {  
        var apprehended = ((CheckBox) sender).Checked;  
        var mwId = RadGrid1.SelectedValue.ToString();  
        var p = Person.GetWantedPerson(mwId);  
        p.Apprehended = apprehended;  
        p.ApprehendedDate = DateTime.Now;  
        Person.ApprehendPerson(p);  
        var thisRow = RadGrid1.SelectedItems[0];  
        RadGrid1.Rebind();  
        thisRow.FireCommandEvent("ExpandCollapse", new EventArgs());  
//        thisRow.Selected = true;  
//        thisRow.Expanded = true;  
    }  
 
I also have a RadGrid1_ItemCommand method that handles several commands, including the ExpandCollapse command.  But the line that has FireCommandEvent doesn't fire off the itemcommand method.  What am I missing here, and is this possible without client side code?

Thanks!

Eddie
Lee
Top achievements
Rank 2
 answered on 04 Jun 2009
1 answer
116 views
This might seem like a simple answer--but I can't seem to figure it out right now.

I have a RADTabStrip with a RADmultipage. When I launch the page, TAB1 the initial TAB but it shows as if its empty. In order for me to see the contents of TAB1, I have to click on TAB2 then click back on TAB1 and then the contents of TAB1 are shown.

Is this by default? Thanks!!!


PJ
PJ Rodriguez
Top achievements
Rank 1
 answered on 03 Jun 2009
2 answers
242 views
The preserve client state feature does not work right when window's RestrictionZoneID property is set. The windows height and width reverts to original for some reason. See sample code.
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"> 
    <div id="restrictionZone" style="border: 1px dotted #000000; width: 99%; height: 95%; 
        position: relative;"> 
        <table cellpadding="1" cellspacing="1" style="height: 65px; position: absolute; bottom: 0px;"> 
            <tr> 
                <td id="portfolioZone" style="width: 230px;"> 
                </td> 
                <td id="banchmarkZone" style="width: 230px;"> 
                </td> 
            </tr> 
        </table> 
    </div> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" KeepInScreenBounds="true" 
        RestrictionZoneID="restrictionZone" EnableViewState="False" PreserveClientState="True"> 
        <Windows> 
            <telerik:RadWindow ID="portfolio" runat="server" NavigateUrl="#" 
                ShowContentDuringLoad="True" VisibleOnPageLoad="True" ReloadOnShow="False" VisibleStatusbar="False" 
                Left="0" Top="0" Width="300" Height="300" MinimizeZoneID="portfolioZone"> 
            </telerik:RadWindow> 
            <telerik:RadWindow ID="banchmark" runat="server" NavigateUrl="#" ShowContentDuringLoad="True" 
                VisibleOnPageLoad="True" ReloadOnShow="False" VisibleStatusbar="False" Left="0" 
                Top="0" Width="300" Height="300" MinimizeZoneID="banchmarkZone"> 
            </telerik:RadWindow> 
        </Windows> 
    </telerik:RadWindowManager> 
</asp:Content> 

Maxim
Top achievements
Rank 1
 answered on 03 Jun 2009
3 answers
793 views
I have a GridTemplateColumn with a RadComboBox in the EditItemTemplate:
<telerik:GridTemplateColumn DataField="Priority" DataType="System.Int32"  HeaderText="Priority" SortExpression="Priority" UniqueName="Priority"> 
    <EditItemTemplate> 
        <telerik:RadComboBox ID="comboPriority" runat="server"></telerik:RadComboBox> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 


<asp:LinqDataSource ID="LinqTasks" runat="server" ContextTypeName="SWcom.SWDataContext" EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="Tasks"> 
</asp:LinqDataSource> 

The combo is populated in code-behind, in the RadGrid's ItemDataBound event:
    public Dictionary<string, int> Priors = new Dictionary<string, int>() 
    { 
        { "Low",    -1     }, 
        { "Normal",  0     }, 
        { "High",    1     } 
    }; 
     
    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridEditableItem && e.Item.IsInEditMode) 
        { 
            GridEditableItem eeditItem = e.Item as GridEditableItem; 
            RadComboBox combo = (RadComboBox)editItem.FindControl("comboPriority"); 
             
            combo.DataSource = Priors; 
            combo.DataTextField = "Key"; 
            combo.DataValueField = "Value"; 
            combo.DataBind(); 
            combo.SelectedValue = ((SWcom.Task)editItem.DataItem).Priority.GetValueOrDefault(0).ToString(); 
        }  
    } 


This works fine when I open a row for editing, but when I click 'update', the new selected value from the combobox is not saved in the database. I'm using a simple LinqDataSource (see above). I'm sure I have missed something obvious, but I can't find it. 

Also, is there a more elegant or better way to get a key/value list bound to a combobox instead of a Dictionary?

Thanks!
oVan
Lee Nessling
Top achievements
Rank 1
 answered on 03 Jun 2009
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?