Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
197 views
Hello,

How do I expand the left hand side of the FileExplorer to match the Width of the TreeView? TreeView.Width = 400; works but the splitter does not align with the size / width of the TreeView. Right now, I have to scroll all the way to the right to see the end of the TreeView.

Thanks
LG
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
193 views
Dear All,

I want to be able to open either radwindow & radalert or radconfirm from a method on a user-control (codebehind).
I went through all the posted threads but just can't get it to work unless I put the following code:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "RadAlertScript""Sys.Application.add_load(function(){radalert('XML Values Loaded Succesfully!!');});"true); 
I just don't wanted that way, I need to have a method that takes the title & message so I try the following :
protected void ShowAlert(string msg)  
{  
string myScript = string.Format("Sys.Application.add_load(function(){radalert('A string', 200,300,'{0}');})",msg);  
Page.ClientScript.RegisterStartupScript(this.GetType(), "SCR", myScript, true);  
}    
 
which I took it from a previous post, but it has a syntax error. and didn't work for me.

and what is the scenario for radwindow.

best regards
Waleed
Waleed Seada
Top achievements
Rank 2
 answered on 16 Dec 2009
1 answer
460 views
Hi,

I want to convert Asp.Net 3.5 Gridview RowCreated() event into RadGrid ItemCreated() event. I have tried but continously getting error.

Here is the RadGrid-

<telerik:RadGrid ID="gv" Width="748px" DataKeyNames="Id" DataSourceID="gvSqlDataSource"  PageSize="5" AllowMultiRowSelection="True" AutoGenerateColumns="False" runat="server" Gridlines="None" Skin="Default" EnableEmbeddedSkins="false" OnItemCommand="gv_ItemCommand" AllowPaging="True" AllowAutomaticDeletes="true" OnItemCreated="gv_ItemCreated">
                <ClientSettings EnableRowHoverStyle="true" />
                <PagerStyle Mode="NumericPages" PageButtonCount="5" EnableSEOPaging="True" />          
                 <MasterTableView AllowAutomaticDeletes="true" DataKeyNames="Id">
                     <Columns>
                       <telerik:GridTemplateColumn HeaderText="Scores">                      
                         
                          <ItemTemplate>
                                 <asp:Button id="btnScore" runat="server" CssClass="scoreButton" Text='<%# Eval("Score") + "\n Score!" %>' CausesValidation="False" CommandArgument='<%# Eval("Id") %>'></asp:Button>
                          </ItemTemplate>
                       </telerik:GridTemplateColumn>
 <telerik:GridTemplateColumn>
                            <ItemTemplate>                                
                                <asp:ImageButton runat="server" ID="btnDelete" ImageUrl="~/images/delete.gif" CommandName="Delete"/>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>                    
                        
                     </Columns>
                      <NoRecordsTemplate><br /><b>You have not entered any data yet!</b></NoRecordsTemplate>
                  </MasterTableView>
                     
           </telerik:RadGrid>
 <asp:SqlDataSource runat="server" ID="gvSqlDataSource" ConnectionString="<%$ ConnectionStrings:MyConnectionString %>"

             SelectCommand="SELECT [Id], [score] FROM [tblScores] "
             DeleteCommand="DELETE FROM [tblScores] WHERE [Id] = @Id" >
             <DeleteParameters>
                <asp:Parameter Name="Id" Type="Int32" />        
            </DeleteParameters>
             </asp:SqlDataSource>

Here is the as.net 3.5 gridview's RowCreated() event-

protected void gv_RowCreated(object sender, GridViewRowEventArgs e)
      {
         if (e.Row.RowType == DataControlRowType.DataRow)
         {
            ImageButton btn = e.Row.Cells[1].Controls[0] as ImageButton;
            btn.OnClientClick = "if (confirm('Are you sure you want to delete this score?') == false) return false;";
         }
      }

I have converted this into the following ItemCreated() event to use it for RadGrid

protected void gv_ItemCreated(object sender, GridItemEventArgs e)
            {
                if (e.Item is GridDataItem)

                {
                    GridItemType item = (GridItemType)e.Item;
                    ImageButton btn = (ImageButton)e.Item.FindControl("btnDelete");
                    btn.OnClientClick = "if (confirm('Are you sure you want to delete this score?') == false) return false;";
                }
            }

But i'm getting error, anybody knows what i'm missing or doing wrong in the code.
Any help will be really appreciated.

Regards,
dazy


Daniel
Telerik team
 answered on 16 Dec 2009
3 answers
171 views
Is it possible to put a loading panel on an entire RadDockLayout?  Right now I am resorting to putting a loading panel on each RadDockZone.  But it would look a lot nicer if I could put one on the Layout instead.  Is there a way?
Ryan
Top achievements
Rank 1
 answered on 16 Dec 2009
1 answer
99 views
Hello

i have a Radgrid inside a Radpanelbar
i want to know how to rebind the radgrid in the client Code?



thanks
Schlurk
Top achievements
Rank 2
 answered on 16 Dec 2009
2 answers
94 views
Hi Telerik,
How should i export a filtered grid without the filter row. If i turn AllowFilteringByColumn off and Rebind it, the grid will show all records.
Thank you
Bogice
Top achievements
Rank 1
 answered on 16 Dec 2009
5 answers
235 views
Hi,

This feature where if you want load on demand functionality automatically enables AllowCustomText has killed the use of RadComboBox for me.  If you have a large list of items to select from and dont want to load the entire list, but instead force the user to type the starting letters of the item they want, is there any way to stop them from submitting a custom text entry?  I dont believe hardcoding properties is a reasonable step to take and the original RadComboBox did not have this added feature - it clears the text if no matches are found.

Is there any way around this?
harun küçük
Top achievements
Rank 1
 answered on 16 Dec 2009
0 answers
104 views
Sorry, misunderstood use of ToolBarButton.
Richard
Top achievements
Rank 2
 asked on 16 Dec 2009
0 answers
131 views

                Hello everyone,

 

                I was having troubles using the Calendar control. Here is what was happening and how did I manage to solve it:

 

                At some point, using a dropdown list, I could select a different number of days I would like to see in a RadScheduler and select in a RadCalendar those days (current selected day + number of days – 1). This way, I could get a list of selected days, e.g, 14th ,15th ,16th and 17th in the calendar and see the appointments for those dates in the RadScheduler. If the next step was to select one of the days that was already selected, e.g 16th  – for viewing purposes, I would in fact deselect it and the day would be removed from the list, e.g. 14th,15th and 17th. In the server side I couldn’t figure out what day was removed (if the unselected was the first or the last date)  so I managed to update the selection on the client-side (removing all the dates and adding the “unselected one”). Here is what I did:

 

               

          function DateSelected(sender, eventArgs) {

                var day = eventArgs.get_renderDay();

                var calendar = $find("<%=RadCalendar1.ClientID%>");

                var dates = calendar.get_selectedDates();

                calendar.unselectDates(dates);

 

                var date = day.get_date();

                sender.set_focusedDate(date);

 

 

 

                calendar.updated();

            }

 

….          

 

                                And added on the RadCalendar: ClientEvents-OnDateClick="DateSelected"

               

                                Feel free to comment this or others solutions.

 

Cheers,

 

AM

Andre M
Top achievements
Rank 1
 asked on 16 Dec 2009
3 answers
160 views
How would I make it so the upload folder is the numeric ID value of the inserted record?  IE in my PHP site I have the files being uploaded into a tmp folder which is then dynamically renamed to the ID value of the recored inserted.  So all the files are in 1 folder with the ID value of that record.

IE
path/app_folder/docs_for_app_folder/unique_id_folder
../HelpDesk/HelpDeskAttachments/1001   (1001 being the auto generated id from SQL)
GOURVEZ JJ
Top achievements
Rank 1
 answered on 16 Dec 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?