Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
433 views
Hi all!

Please help me! I have following element on aspx page:
 <asp:button id="btnDelete" runat="server" OnClick="btnDelete_Click" OnClientClick="radconfirm('Are you sure you want to delete this listing?', confirmCallBackFn) " text="Delete" />

and I have RadWindowManager element
<telerik:RadWindowManager ID="windowManager" runat="server" Skin="Outlook"
        <ConfirmTemplate> 
            <div class="windowpopup radconfirm">    
                <div class="dialogtext"> {1} </div>       
                    <div> 
                        <onclick="$find('{0}').callBack(true);" class="radwindowbutton" href="javascript:void(0);" > 
                            <span class="outerspan"
                                <span class="innerspan">Yes, I’m sure</span> 
                            </span> 
                        </a> 
                        <onclick="$find('{0}').callBack(false);" class="radwindowbutton" href="javascript:void(0);"
                            <span class="outerspan"
                                <span class="innerspan">No, don’t delete</span> 
                            </span> 
                        </a> 
                    </div> 
            </div> 
        </ConfirmTemplate> 
    </telerik:RadWindowManager> 

and javascript function

function confirmCallBackFn(arg)
{
    return arg;
}

If I click on button then show confirm dialog but and event OnClick="btnDelete_Click" run too. Also I don't clicked on Yes or No button in confirm dialog.
What should I do to wait until user click on Button Yes or No?

Thanks!


Evgeniy
Top achievements
Rank 1
 answered on 06 Feb 2009
1 answer
142 views
Hello,

The MaxFileSize and MaxInputFileCount for the RadUpload: how does this get validated, on the server or on the client?  Does the RadUpload prevent uploading a file that violates the MaxFileSize property on the client, or on the server during some event?  Can that be validated using a Validator control?

Thanks.
Erjan Gavalji
Telerik team
 answered on 06 Feb 2009
1 answer
270 views
Hello everyone,

I got interesting Problem.IE gives error Invalid Year, when i try to change year from DatePicker popup. First i explain little bit my problem. I have to kind information. I have header lever and row level information. both type of information contains Rad datepicker called EstimatedDeliverydate. When I change header level date, all the row information must change to same date. This part works fine I update row level information using javascript(See below):



 function OnDateSelected(sender, args)   
 {   
   
     
    var elems = document.getElementById('RadGrid1').getElementsByTagName('input'); 
  
     
     
    for(i=0; i < elems.length ; i++)  
    { 
        if(elems[i].type.toLowerCase() == 'text' && elems[i].id.indexOf('EstimatedDeliveryDate') > -1)  
        { 
            
               
                 alert(); 
                 elems[i].value=args.get_newValue(); 
             
        } 
    } 
  }   

if I now try to push calendar popup button, IE gives me this error message(I mean popup jumps on the screen):
line:1678
char:1
error:invalid year
code:0

Pavlina
Telerik team
 answered on 06 Feb 2009
1 answer
309 views
Not sure what I did but now any time I call GetRadWindowManager or window.radconfirm I am getting these errors.

Seems like I'm now not pulling in the rad related client api stuff.

What could I have done?!

Things were working fine.  I had a radwindowmanager in master page, and was already calling these routines no prob.  Found that I had an issue where I had a radwindowmanager also defined in my content pages which was causing issues.  So began tweaking pages to just have one radwindowmanager in the master page and none in the content pages, and programmatically add page-specific windows to that radwindowmanager.

Had it all working (posted my solution elsewhere) but then did SOMETHING stupid and now calls are not working.

Thoughts?

Thx
Georgi Tunev
Telerik team
 answered on 06 Feb 2009
2 answers
174 views
Hi, 

We have tried to implement the self referencing. We need to remove/hide the expand/collapse icon if there will be no child record for that active row in grid.




Regards,
Bhupendra Singh
Top achievements
Rank 1
 answered on 06 Feb 2009
1 answer
171 views
I have a grid with one master table and one detail table.  In the DetailTableDataBind event I want to be able to query a database using the values from 2 columns in the master table, the query will determine the contents of the detail table
In the event handler I have this code

GridDataItem

 

dataItem = (GridDataItem)e.DetailTableView.ParentItem;

How can I obtain the values from the 2 columns in the parent master table ?  I cant use dataItem.GetDataKeyValue  because the detail table is not linked by the key value.  Is there someway I can obtain these values from dataitem  ?

 

Daniel
Telerik team
 answered on 06 Feb 2009
6 answers
126 views
can anyone show me where I can find some examples of hierarchical data in a grid ?
I have 2 tables (master and detail).  I need the examples in c#
Daniel
Telerik team
 answered on 06 Feb 2009
1 answer
83 views
I hope you wont mind a question from a trial user.

I have figured out how to detect if a OnClientItemClicked was clicked on the instance of imageURL. But I would also want to Show Hide and Replace this image from other events on the page. Obviously it doesn't work by changing the value of ImageUrl so I was hoping for some pointers in the right direction here.

/Magnus
Atanas Korchev
Telerik team
 answered on 06 Feb 2009
1 answer
159 views

I my application using nested RadSplitter controls, one radspliter contains treeview, another one is Grid, my problem is dragging the multiple node from treeview  then its dropped into  grid. at this horizontal & vertical scrolling is appearing, why horizontal scrolling coming?

If the horizontal scrolling appears only on length of node exceeds the length of grid.

 <telerik:RadPane ID="bottomPane" runat="server" Height="25%" OnClientResized="ClientResized">

    <telerik:RadGrid runat="server" ID="grdBriefCase" Skin="Sunset" AllowPaging="True"

         ShowStatusBar="true" OnNeedDataSource="grdBriefCase_NeedDataSource"
        
 OnItemDataBound="grdBriefCase_ItemDataBound" OnRowDrop="grdBriefCase_RowDrop"
         AllowMultiRowSelection="true" AutoGenerateColumns="false" PageSize="100">

      <MasterTableView>

        <Columns>

           <telerik:GridBoundColumn UniqueName="BriefCase" HeaderText="BriefCase" DataField="BriefCase"

                                    Visible="false" />

           <telerik:GridBoundColumn UniqueName="Value" HeaderText="Value" DataField="Value"

                                     Visible="false" />

           <telerik:GridTemplateColumn UniqueName="TemplateColumn" HeaderText="BriefCase">

                  <ItemTemplate>

                           <asp:Image ID="ImgType" ImageUrl="" runat="server" />

                          <asp:Label ID="LblType" runat="server" />

                 </ItemTemplate>

           </telerik:GridTemplateColumn>

        </Columns>

      </MasterTableView>

      <PagerStyle Mode="NumericPages" />

      <ClientSettings AllowRowsDragDrop="True">

         <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

      <ClientEvents />

       </ClientSettings>

   </telerik:RadGrid>

</telerik:RadPane>

Dimo
Telerik team
 answered on 06 Feb 2009
3 answers
162 views

Hi all!
Is it at all possible to have a header collumn as a hyperlink for numeric columns? Examples appreciated
J

Cheers

MANU
Top achievements
Rank 1
 answered on 06 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?